File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -2368,6 +2368,9 @@ void usb_disconnect(struct usb_device **pdev)
2368
2368
usb_remove_ep_devs (& udev -> ep0 );
2369
2369
usb_unlock_device (udev );
2370
2370
2371
+ if (udev -> usb4_link )
2372
+ device_link_del (udev -> usb4_link );
2373
+
2371
2374
/* Unregister the device. The device driver is responsible
2372
2375
* for de-configuring the device and invoking the remove-device
2373
2376
* notifier chain (used by usbfs and possibly others).
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ EXPORT_SYMBOL_GPL(usb_acpi_set_power_state);
157
157
*/
158
158
static int usb_acpi_add_usb4_devlink (struct usb_device * udev )
159
159
{
160
- const struct device_link * link ;
160
+ struct device_link * link ;
161
161
struct usb_port * port_dev ;
162
162
struct usb_hub * hub ;
163
163
@@ -188,6 +188,8 @@ static int usb_acpi_add_usb4_devlink(struct usb_device *udev)
188
188
dev_dbg (& port_dev -> dev , "Created device link from %s to %s\n" ,
189
189
dev_name (& port_dev -> child -> dev ), dev_name (nhi_fwnode -> dev ));
190
190
191
+ udev -> usb4_link = link ;
192
+
191
193
return 0 ;
192
194
}
193
195
Original file line number Diff line number Diff line change @@ -614,6 +614,7 @@ struct usb3_lpm_parameters {
614
614
* FIXME -- complete doc
615
615
* @authenticated: Crypto authentication passed
616
616
* @tunnel_mode: Connection native or tunneled over USB4
617
+ * @usb4_link: device link to the USB4 host interface
617
618
* @lpm_capable: device supports LPM
618
619
* @lpm_devinit_allow: Allow USB3 device initiated LPM, exit latency is in range
619
620
* @usb2_hw_lpm_capable: device can perform USB2 hardware LPM
@@ -724,6 +725,7 @@ struct usb_device {
724
725
unsigned reset_resume :1 ;
725
726
unsigned port_is_suspended :1 ;
726
727
enum usb_link_tunnel_mode tunnel_mode ;
728
+ struct device_link * usb4_link ;
727
729
728
730
int slot_id ;
729
731
struct usb2_lpm_parameters l1_params ;
You can’t perform that action at this time.
0 commit comments