]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: Remove retimers properly
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 25 Aug 2022 14:04:11 +0000 (17:04 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2022 13:30:39 +0000 (15:30 +0200)
commitde23b68d2e0797e6807830a590478296f8d29ed1
tree4d21efa8b9ad8ebf5753a26e0d9393c8998ee683
parentc16c33883b62bf00e770500784dabc52740c3d2d
usb: typec: Remove retimers properly

Retimer device class is left dangling when the typec module
is unloaded. Attempts to reload the module failed with warning:

        "sysfs: cannot create duplicate filename '/class/retimer'"

Fixing the issue by unregistering the class properly.

Fixes: 65989426f3e5 ("usb: typec: Add support for retimers")
Reviewed-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20220825140411.10743-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/class.c