]> git.baikalelectronics.ru Git - uboot.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)
commiteaabd3abd07423db4f2d59ba9658ed80c40ddd33
tree8661502699fa0c9ce91c0fa137510f5cc90c6bf5
parentc9a54da1cbf46f330b8e56f8564037fa8a8a61b8
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