diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2021-07-02 15:42:29 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2021-08-24 10:15:32 +0200 |
commit | 6966e6094c6d594044ef1b740dd827e05881331c (patch) | |
tree | 4a9ba8bc0ecd16dac8a1198d1a491b61adcd888d /security/loadpin | |
parent | 468108155b0f89cc08189cc33f9bacfe9da8a125 (diff) |
mmc: core: Avoid hogging the CPU while polling for busy after I/O writes
When mmc_blk_card_busy() calls card_busy_detect() to poll for the card's
state with CMD13, this is done without any delays in between the commands
being sent.
Rather than fixing card_busy_detect() in this regards, let's instead
convert into using the common __mmc_poll_for_busy(), which also helps us to
avoid open-coding.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com>
Link: https://lore.kernel.org/r/20210702134229.357717-4-ulf.hansson@linaro.org
Diffstat (limited to 'security/loadpin')
0 files changed, 0 insertions, 0 deletions