mbox series

[0/4] usb: davinci: Add PM runtime support and improve HOST only mode support

Message ID 20240528102026.40136-1-bastien.curutchet@bootlin.com (mailing list archive)
Headers show
Series usb: davinci: Add PM runtime support and improve HOST only mode support | expand

Message

Bastien Curutchet May 28, 2024, 10:20 a.m. UTC
Hi all,

I've worked on adding PM runtime support on the DAVINCI's USB PHY
controller. It revealed some bugs in the MUSB controller that I fixed in
the last three patches.

The platform I work on uses the MUSB controller in HOST-only mode and has
been designed to save as much energy as possible. To do so, the USB's
VBUS supply can be cut off by toggling a GPIO, this triggers the bug
fixed by patch 2.

If an USB stick gets unplugged, then plugged back while the PHY is in
suspend state, a BABBLE error happens. This BABBLE can't be recovered.
This is fixed by last patch.

Bastien Curutchet (4):
  phy: ti: phy-da8xx-usb: Add runtime PM support
  Revert "usb: musb: da8xx: Set phy in OTG mode by default"
  usb: musb: da8xx: Remove try_idle implementation from host-only mode
  usb: musb: da8xx: Implement BABBLE recovery

 drivers/phy/ti/phy-da8xx-usb.c | 49 ++++++++++++++++++++++++++++++++++
 drivers/usb/musb/da8xx.c       | 20 ++++++++------
 2 files changed, 61 insertions(+), 8 deletions(-)