wilc1000: use fixed function base register value to access SDIO_FBR_ENABLE_CSA
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
This commit is contained in:
parent
4ee8a91573
commit
72ebd6751f
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user