Re: [PATCH] mmc: sdhci-s3c: handle interface clock enable failures

From: Markus Elfring

Date: Sun Nov 29 2026 - 14:45:04 EST


> sdhci_s3c_probe() ignores the result of enabling the hsmmc interface
> clock. The clock helper unwinds partial preparation on failure, but probe
> continues into controller setup without a successful enable. A later
> probe error also reaches cleanup that assumes the clock was enabled.
>
> Propagate the original error immediately and leave the successful-enable
> cleanup labels for paths that actually acquired the reference.

Will the function “devm_clk_get_enabled” become applicable once more?
https://elixir.bootlin.com/linux/v7.4-rc2/source/include/linux/clk.h#L615-L632
https://elixir.bootlin.com/linux/v7.4-rc2/source/drivers/mmc/host/sdhci-s3c.c#L530-L537

Regards,
Markus