| CC drivers/mmc/host/sdhci.o
| drivers/mmc/host/sdhci.c: In function 'sdhci_execute_tuning':
| drivers/mmc/host/sdhci.c:1990:4: error: implicit declaration of function 
'sdhci_do_reset' [-Werror=implicit-function-declaration]
| sdhci_do_reset(host, SDHCI_RESET_CMD);
| ^
| drivers/mmc/host/sdhci.c:2006:7: error: 'struct mmc_command' has no member 
named 'busy_timeout'
| cmd.busy_timeout = 50;
|        ^

In function sdhci_execute_tuning, replace sdhci_do_reset
with sdhci_reset, replace busy_timeout with cmd_timeout_ms.

Commit a629a90ba0 adds eMMC DDR mode support for t2080qds and
modified some data structures and function name. Later
commit a2080cc280 just backport upstream commit 61e53bd004
without aligning the current source tree thus cause
these build errors. Fix them.

Signed-off-by: Zhang Xiao <xiao.zh...@windriver.com>
---
 drivers/mmc/host/sdhci.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index 0a7fd624b133..cef9eea61e95 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -1987,8 +1987,8 @@ static int sdhci_execute_tuning(struct mmc_host *mmc, u32 
opcode)
                        ctrl &= ~SDHCI_CTRL_EXEC_TUNING;
                        sdhci_writew(host, ctrl, SDHCI_HOST_CONTROL2);
 
-                       sdhci_do_reset(host, SDHCI_RESET_CMD);
-                       sdhci_do_reset(host, SDHCI_RESET_DATA);
+                       sdhci_reset(host, SDHCI_RESET_CMD);
+                       sdhci_reset(host, SDHCI_RESET_DATA);
 
                        err = -EIO;
 
@@ -2003,7 +2003,7 @@ static int sdhci_execute_tuning(struct mmc_host *mmc, u32 
opcode)
                        memset(&cmd, 0, sizeof(cmd));
                        cmd.opcode = MMC_STOP_TRANSMISSION;
                        cmd.flags = MMC_RSP_SPI_R1B | MMC_RSP_R1B | MMC_CMD_AC;
-                       cmd.busy_timeout = 50;
+                       cmd.cmd_timeout_ms = 50;
                        mmc_wait_for_cmd(mmc, &cmd, 0);
 
                        spin_lock_irqsave(&host->lock, flags);
-- 
2.11.0

-- 
_______________________________________________
linux-yocto mailing list
linux-yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/linux-yocto

Reply via email to