From: Sascha Hauer <[email protected]>

sdhci_wait_idle() is what Linux does and it works fine in barebox.
sdhci_wait_idle_data() instead also waits for the SDHCI_CMD_INHIBIT_DATA
bit which shouldn't be necessary.

Link: https://lore.barebox.org/[email protected]
Signed-off-by: Sascha Hauer <[email protected]>
(cherry picked from commit a2876b0468eeda34846a88bb3ce6fec9718035b5)
Signed-off-by: Ahmad Fatoum <[email protected]>
---
 drivers/mci/am654-sdhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mci/am654-sdhci.c b/drivers/mci/am654-sdhci.c
index 24abf10492c1..17d3f7627005 100644
--- a/drivers/mci/am654-sdhci.c
+++ b/drivers/mci/am654-sdhci.c
@@ -463,7 +463,7 @@ static int am654_sdhci_send_cmd(struct mci_host *mci, 
struct mci_cmd *cmd,
        int ret;
        dma_addr_t dma;
 
-       ret = sdhci_wait_idle_data(&host->sdhci, cmd);
+       ret = sdhci_wait_idle(&host->sdhci, cmd, data);
        if (ret)
                return ret;
 
-- 
2.47.3


Reply via email to