mirror of
https://github.com/torvalds/linux.git
synced 2024-11-26 14:12:06 +00:00
b787a3e781
There is a possibility that usb_role_switch device is unregistered before
the user put usb_role_switch. In this case, the user may still want to
get/set_role() since the user can't sense the changes of usb_role_switch.
This will add a flag to show if usb_role_switch is already registered and
avoid unwanted behaviors.
Fixes:
|
||
---|---|---|
.. | ||
class.c | ||
intel-xhci-usb-role-switch.c | ||
Kconfig | ||
Makefile |