Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

drivers: sdhc: imx_usdhc: assume card is present if no detection method #77301

Merged
merged 2 commits into from
Aug 22, 2024

Conversation

danieldegrasse
Copy link
Collaborator

The imx USDHC driver previously queried the peripheral's internal card
detect signal to check card presence if no card detect method was
configured. However, some boards do not route the card detect signal and
do not work correctly with the DAT3 detection method supported by this
peripheral. As a fallback, assume the card is present in the slot but
log a warning to the user.

Fixes #42227

The imx USDHC driver previously queried the peripheral's internal card
detect signal to check card presence if no card detect method was
configured. However, some boards do not route the card detect signal and
do not work correctly with the DAT3 detection method supported by this
peripheral. As a fallback, assume the card is present in the slot but
log a warning to the user.

Fixes zephyrproject-rtos#42227

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
NXP IMX USDHC fallback card detection method changed from querying the
peripheral to simply assuming the card was present. Add a note to the
migration guide highlighting this and explaining how to restore the
previous behavior for anyone using this detection method.

Signed-off-by: Daniel DeGrasse <daniel.degrasse@nxp.com>
@dleach02 dleach02 added the backport v3.7-branch Request backport to the v3.7-branch label Aug 22, 2024
@nashif nashif merged commit e6a6deb into zephyrproject-rtos:main Aug 22, 2024
32 checks passed
@danieldegrasse danieldegrasse deleted the fix/usdhc-card-detect branch August 26, 2024 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Disk Access backport v3.7-branch Request backport to the v3.7-branch platform: NXP Drivers NXP Semiconductors, drivers Release Notes To be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Teensy41 support SDHC - Storage init Error
5 participants