Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149787215
D54255.id168191.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
623 B
Referenced Files
None
Subscribers
None
D54255.id168191.diff
View Options
diff --git a/sys/dev/sdhci/sdhci.c b/sys/dev/sdhci/sdhci.c
--- a/sys/dev/sdhci/sdhci.c
+++ b/sys/dev/sdhci/sdhci.c
@@ -2183,6 +2183,19 @@
int err = 0;
SDHCI_LOCK(slot);
+ /*
+ * If the bus is busy, it may have stopped in the middle of a
+ * transaction. Try to complete that transaction before continuing.
+ */
+ if (slot->bus_busy && dumping) {
+ SDHCI_UNLOCK(slot);
+ while (slot->req != NULL) {
+ sdhci_generic_intr(slot);
+ DELAY(10);
+ }
+ sdhci_generic_release_host(brdev, reqdev);
+ SDHCI_LOCK(slot);
+ }
while (slot->bus_busy)
msleep(slot, &slot->mtx, 0, "sdhciah", 0);
slot->bus_busy++;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 28, 2:23 AM (3 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30454071
Default Alt Text
D54255.id168191.diff (623 B)
Attached To
Mode
D54255: sdhci: Try to complete the last transaction if dumping
Attached
Detach File
Event Timeline
Log In to Comment