Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 May 2022 03:27:56 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 263928] sdhci_xenon puts SD card in read-only mode on 13.1
Message-ID:  <bug-263928-227-kZnmzQInap@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-263928-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-263928-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=3D263928

--- Comment #3 from Mike Cui <cuicui@gmail.com> ---
I found the bug in this commit: 707ab1f0643a sdhci_xenon: enable MMC FDT
parsing

Patch for the fix:

diff --git a/sys/dev/sdhci/sdhci_xenon.c b/sys/dev/sdhci/sdhci_xenon.c
index b6f7513245eb..7ed94907e478 100644
--- a/sys/dev/sdhci/sdhci_xenon.c
+++ b/sys/dev/sdhci/sdhci_xenon.c
@@ -183,7 +183,7 @@ sdhci_xenon_get_ro(device_t bus, device_t dev)
        struct sdhci_xenon_softc *sc =3D device_get_softc(bus);

        return (sdhci_generic_get_ro(bus, dev) ^
-           (sc->mmc_helper.props & MMC_PROP_WP_INVERTED));
+           !!(sc->mmc_helper.props & MMC_PROP_WP_INVERTED));
 }

 static bool

--=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-263928-227-kZnmzQInap>