]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: renesas-sdhi: Add proper probe error fail path
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Mon, 27 Feb 2023 22:49:28 +0000 (23:49 +0100)
committerMarek Vasut <marek.vasut+renesas@mailbox.org>
Fri, 10 Mar 2023 16:45:47 +0000 (17:45 +0100)
commitf20a61af4209785721bdee96131785d9dc24698d
tree8661502699fa0c9ce91c0fa137510f5cc90c6bf5
parent6ddffa89cb8396bf043adcc5090e8b1a9b1d0246
mmc: renesas-sdhi: Add proper probe error fail path

In case one of the calls in probe fail, trigger a fail path and
undo all the steps done in probe until the point of failure.
The current implementation failed to stop controller clock and
free claimed clock, so fix that. Furthermore, print return code
in error prints for easier debugging.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
drivers/mmc/renesas-sdhi.c