]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
mmc: atmel-mci: Add missing clk_disable_unprepare()
authorGu Bowen <gubowen5@huawei.com>
Tue, 25 Feb 2025 02:28:56 +0000 (10:28 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 28 Mar 2025 21:03:30 +0000 (22:03 +0100)
commit8f8eb5afa2cb176a03dc91e646ac20758db74bd7
tree0f04601b0a6c2acec46222d2723c0613eca32b10
parente96500b7d695b6762d122daf799addbd117142eb
mmc: atmel-mci: Add missing clk_disable_unprepare()

commit e51a349d2dcf1df8422dabb90b2f691dc7df6f92 upstream.

The error path when atmci_configure_dma() set dma fails in atmci driver
does not correctly disable the clock.
Add the missing clk_disable_unprepare() to the error path for pair with
clk_prepare_enable().

Fixes: 467e081d23e6 ("mmc: atmel-mci: use probe deferring if dma controller is not ready yet")
Signed-off-by: Gu Bowen <gubowen5@huawei.com>
Acked-by: Aubin Constans <aubin.constans@microchip.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20250225022856.3452240-1-gubowen5@huawei.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mmc/host/atmel-mci.c