]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdc8c7bc1598eb55837e4656e34f91c9cb29312d0
tree440c9b8b24cdad9df31bd5b95fa90f8c8ce6f32f
parent721f17a2b60e348cc0dff1861c86e8425821d658
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: 44199be3beb4 ("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