Skip to content

[ARM] Prevent high-speed SD, enable CONFIG_DEBUG_FS - #295

Open
chaitu236 wants to merge 2 commits into
ni:nilrt/master/6.18from
chaitu236:dev/cvadrevu/arm_sdhack
Open

[ARM] Prevent high-speed SD, enable CONFIG_DEBUG_FS#295
chaitu236 wants to merge 2 commits into
ni:nilrt/master/6.18from
chaitu236:dev/cvadrevu/arm_sdhack

Conversation

@chaitu236

@chaitu236 chaitu236 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Cherry-pick commit "HACK sd: Prevent SD from doing high-speed timing" from 4.14 kernel.

Also enable missing CONFIG_DEBUG_FS for parity with x64 and to support tracing.

WI: AB#3990505

Testing

  • Built kernel for ARM
  • Booted kernel on sbRIO-9607 (device code 77D6 whose dtb has force-sd-standard set).
  • /sys/kernel/debug/mmc0/caps is 0x40000009 i.e., MMC_CAP_SD_HIGHSPEED (1 << 2) and MMC_CAP_MMC_HIGHSPEED (1 << 1) are not set.

chenyeechew and others added 2 commits September 10, 2026 16:11
This will prevent SD card from doing SD high-speed timing. It will not do
SD high-speed timing for high-speed or standard-speed card.

Signed-off-by: Chen Yee Chew <chen.yee.chew@ni.com>
Reviewed-by: Keng Soon Cheah <keng.soon.cheah@ni.com>
Reviewed-by: Joe Hershberger <joe.hershberger@ni.com>
Natinst-CAR-ID: 519438
Natinst-ReviewBoard-ID: 99036
(cherry picked from commit 1aa830c)
[cvadrevu: Resolved simple conflict with
   8199d31 ("mmc: sdhci-pltfm: Convert DT properties to generic device properties")
   by switching from of_get_property API to device_property_present]
Signed-off-by: Chaitanya Vadrevu <chaitanya.vadrevu@emerson.com>
Enable debugfs to provide access to kernel debugging and diagnostic
interfaces on NI Zynq targets.

Signed-off-by: Chaitanya Vadrevu <chaitanya.vadrevu@emerson.com>
@chaitu236
chaitu236 requested review from a team and gratian September 10, 2026 22:04
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.

3 participants