diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2021-05-04 18:12:12 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2021-06-14 13:57:35 +0200 |
commit | e62f1e0b2384e25fe61042da3ecf08b7d8262f8d (patch) | |
tree | 6411894d927f4cc69d959cb7636c06e0c484ecd0 /drivers/phy/freescale | |
parent | 94ee6782e045645abd9180ab9369b01293d862bd (diff) |
mmc: core: Drop open coding when preparing commands with busy signaling
Similar code for validating the host->max_busy_timeout towards the current
command's busy timeout, exists in mmc_do_erase(), mmc_sleep() and
__mmc_switch(). Let's move the common code into a helper function.
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-2-ulf.hansson@linaro.org
Diffstat (limited to 'drivers/phy/freescale')
0 files changed, 0 insertions, 0 deletions