Date: Thu, 28 May 2020 19:38:23 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 204521] [new driver] [request] Port rtsx from OpenBSD to FreeBSD Message-ID: <bug-204521-227-dBIUE1Necz@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-204521-227@https.bugs.freebsd.org/bugzilla/> References: <bug-204521-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D204521 --- Comment #125 from jyoung15@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= .=20 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 =3D 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204521-227-dBIUE1Necz>