This repository has been archived by the owner on Jun 15, 2023. It is now read-only.
forked from freebsd/freebsd-src
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lx2160 recognizes the card, but "Controller timeout" mmcsd0: 32GB <SDHC SB32G 8.0 SN DD1242F8 MFG 09/2017 by 3 SD> at mmc0 43.7MHz/4bit/65535-block https://gist.github.com/agrajag9/f4e8186e4cea7da1e5d8887a8d74dd7a
- Loading branch information
1 parent
a2e2e3c
commit 4abb606
Showing
10 changed files
with
533 additions
and
282 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
4abb606
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you pull this out of your builds for any reason other than interrupts? If so, I think we can start testing this driver again.
4abb606
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@agrajag9 it's probably not the right way to go, this driver is ehhh :/
netbsd just has some little quirks in the main sdhci driver, that might be better. Also let's see where Semihalf's LS1046A work goes in terms of this.
4abb606
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you're right. I'm seeing in the DSDT:
A quick dig through their sources...
The _CID here: https://github.com/NetBSD/src/blob/62cc427439461ee2ed17fed0e4387d1d691ebde0/sys/external/bsd/acpica/dist/common/ahids.c#L203
A few defines here: https://github.com/NetBSD/src/blob/8c5437c0a8286cd843628f19da03672d963973ad/sys/dev/sdmmc/sdhcvar.h#L41
All mashed together: https://github.com/NetBSD/src/blob/f8904ef67c2808483f4f8a16e6e3a19c1dc2aad8/sys/dev/acpi/sdhc_acpi.c#L45
For the uSD and eMMC: https://github.com/NetBSD/src/blob/f8904ef67c2808483f4f8a16e6e3a19c1dc2aad8/sys/dev/acpi/sdhc_acpi.c#L92
And a few more here: https://github.com/NetBSD/src/blob/88684cc12fcd304844663f1fec92bd1c7ae7832f/sys/dev/sdmmc/sdhc.c#L303
That's much cleaner than a custom driver. If I'm not missing anything, I'll patch those in this weekend and see what happens.