usb: dwc3: drd: Add support for DR detection through extcon
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 10 Nov 2018 18:11:01 +0000 (20:11 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 26 Nov 2018 07:06:32 +0000 (09:06 +0200)
commit268784ba14a7bff23bc80531d6db31986eafd54b
tree022b0d9e36f7c5e2aab1351cb5575b604a831e89
parent85383756ae34db2ee46daa779f869598a3443651
usb: dwc3: drd: Add support for DR detection through extcon

Allow extcon device, found by name, to provide DR status for USB.
This is needed, for example, in case of Intel Merrifield platform,
where the Intel Basin Cove PMIC provides an extcon device to communicate
the detected role.

Note, that the "linux,extcon-name" property name is only for kernel
internal use by X86/ACPI platform code and as such is not documented
in the device tree bindings.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/drd.c