]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mmc: core: Skip to set the default 200mA SD current limit
authorAvri Altman <avri.altman@sandisk.com>
Thu, 19 Jun 2025 08:56:19 +0000 (11:56 +0300)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 23 Oct 2025 14:07:21 +0000 (16:07 +0200)
commitc2afdd73e5ba2146c7e8b43b2607da5d4b720d9d
treeb66105970829d5561bfeaf19fe80899e4df0b5c0
parent218fe24ff23b42eaa79829c06c336f056476ef26
mmc: core: Skip to set the default 200mA SD current limit

Let's avoid updating the SD current limit when the maximum power is 200mA
(0.72W) or less, as this is already the default value for the SD card. In
this way we avoid sending an unnecessary command during initialization.

Signed-off-by: Avri Altman <avri.altman@sandisk.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/sd.c
include/linux/mmc/card.h