diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2021-05-04 18:12:13 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2021-06-14 13:57:35 +0200 |
commit | c7bedef053cf7fd26efca90551a95c1776dd9e2f (patch) | |
tree | c23bc6b37458005ff7a1b63933b4f84163f4263f /drivers/phy/freescale | |
parent | e62f1e0b2384e25fe61042da3ecf08b7d8262f8d (diff) |
mmc: core: Take into account MMC_CAP_NEED_RSP_BUSY for eMMC HPI commands
In mmc_send_hpi_cmd() the host->max_busy_timeout is being validated towards
the timeout for the eMMC HPI command, as to decide whether an R1 or R1B
response should be used.
Although, it has turned out the some host can't cope with that conversion,
but needs R1B, which means MMC_CAP_NEED_RSP_BUSY is set for them. Let's
take this into account, via using the common mmc_prepare_busy_cmd() when
doing the validation, which also avoids some open coding.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Acked-by: Avri Altman <avri.altman@wdc.com>
Link: https://lore.kernel.org/r/20210504161222.101536-3-ulf.hansson@linaro.org
Diffstat (limited to 'drivers/phy/freescale')
0 files changed, 0 insertions, 0 deletions