Skip to content

mmc: sdhci: Disable SD card clock before changing parameters#272

Open
erickshepherdNI wants to merge 1 commit intoni:nilrt/master/6.12from
erickshepherdNI:ershephe/cherrypick-mmc
Open

mmc: sdhci: Disable SD card clock before changing parameters#272
erickshepherdNI wants to merge 1 commit intoni:nilrt/master/6.12from
erickshepherdNI:ershephe/cherrypick-mmc

Conversation

@erickshepherdNI
Copy link
Copy Markdown
Contributor

Per the SD Host Controller Simplified Specification v4.20 §3.2.3, change the SD card clock parameters only after first disabling the external card clock. Doing this fixes a spurious clock pulse on Baytrail and Apollo Lake SD controllers which otherwise breaks voltage switching with a specific Swissbit SD card. This change is limited to Intel host controllers to avoid an issue reported on ARM64 devices.

Acked-by: Adrian Hunter adrian.hunter@intel.com
Link: https://lore.kernel.org/r/20250724185354.815888-1-erick.shepherd@ni.com

(cherry picked from commit 5f755ba)

Per the SD Host Controller Simplified Specification v4.20 §3.2.3, change
the SD card clock parameters only after first disabling the external card
clock. Doing this fixes a spurious clock pulse on Baytrail and Apollo Lake
SD controllers which otherwise breaks voltage switching with a specific
Swissbit SD card. This change is limited to Intel host controllers to
avoid an issue reported on ARM64 devices.

Signed-off-by: Kyle Roeschley <kyle.roeschley@ni.com>
Signed-off-by: Brad Mouring <brad.mouring@ni.com>
Signed-off-by: Erick Shepherd <erick.shepherd@ni.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20250724185354.815888-1-erick.shepherd@ni.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
(cherry picked from commit 5f755ba)
@erickshepherdNI erickshepherdNI requested a review from a team April 15, 2026 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant