[Bug 263928] sdhci_xenon puts SD card in read-only mode on 13.1
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 263928] sdhci_xenon puts SD card in read-only mode on 13.1"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 12 May 2022 03:27:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263928
--- 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 = 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
--
You are receiving this mail because:
You are the assignee for the bug.