]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mmc: davinci_mmc: Handle error for clk_enable
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Tue, 8 Mar 2022 07:14:15 +0000 (15:14 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 27 Apr 2022 09:57:23 +0000 (11:57 +0200)
commit70c7cd15af46ee7a722674ae2f7fbbf2d6edad74
tree4399df66600dd6e760f4ee5e0da649be36e78cf8
parentc8e3f3d2e5b10dff73aa08bfb72c1ba6349363f9
mmc: davinci_mmc: Handle error for clk_enable

BugLink: https://bugs.launchpad.net/bugs/1969110
[ Upstream commit 09e7af76db02c74f2a339b3cb2d95460fa2ddbe4 ]

As the potential failure of the clk_enable(),
it should be better to check it and return error
if fails.

Fixes: bbce5802afc5 ("davinci: mmc: updates to suspend/resume implementation")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20220308071415.1093393-1-jiasheng@iscas.ac.cn
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit f2b0fc2a46a630289a0c53fdc6135a4051145c99)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/mmc/host/davinci_mmc.c