Linux MultiMedia Card development
 help / color / mirror / Atom feed
* [PATCH 0/2] mmc: Fix max current limit handling for SD cards
@ 2025-06-19  8:56 Avri Altman
  2025-06-19  8:56 ` [PATCH 1/2] mmc: core sd: Simplify current limit logic for 200mA default Avri Altman
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Avri Altman @ 2025-06-19  8:56 UTC (permalink / raw)
  To: Ulf Hansson, linux-mmc
  Cc: Sarthak Garg, Abraham Bachrach, Prathamesh Shete, Bibek Basu,
	Sagiv Aharonoff, Avri Altman

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(-)

-- 
2.25.1


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2025-10-23 18:27 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-19  8:56 [PATCH 0/2] mmc: Fix max current limit handling for SD cards Avri Altman
2025-06-19  8:56 ` [PATCH 1/2] mmc: core sd: Simplify current limit logic for 200mA default Avri Altman
2025-07-08 15:13   ` Ulf Hansson
2025-07-09  5:56     ` Avri Altman
2025-10-23 14:32   ` Ulf Hansson
2025-10-23 18:26     ` Avri Altman
2025-06-19  8:56 ` [PATCH 2/2] mmc: core: sd: Fix and simplify SD card current limit handling Avri Altman
2025-07-08 15:47   ` Ulf Hansson
2025-07-09 14:03     ` Avri Altman
2025-07-09 15:05       ` Ulf Hansson
2025-07-10  7:57         ` Avri Altman
2025-07-10  8:54           ` Ulf Hansson
2025-07-10 10:57             ` Avri Altman
2025-07-04  8:01 ` [PATCH 0/2] mmc: Fix max current limit handling for SD cards Avri Altman
2025-07-04 10:05   ` Ulf Hansson
2025-07-05 14:36     ` Avri Altman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox