diff options
| author | Mitchell Horne <mhorne@FreeBSD.org> | 2025-11-05 14:37:36 +0000 |
|---|---|---|
| committer | Mitchell Horne <mhorne@FreeBSD.org> | 2025-11-05 14:40:34 +0000 |
| commit | 768ee6d454821cc63247cb4ffe526c5a06accff0 (patch) | |
| tree | 7b877a01b79f89dcf5108b7c6987643ecb576a18 /cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/docsExamples/truss.d | |
| parent | f939619a2f989656e1ecdfd7a2759e3ba44d4ec7 (diff) | |
The documented properties [1] for card-detection are one of:
- cd-gpios
- non-removable
- broken-cd
In cd_setup() we handle the first two, but not the latter, resulting in
a silently undetected card on an affected system.
To work around this, force cd_disabled when broken-cd is specified, so
that the card detect helper function gets to run. A more complete
solution would implement some kind of polling mechanism to detect the
card's presence or removal.
Some variants of the Allwinner D1, such as the Lichee Rv, specify this
property in the mmc0 device node.
[1] sys/contrib/device-tree/Bindings/mmc/mmc-controller.yaml
Reported by: Haowu Ge <gehaowu@bitmoe.com>
Tested by: Haowu Ge <gehaowu@bitmoe.com>
Reviewed by: imp, manu, mmel
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D53546
Diffstat (limited to 'cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/docsExamples/truss.d')
0 files changed, 0 insertions, 0 deletions
