usb: musb: dsps: fix runtime pm for peripheral mode
authorBin Liu <b-liu@ti.com>
Tue, 18 Dec 2018 13:58:05 +0000 (07:58 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Dec 2018 14:46:31 +0000 (15:46 +0100)
commit54578ee883e34d2d1c518d48f1c1e2dd3f387188
tree440c9b8b24cdad9df31bd5b95fa90f8c8ce6f32f
parent6010abf2c2c0e382d7e8ee44bd11f343aae90cce
usb: musb: dsps: fix runtime pm for peripheral mode

Since the runtime PM support was added in musb, dsps relies on the timer
calling otg_timer() to activate the usb subsystem. However the driver
doesn't enable the timer for peripheral port, then the peripheral port is
unable to be enumerated by a host if the other usb port is disabled or in
peripheral mode too.

So let's start the timer for peripheral port too.

Fixes: ea2f35c01d5e ("usb: musb: Fix sleeping function called from invalid context for hdrc glue")
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Bin Liu <b-liu@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/musb/musb_dsps.c