]> www.infradead.org Git - users/dwmw2/linux.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, 12 Feb 2019 19:02:22 +0000 (20:02 +0100)
commit2cd6e922faeca0287b7fefc7f73cba2031dfb4f6
treeb6675c2269f4ea945d255a7cade0c4d7874b0dcb
parent558321c9b7c6d6f5547b5a4d8967d36700fd6b8e
usb: musb: dsps: fix runtime pm for peripheral mode

[ Upstream commit 54578ee883e34d2d1c518d48f1c1e2dd3f387188 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/musb/musb_dsps.c