[Bug 204521] [new driver] [request] Port rtsx from OpenBSD to FreeBSD
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu May 28 19:38:29 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204521
--- Comment #125 from jyoung15 at gmail.com ---
I've made some progress with the issue I'm having. I noticed in the dmesg
output it seems to incorrectly detect when the card is inserted and removed.
Specifically the issue seems to be in rtsx_is_card_present. As a very quick
and dirty hack, I made this change so it always reports the card as present:
diff --git a/rtsx.c b/rtsx.c
index 0010bc7..a38668e 100644
--- a/rtsx.c
+++ b/rtsx.c
@@ -1122,7 +1122,8 @@ rtsx_is_card_present(struct rtsx_softc *sc)
uint32_t status;
status = READ4(sc, RTSX_BIPR);
- return (status & RTSX_SD_EXIST);
+ // return (status & RTSX_SD_EXIST);
+ return RTSX_SD_EXIST;
}
After making this change I'm able to see the device in /dev and mount the
filesystem successfully. So it seems the issue is related to detecting if the
card is present on the BIPR register.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list