Message ID | 20220407171739.1176275-3-vicamo.yang@canonical.com |
---|---|
State | New |
Headers | show |
Series | Bolt doesn't work with native USB4 hosts | expand |
diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/switch.c index 13f9230104d7..308f88fb6a30 100644 --- a/drivers/thunderbolt/switch.c +++ b/drivers/thunderbolt/switch.c @@ -2927,6 +2927,10 @@ int tb_switch_resume(struct tb_switch *sw) return err; } + /* We don't have any way to confirm this was the same device */ + if (!sw->uid) + return -ENODEV; + if (tb_switch_is_usb4(sw)) err = usb4_switch_read_uid(sw, &uid); else