usb: dwc2: drd: add role-switch-default-node support
authorFabrice Gasnier <fabrice.gasnier@foss.st.com>
Mon, 6 Dec 2021 15:56:42 +0000 (16:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Dec 2021 15:52:51 +0000 (16:52 +0100)
commite14acb8769850fedfbfc62a64998e34348442784
tree8e1c33126e0203b2708911084359de9f7f5ccdfa
parent942cdbc168d44730c5b3349198b16b4d6da3bb81
usb: dwc2: drd: add role-switch-default-node support

When using usb-role-switch, while the usb role is not yet define
(USB_ROLE_NONE), the user may want to configure the default mode to host
or device.
Use role-switch-default-mode for that purpose.

Acked-by: Minas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Signed-off-by: Fabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/1638806203-6624-3-git-send-email-fabrice.gasnier@foss.st.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/core.h
drivers/usb/dwc2/drd.c