Skip to content

Introduce the request_atomic() for the host

Baolin Wang linux-mmc lkml oe-kbuild-all 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 4 repliesIn review
  2. v43 patches 4 repliesSuperseded
  3. v34 patches 2 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v23 patches4 repliesSuperseded
v1 posting 2/23 patches8 repliesSuperseded
v1 posting 1/23 patches0 repliesSuperseded

Changes in v5 from the cover letter

- Remove redundant checking when warning the return value of request_atomic().
- Add acked tag from Adrian for patch 1.
- Re-implement the request_atomic() based on the Adrian's patch set.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mmc: host: Introduce the request_atomic() for the hostdrivers/mmc/host/mmc_hsq.c drivers/mmc/host/mmc_hsq.h include/linux/mmc/host.h+32 -10 replies
2/3mmc: host: sdhci: Implement the request_atomic() APIdrivers/mmc/host/sdhci.c drivers/mmc/host/sdhci.h+35 -02 replies
3/3mmc: host: sdhci-sprd: Implement the request_atomic() APIdrivers/mmc/host/sdhci-sprd.c+20 -31 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchAdrian Hunter
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/3] Introduce the request_atomic() for the host

This patch set introduces a new request_atomic() interface for the MMC host controller, which is used to submit a request to host in the atomic context, such as in the irq hard handler, to reduce the request latency.

Note, this patch set is based on Adrian's patch set:
https://www.spinics.net/lists/linux-mmc/msg58529.html

Any comments are welcome. Thanks.

Changes from v4:
- Remove redundant checking when warning the return value of request_atomic().
- Add acked tag from Adrian for patch 1.
- Re-implement the request_atomic() based on the Adrian's patch set.

Changes from v3:
- Move patch 3 of V3 patch set into patch 1.
- Add a warning for unexpected return value of request_atomic().
- Remove redundant checking of ops->request().

Changes from v2:
- Return busy flag if encountering unusual card busy state instead of polling in interrupt context.
- Add a work for HSQ to try again in non-atomic context if the host returns busy flag.

Changes from v1:
- Re-split the changes to make them more clear suggested by Ulf.
- Factor out the auto CMD23 checking into a separate function.

Baolin Wang (3):
mmc: host: Introduce the request_atomic() for the host
mmc: host: sdhci: Implement the request_atomic() API
mmc: host: sdhci-sprd: Implement the request_atomic() API

 drivers/mmc/host/mmc_hsq.c    | 29 ++++++++++++++++++++++++++++-
 drivers/mmc/host/mmc_hsq.h    |  1 +
 drivers/mmc/host/sdhci-sprd.c | 23 ++++++++++++++++++++---
 drivers/mmc/host/sdhci.c      | 34 ++++++++++++++++++++++++++++++++++
 drivers/mmc/host/sdhci.h      |  1 +
 include/linux/mmc/host.h      |  3 +++
 6 files changed, 87 insertions(+), 4 deletions(-)
Signature · 1 line
2.17.1