summaryrefslogtreecommitdiffstats
path: root/sys/dev/sdhci/sdhci.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2009-02-17 19:12:15 +0000
committermav <mav@FreeBSD.org>2009-02-17 19:12:15 +0000
commitbf68918fb622859f29c0c0ec667dc6378a3fd071 (patch)
tree0181c881c3d777b6ff3a4d02c3317e7be06f8f52 /sys/dev/sdhci/sdhci.c
parentc4ef66ce8f2d9d62b69b1ee07bb38fc7aa231ad1 (diff)
downloadFreeBSD-src-bf68918fb622859f29c0c0ec667dc6378a3fd071.zip
FreeBSD-src-bf68918fb622859f29c0c0ec667dc6378a3fd071.tar.gz
Add support for interruptless kernel dumping.
Diffstat (limited to 'sys/dev/sdhci/sdhci.c')
-rw-r--r--sys/dev/sdhci/sdhci.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/sdhci/sdhci.c b/sys/dev/sdhci/sdhci.c
index c41866f..9b406fb 100644
--- a/sys/dev/sdhci/sdhci.c
+++ b/sys/dev/sdhci/sdhci.c
@@ -1187,6 +1187,12 @@ sdhci_request(device_t brdev, device_t reqdev, struct mmc_request *req)
slot->flags = 0;
sdhci_start(slot);
SDHCI_UNLOCK(slot);
+ if (dumping) {
+ while (slot->req != NULL) {
+ sdhci_intr(slot->sc);
+ DELAY(10);
+ }
+ }
return (0);
}
OpenPOWER on IntegriCloud