wilc1000: use fixed function base register value to access SDIO_FBR_ENABLE_CSA
authorAjay Singh <ajay.kathat@microchip.com>
Wed, 4 May 2022 16:19:25 +0000 (16:19 +0000)
committerKalle Valo <kvalo@kernel.org>
Wed, 11 May 2022 05:25:33 +0000 (08:25 +0300)
The function number was not correct(reset to 0) when host resumes from
suspend state. Use hardcoded value in function base information
register(FBR base address) to re-initialize correctly on host resume.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220504161924.2146601-2-ajay.kathat@microchip.com
drivers/net/wireless/microchip/wilc1000/sdio.c

index ec595db..7962c11 100644 (file)
@@ -598,7 +598,7 @@ static int wilc_sdio_init(struct wilc *wilc, bool resume)
        cmd.read_write = 1;
        cmd.function = 0;
        cmd.raw = 1;
-       cmd.address = SDIO_FBR_BASE(func->num);
+       cmd.address = SDIO_FBR_BASE(1);
        cmd.data = SDIO_FBR_ENABLE_CSA;
        ret = wilc_sdio_cmd52(wilc, &cmd);
        if (ret) {