]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
phy: ti: Add missing pm_runtime_disable() in serdes_am654_probe
authorMiaoqian Lin <linmq006@gmail.com>
Tue, 1 Mar 2022 02:58:49 +0000 (02:58 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 22 Jun 2022 12:22:46 +0000 (14:22 +0200)
commit80a5510bdd9983b6b4b65a8e159f91953332974e
tree1f448a8f95fcfaea5a0754277c4f3800cd8671fc
parent80eb49a2d8a4aa41b5931a3aad0ce4b0fc6d54c6
phy: ti: Add missing pm_runtime_disable() in serdes_am654_probe

BugLink: https://bugs.launchpad.net/bugs/1978234
[ Upstream commit ce88613e5bd579478653a028291098143f2a5bdf ]

The pm_runtime_enable() will increase power disable depth.
If the probe fails, we should use pm_runtime_disable() to balance
pm_runtime_enable().
Add missing pm_runtime_disable() for serdes_am654_probe().

Fixes: 71e2f5c5c224 ("phy: ti: Add a new SERDES driver for TI's AM654x SoC")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Link: https://lore.kernel.org/r/20220301025853.1911-1-linmq006@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/phy/ti/phy-am654-serdes.c