Skip to contentSkip to conversation

mmc: support packed command feature of eMMC4.5

PATCH Superseded Seungwon Jeon 1 participant 1 message Jun 29, 2012 MMC, SD and SDIO

v8 of 9 Superseded Latest is v9 →

lore
Share & tools
lore
#0 lore raw

v8 cover mmc: support packed command feature of eMMC4.5

This patch-set adds support of packed command feature for eMMC4.5 devices.

Changes in v8:
- Ensure the alignment of sector size for native 4KB sector in command packing(from Subhash Jadavani)
- Exclude the packed read in this phase due to performance issue.

Changes in v7:
- Break the endless execution in some error handling(from Maya Erez).
- Change the condition for enabling packed command(from Subhash Jadavani).
- Spilt the error related routine from mmc_blk_issue_rw_rq.

Changes in v6:
- Split the patch for packed read.
- Remove the unnecessary code.

Changes in v5:
- Revert "Add a variable member in mmc_host for minimum number of packed entries".
- Fix the partial packed command from failure index.
- Clean an unnecessary parameter of mmc_blk_packed_hdr_wrq_prep
- Clean warning of checkpatch.

Changes in v4:
- Add Data-tag as CMD23 argument for packed header.
- Separate the capability of MMC_CAP2_PACKED_CMD into read and write.
- Remove unncessary initial value.

Changes in v3:
- Add a variable member in mmc_host for minimum number of packed entries. This value can be overridden by host.
- Fix a handling of error sequence.

Changes in v2:
- Fix the packed read sequence and error handling.
- Apply checking the exception status for all cases with
the comments from Maya Erez and Sahitya Tummala.
- Fix preparing the packed list with the comment from Maya Erez and Venkatraman.

Seungwon Jeon (2):
mmc: add packed command feature of eMMC4.5
mmc: support packed write command for eMMC4.5 device

 drivers/mmc/card/block.c   |  394 ++++++++++++++++++++++++++++++++++++++++++--
 drivers/mmc/card/queue.c   |   45 +++++-
 drivers/mmc/card/queue.h   |   12 ++
 drivers/mmc/core/mmc.c     |   25 +++
 drivers/mmc/core/mmc_ops.c |    1 +
 include/linux/mmc/card.h   |    8 +
 include/linux/mmc/core.h   |    4 +
 include/linux/mmc/host.h   |    4 +
 include/linux/mmc/mmc.h    |   15 ++
9 files changed, 491 insertions(+), 17 deletions(-)

Best regards,
Seungwon Jeon.
--
1.7.2.3