Skip to content

Commit e146cc0

Browse files
ajaykathatnoglitch
authored andcommitted
wilc1000: remove setting of WILC_FW_HOST_COMM from driver
The setting of WILC_FW_HOST_COMM is taken care from FW side so no need to set it explicitly from driver code. Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
1 parent 174dcf8 commit e146cc0

2 files changed

Lines changed: 0 additions & 16 deletions

File tree

drivers/staging/wilc1000/wlan.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1609,21 +1609,6 @@ int wilc_wlan_stop(struct wilc *wilc, struct wilc_vif *vif)
16091609
return ret;
16101610
}
16111611

1612-
ret = wilc->hif_func->hif_read_reg(wilc, WILC_FW_HOST_COMM, &reg);
1613-
if (ret) {
1614-
PRINT_ER(vif->ndev, "Error while reading reg\n");
1615-
release_bus(wilc, WILC_BUS_RELEASE_ALLOW_SLEEP, DEV_WIFI);
1616-
return ret;
1617-
}
1618-
reg = BIT(0);
1619-
1620-
ret = wilc->hif_func->hif_write_reg(wilc, WILC_FW_HOST_COMM, reg);
1621-
if (ret) {
1622-
PRINT_ER(vif->ndev, "Error while writing reg\n");
1623-
release_bus(wilc, WILC_BUS_RELEASE_ALLOW_SLEEP, DEV_WIFI);
1624-
return ret;
1625-
}
1626-
16271612
release_bus(wilc, WILC_BUS_RELEASE_ALLOW_SLEEP, DEV_WIFI);
16281613

16291614
return 0;

drivers/staging/wilc1000/wlan.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,6 @@ static inline bool is_wilc3000(u32 id)
195195
#define VMM_TBL_RX_SHADOW_BASE WILC_AHB_SHARE_MEM_BASE
196196
#define VMM_TBL_RX_SHADOW_SIZE 256
197197

198-
#define WILC_FW_HOST_COMM 0x13c0
199198
#define WILC_GP_REG_0 0x149c
200199
#define WILC_GP_REG_1 0x14a0
201200

0 commit comments

Comments
 (0)