[PATCH v3 03/18] thunderbolt: Handle connecting device in place of host properly

2018-03-02 Thread Mika Westerberg
If the system is suspended and user disconnects cable to another host and connects it to a Thunderbolt device instead we get a warning from driver core about adding duplicate sysfs attribute and adding the new device fails. Handle this properly so that we first remove the existing XDomain

[PATCH v3 03/18] thunderbolt: Handle connecting device in place of host properly

2018-03-02 Thread Mika Westerberg
If the system is suspended and user disconnects cable to another host and connects it to a Thunderbolt device instead we get a warning from driver core about adding duplicate sysfs attribute and adding the new device fails. Handle this properly so that we first remove the existing XDomain