public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] usb: dwc3: Extcon hotplug support to of-simple
@ 2020-05-23  4:12 Prashant Malani
  2020-05-23  4:12 ` [RFC PATCH 1/1] usb: dwc3: of-simple: Add extcon support Prashant Malani
  0 siblings, 1 reply; 3+ messages in thread
From: Prashant Malani @ 2020-05-23  4:12 UTC (permalink / raw)
  To: linux-kernel
  Cc: enric.balletbo, bleung, groeck, Prashant Malani, Felipe Balbi,
	Greg Kroah-Hartman, open list:DESIGNWARE USB3 DRD IP DRIVER

Some platforms like rk3399 would like to power on the USB PHY layer only
when external devices are connected. This patch introduces optional
support for extcon USB_HOST events, so that child devices are
populated/depopulated when external devices are connected/disconnected,
respectively.

This is also useful since some PHY drivers like phy-rockchip-typec only
configure their Type C Phy on power on; if they are only powered on once
at boot by dwc3, these drivers will not be able to reconfigure their PHY
for peripherals plugged in later, like (Display Port) DP monitors.

I thought I’d send out an initial RFC patch, for comments and feedback
about the approach. Depending on feedback, we can refine this approach
and modify the bindings file.

Thanks,

Prashant Malani (1):
  usb: dwc3: of-simple: Add extcon support

 drivers/usb/dwc3/dwc3-of-simple.c | 149 +++++++++++++++++++++++++++++-
 1 file changed, 146 insertions(+), 3 deletions(-)

-- 
2.27.0.rc0.183.gde8f92d652-goog


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-28 16:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-23  4:12 [RFC PATCH 0/1] usb: dwc3: Extcon hotplug support to of-simple Prashant Malani
2020-05-23  4:12 ` [RFC PATCH 1/1] usb: dwc3: of-simple: Add extcon support Prashant Malani
2020-05-28 16:21   ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox