Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146511777
D53546.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
620 B
Referenced Files
None
Subscribers
None
D53546.id.diff
View Options
diff --git a/sys/dev/mmc/mmc_fdt_helpers.c b/sys/dev/mmc/mmc_fdt_helpers.c
--- a/sys/dev/mmc/mmc_fdt_helpers.c
+++ b/sys/dev/mmc/mmc_fdt_helpers.c
@@ -159,6 +159,17 @@
return;
}
+ /*
+ * If the device has no card-detection, treat it as non-removable.
+ * This could be improved by polling for detection.
+ */
+ if (helper->props & MMC_PROP_BROKEN_CD) {
+ helper->cd_disabled = true;
+ if (bootverbose)
+ device_printf(dev, "Broken card-detect\n");
+ return;
+ }
+
/*
* If there is no cd-gpios property, then presumably the hardware
* PRESENT_STATE register and interrupts will reflect card state
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 4, 6:43 AM (15 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29231859
Default Alt Text
D53546.id.diff (620 B)
Attached To
Mode
D53546: mmc_fdt: handle broken-cd property
Attached
Detach File
Event Timeline
Log In to Comment