]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2e79cc90e87f8d25c042c24a9a87a0866d5a3b50
treeffdeca2b6b242fee206b4e3f2c5e07e82c301447
parentf8f40eafddc5b38370655f9422977cd4e3395204
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: 93ea50fb88a6 ("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