Skip to content

Refactoring to support per-instance configurable max segments for dw_mmc

Shawn Lin linux-mmc lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4mmc: core: mmc: core: Add validation for host-provided max_segsdrivers/mmc/core/queue.c+7 -10 replies
2/4mmc: dw_mmc: Move misplaced commentdrivers/mmc/host/dw_mmc.h+1 -10 replies
3/4mmc: dw_mmc: Add desc_num field for claritydrivers/mmc/host/dw_mmc.c drivers/mmc/host/dw_mmc.h+10 -81 reply
4/4mmc: dw_mmc: Convert descriptor ring buffer to per-instance configurabledrivers/mmc/host/dw_mmc.c+5 -61 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] Refactoring to support per-instance configurable max segments for dw_mmc

The first patch is a defensive fix that addresses a crash caused by incorrect max segment numbers provided by host drivers. Patches 2 through 4 then perform a step-by-step refactoring of the dw_mmc code to support per-instance configurable max segments, which host drivers can utilize in the future.

Shawn Lin (4):
mmc: core: mmc: core: Add validation for host-provided max_segs
mmc: dw_mmc: Move misplaced comment
mmc: dw_mmc: Add desc_num field for clarity
mmc: dw_mmc: Convert descriptor ring buffer to per-instance
configurable

 drivers/mmc/core/queue.c  |  8 +++++++-
 drivers/mmc/host/dw_mmc.c | 27 +++++++++++++--------------
 drivers/mmc/host/dw_mmc.h |  4 +++-
 3 files changed, 23 insertions(+), 16 deletions(-)
Signature · 1 line
2.7.4