git: 94ff1d9cc8ff - main - sdhci: fix dumping support in MMCCAM configuration

From: Andriy Gapon <avg_at_FreeBSD.org>
Date: Wed, 26 Jan 2022 07:32:43 UTC
The branch main has been updated by avg:

URL: https://cgit.FreeBSD.org/src/commit/?id=94ff1d9cc8ffc2b88caafed35168a258f969915c

commit 94ff1d9cc8ffc2b88caafed35168a258f969915c
Author:     Andriy Gapon <avg@FreeBSD.org>
AuthorDate: 2022-01-26 07:16:31 +0000
Commit:     Andriy Gapon <avg@FreeBSD.org>
CommitDate: 2022-01-26 07:31:45 +0000

    sdhci: fix dumping support in MMCCAM configuration
    
    This change fixes interaction with recently added sddadump.
    
    MFC after:      1 week
---
 sys/dev/sdhci/sdhci.c | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/sys/dev/sdhci/sdhci.c b/sys/dev/sdhci/sdhci.c
index 126dd23e13fc..541310ba421c 100644
--- a/sys/dev/sdhci/sdhci.c
+++ b/sys/dev/sdhci/sdhci.c
@@ -2725,7 +2725,7 @@ sdhci_cam_action(struct cam_sim *sim, union ccb *ccb)
 void
 sdhci_cam_poll(struct cam_sim *sim)
 {
-	return;
+	sdhci_generic_intr(cam_sim_softc(sim));
 }
 
 static int
@@ -2887,12 +2887,6 @@ sdhci_cam_request(struct sdhci_slot *slot, union ccb *ccb)
 	slot->flags = 0;
 	sdhci_start(slot);
 	SDHCI_UNLOCK(slot);
-	if (dumping) {
-		while (slot->ccb != NULL) {
-			sdhci_generic_intr(slot);
-			DELAY(10);
-		}
-	}
 	return (0);
 }
 #endif /* MMCCAM */