Skip to content

mmc: Fix max current limit handling for SD cards

Avri Altman linux-mmc stable 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mmc: core sd: Simplify current limit logic for 200mA defaultdrivers/mmc/core/sd.c include/linux/mmc/card.h+2 -64 replies
2/2mmc: core: sd: Fix and simplify SD card current limit handlingdrivers/mmc/core/sd.c include/linux/mmc/card.h+13 -296 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/2] mmc: Fix max current limit handling for SD cards

This series addresses a long-standing issue in the mmc driver regarding the setting of the maximum current limit for SD cards.

The current implementation, which dates back nearly a decade, misunderstood the intention of the SD specification. To be fair, the relevant section of the spec is notoriously confusing and difficult to interpret. As a result, the old code almost always limited cards to the default low power setting of 0.72W, regardless of the card’s actual capabilities.

With this change, we will now correctly set the maximum current limit, allowing SD cards to receive enough power to operate at their true potential and unleash their maximum performance.

Avri Altman (2):
mmc: core sd: Simplify current limit logic for 200mA default
mmc: core: sd: Fix and simplify SD card current limit handling

 drivers/mmc/core/sd.c    | 43 ++++++++++++++--------------------------
 include/linux/mmc/card.h |  7 -------
 2 files changed, 15 insertions(+), 35 deletions(-)
Signature · 1 line
2.25.1