msm: sdio: verify the device state in additional print_info cases

Since there are cases where the modem detection GPIO is
zeroed when the modem is crashed we need to also verify
the card state after operations on the sdio bus

Signed-off-by: Maya Erez <merez@codeaurora.org>
diff --git a/arch/arm/mach-msm/sdio_al.c b/arch/arm/mach-msm/sdio_al.c
index cd4311a..eb95d48 100644
--- a/arch/arm/mach-msm/sdio_al.c
+++ b/arch/arm/mach-msm/sdio_al.c
@@ -3257,6 +3257,8 @@
 					    &is_ok_to_sleep,
 					    SDIOC_SW_MAILBOX_ADDR+offset,
 					    sizeof(int));
+		if (sdio_al_verify_dev(sdio_al_dev, __func__))
+			return;
 		sdio_release_host(sdio_al_dev->card->sdio_func[0]);
 
 		if (ret)
@@ -3288,6 +3290,8 @@
 		sdio_claim_host(func1);
 		ret = sdio_memcpy_fromio(func1, hw_mailbox,
 			HW_MAILBOX_ADDR, sizeof(*hw_mailbox));
+		if (sdio_al_verify_dev(sdio_al_dev, __func__))
+			return;
 		sdio_release_host(func1);
 
 		if (ret) {