Skip to content

Commit

Permalink
mmc: core: Fix busy polling for MMC_SEND_OP_COND again
Browse files Browse the repository at this point in the history
It turned out that polling period for MMC_SEND_OP_COND, that currently is
set to 1ms, still isn't sufficient. In particular a Micron eMMC on a
Beaglebone platform, is reported to sometimes fail to initialize.

Additional test, shows that extending the period to 4ms is working fine, so
let's make that change.

Reported-by: Jean Rene Dawin <[email protected]>
Tested-by: Jean Rene Dawin <[email protected]>
Fixes: 1760fdb (mmc: core: Restore (almost) the busy polling for MMC_SEND_OP_COND")
Fixes: 76bfc7c ("mmc: core: adjust polling interval for CMD1")
Cc: [email protected]
Signed-off-by: Ulf Hansson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
storulf committed May 19, 2022
1 parent 3e5a8e8 commit e949dee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/core/mmc_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#define MMC_BKOPS_TIMEOUT_MS (120 * 1000) /* 120s */
#define MMC_SANITIZE_TIMEOUT_MS (240 * 1000) /* 240s */
#define MMC_OP_COND_PERIOD_US (1 * 1000) /* 1ms */
#define MMC_OP_COND_PERIOD_US (4 * 1000) /* 4ms */
#define MMC_OP_COND_TIMEOUT_MS 1000 /* 1s */

static const u8 tuning_blk_pattern_4bit[] = {
Expand Down

0 comments on commit e949dee

Please sign in to comment.