Skip to content

Revert "HACK sd: Prevent SD from doing high-speed timing" - #197

Merged
gratian merged 1 commit into
ni:nilrt/master/6.6from
erickshepherdNI:ershephe/revert-speed-limiting-patch
Feb 19, 2025
Merged

gratian merged 1 commit into
ni:nilrt/master/6.6from
erickshepherdNI:ershephe/revert-speed-limiting-patch

Conversation

@erickshepherdNI

@erickshepherdNI erickshepherdNI commented Feb 13, 2025 •

Copy link
Copy Markdown
Contributor

This reverts commit 97ebd2d.

Justification

The commit being reverted only addressed an issue with the 9607 and 9627, which are both Zynq-7000 based. These devices are still using the 4.14 kernel so the change should be safe to drop from 6.6. The alternative would be to upstream the change, but would likely require some discussion on how to re-implement it since it was initially implemented as a quick hack. More details about the original change can be found here.

AB#2316653

This reverts commit 97ebd2d.

Signed-off-by: Erick Shepherd <erick.shepherd@ni.com>
@erickshepherdNI
erickshepherdNI requested review from a team, chaitu236 and gratian February 13, 2025 23:02
@chaitu236

Copy link
Copy Markdown
Contributor

There have been recent PRs in this repo to update kernel for bluefin devices (which are zynq based from what I understand) - e.g., #195, #192, etc. They may not care about 9607 and 9627 specifically but these changes may still be needed for the bluefin devices. You may want to check with them.

@gratian

gratian commented Feb 19, 2025

Copy link
Copy Markdown
Contributor

@chaitu236 searching the device trees for force-sd-standard I only see it used in:

$ git grep "force-sd-standard"
arch/arm/boot/dts/xilinx/ni-sbrio-9607.dts:     force-sd-standard;
arch/arm/boot/dts/xilinx/ni-sbrio-9627.dts:     force-sd-standard;
drivers/mmc/host/sdhci-pltfm.c: if (device_property_present(dev, "force-sd-standard"))

This is true on both 6.6 and 4.14 branches. Considering this, I intend to merge this revert.

If we do need it in the future for some bluefin device let's talk about adding it back in a non-hacky way. FYI @HatsyRei @DeborahOoi96

@gratian
gratian merged commit 7ef9fcb into ni:nilrt/master/6.6 Feb 19, 2025
@erickshepherdNI

Copy link
Copy Markdown
Contributor Author

There have been recent PRs in this repo to update kernel for bluefin devices (which are zynq based from what I understand) - e.g., #195, #192, etc. They may not care about 9607 and 9627 specifically but these changes may still be needed for the bluefin devices. You may want to check with them.

The author of these pull requests confirmed that the bluefin devices should not need this fix.

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