[PATCH v2 0/8] Consolidate polling for busy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ulf,

This patchset consolidates polling for busy by using mmc_poll_for_busy()
to avoid re-invent the wheel for other code block. The only leftover is
mmc_test which not just poll for busy but also check if the host drivers
abuse MMC_CAP_WAIT_WHILE_BUSY.

V2 address your comments in V1, and please review it. Thanks.


Changes in v2:
- remove goto label
- improve the patch sequence and fold in all related changes to make
the patch look better.
- drop some patches and add reusing for card_busy_detect()

Shawn Lin (8):
  mmc: core: Move the sanity check of busy detection into
    mmc_poll_for_busy()
  mmc: core: Adjust and reuse the macro of R1_STATUS(x)
  mmc: core: Propgate device status and assigning busy indicator in
    mmc_poll_for_busy()
  mmc: core: Distinguish the caller of mmc_poll_for_busy() by new
    paramter
  mmc: core: Export mmc_poll_for_busy()
  mmc: core: Use mmc_poll_for_busy() for polling busy in mmc_do_erase()
  mmc: core: Use mmc_poll_for_busy() for polling busy in
    __mmc_blk_ioctl_cmd()
  mmc: block: Use mmc_poll_for_busy() for polling busy in mmc block
    layer

 drivers/mmc/core/block.c   | 100 ++++++++-------------------------------------
 drivers/mmc/core/core.c    |  46 ++++-----------------
 drivers/mmc/core/mmc_ops.c |  63 ++++++++++++++++++----------
 drivers/mmc/core/mmc_ops.h |   4 ++
 include/linux/mmc/mmc.h    |   2 +-
 5 files changed, 72 insertions(+), 143 deletions(-)

-- 
1.9.1


--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux