]> www.infradead.org Git - nvme.git/commitdiff
wifi: wilc1000: do not keep sdio bus claimed during suspend/resume
authorAlexis Lothoré <alexis.lothore@bootlin.com>
Thu, 13 Jun 2024 14:06:42 +0000 (16:06 +0200)
committerKalle Valo <kvalo@kernel.org>
Tue, 18 Jun 2024 10:23:15 +0000 (13:23 +0300)
There is no reason to keep the MMC host claimed during suspend.

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20240613-wilc_suspend-v1-3-c2f766d0988c@bootlin.com
drivers/net/wireless/microchip/wilc1000/sdio.c

index 4e478a2cd4ccb9c0410802bccf7811155b71d5e4..fb4de3de1140d8857f514ede73e060940b50947d 100644 (file)
@@ -269,7 +269,6 @@ static int wilc_sdio_suspend(struct device *dev)
                dev_err(&func->dev, "Fail reset sdio\n");
                return ret;
        }
-       sdio_claim_host(func);
 
        return 0;
 }
@@ -1000,7 +999,6 @@ static int wilc_sdio_resume(struct device *dev)
        struct wilc *wilc = sdio_get_drvdata(func);
 
        dev_info(dev, "sdio resume\n");
-       sdio_release_host(func);
        wilc_sdio_init(wilc, true);
 
        if (wilc->suspend_event)