usb: musb: Fix suspend and resume issues for PHYs on I2C and SPI
authorTony Lindgren <tony@atomide.com>
Tue, 27 Jul 2021 10:41:34 +0000 (13:41 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Jul 2021 14:31:02 +0000 (16:31 +0200)
commit68d9f95d6fd5399d105eaf2308c243536c5d7664
treeffdeca2b6b242fee206b4e3f2c5e07e82c301447
parentafcff6dc690e24d636a41fd4bee6057e7c70eebd
usb: musb: Fix suspend and resume issues for PHYs on I2C and SPI

As the USB PHYs typically are on I2C or SPI bus for the 2430 glue layer,
we need configure the PHYs early for suspend.

The musb glue layer we need to suspend only after musb_suspend() in
suspend_late.

Fixes: 62d472d8ad88 ("usb: musb: Add missing PM suspend and resume functions for 2430 glue")
Reported-by: Andreas Kemnade <andreas@kemnade.info>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Link: https://lore.kernel.org/r/20210727104134.52800-1-tony@atomide.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/omap2430.c