Skip to content

Commit 2d7411c

Browse files
ajaykathatnoglitch
authored andcommitted
wilc1000: use direct address value for FBR function 1
Use direct value to set FBR address because during host resume incorrect value of 'func->num' is fetched. When host resumes from suspend state 'func->num' value is zero which results in wrong address calculation. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
1 parent 74be1dd commit 2d7411c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/staging/wilc1000

drivers/staging/wilc1000/sdio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ static int wilc_sdio_init(struct wilc *wilc, bool resume)
695695
cmd.read_write = 1;
696696
cmd.function = 0;
697697
cmd.raw = 1;
698-
cmd.address = SDIO_FBR_BASE(func->num) + SDIO_FBR_STD_IF;
698+
cmd.address = SDIO_FBR_BASE(1);
699699
cmd.data = SDIO_FBR_ENABLE_CSA;
700700
ret = wilc_sdio_cmd52(wilc, &cmd);
701701
if (ret) {

0 commit comments

Comments
 (0)