wifi: fix sdio timeout issue
authorRongjun Chen <rongjun.chen@amlogic.com>
Wed, 7 Dec 2016 06:18:41 +0000 (14:18 +0800)
committerRongjun Chen <rongjun.chen@amlogic.com>
Wed, 7 Dec 2016 06:18:41 +0000 (14:18 +0800)
Change-Id: If1d8e89ac7983859b877e6311be8019422333843

bcmdhd.1.363.59.144.x.cn/dhd_sdio.c

index a59a7e360211b5868d70119a2df41d0cf77257ad..22b9ebbe0e253201fad3d02e83ff6a67813b26f8 100644 (file)
@@ -920,7 +920,8 @@ dhdsdio_clk_kso_enab(dhd_bus_t *bus, bool on)
        uint8 wr_val = 0, rd_val, cmp_val, bmask;
        int err = 0;
        int try_cnt = 0;
-
+       if (!bus->dhd->conf->kso_enable)
+               return 0;
        KSO_DBG(("%s> op:%s\n", __FUNCTION__, (on ? "KSO_SET" : "KSO_CLR")));
 
        wr_val |= (on << SBSDIO_FUNC1_SLEEPCSR_KSO_SHIFT);