]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
usb: ehci-omap: Fix PM disable depth umbalance in ehci_hcd_omap_probe
authorZhang Qilong <zhangqilong3@huawei.com>
Mon, 23 Nov 2020 14:57:19 +0000 (22:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Dec 2020 12:47:00 +0000 (13:47 +0100)
commitc6591cf3ff6b657f78771b5bb4460a86409aa4f1
tree1a25b49b19d8e90d89bfd3cfc681fdf69a211134
parent61af2b04d0ff371985e68cce6fe30dfa15ee3230
usb: ehci-omap: Fix PM disable depth umbalance in ehci_hcd_omap_probe

[ Upstream commit d6ff32478d7e95d6ca199b5c852710d6964d5811 ]

The pm_runtime_enable will decrement the power disable depth. Imbalance
depth will resulted in enabling runtime PM of device fails later.  Thus
a pairing decrement must be needed on the error handling path to keep it
balanced.

Fixes: 6c984b066d84b ("ARM: OMAP: USBHOST: Replace usbhs core driver APIs by Runtime pm APIs")
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link: https://lore.kernel.org/r/20201123145719.1455849-1-zhangqilong3@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/host/ehci-omap.c