Re: [PATCH v4 09/18] usb: dwc3: qcom: Override VBUS when using gpio_usb_connector

From: Bryan O'Donoghue
Date: Fri Feb 07 2020 - 10:04:04 EST


On 07/02/2020 10:50, Bryan O'Donoghue wrote:

Maybe I'm wrong...

Looking a bit closer at the role-switch code it might be possible to register multiple devices _as-is_ so long as you have a pointer to the relevant parent...

Soo... its possible to create a new role-switch device relatively easily @usb_role_switch_register() but, the drivers calling the role-switch callback have a 1:1 mapping between role-switch call and receiver.

Doing something inside DWC3 <=> DWC3::QCOM looks like less of a rewrite.