Hi! > > [ 13.653778] panel-dsi-cm 58004000.encoder:display: using lookup > > tables for GPIO lookup > > [ 13.661834] panel-dsi-cm 58004000.encoder:display: No GPIO consumer > > te found > > [ 14.756622] ------------[ cut here ]------------ > > [ 14.761352] WARNING: CPU: 0 PID: 20 at > > /data/fast/l/k/drivers/net/wireless/ti/wlcore/sdio.c:86 > > wl12xx_sdio_raw_read+0xa8/0x128 > > [ 14.772888] Modules linked in: > > [ 14.776062] CPU: 0 PID: 20 Comm: kworker/0:1 Tainted: G W > > 5.3.0-rc4-58571-gdbaece1 #85 > > [ 14.783630] Hardware name: Generic OMAP4 (Flattened Device Tree) > > [ 14.791381] Workqueue: events request_firmware_work_func > > You have a timeout here. Can be that your reset sequence of the wifi > is not optimal because > is not responding? I tried delays and printks... WL12XX_REG_FUSE_BD_ADDR_1 read fails, and retrying does not really help. If you have idea how to debug/fix this, let me know... Best regards, Pavel diff --git a/drivers/net/wireless/ti/wl12xx/main.c b/drivers/net/wireless/ti/wl12xx/main.c index 3c9c623..afb294a 100644 --- a/drivers/net/wireless/ti/wl12xx/main.c +++ b/drivers/net/wireless/ti/wl12xx/main.c @@ -1505,24 +1505,40 @@ static int wl12xx_get_fuse_mac(struct wl1271 *wl) { u32 mac1, mac2; int ret; - + + mdelay(1); + printk("get_fuse_mac: %d\n", __LINE__); ret = wlcore_set_partition(wl, &wl->ptable[PART_DRPW]); if (ret < 0) goto out; + mdelay(1); + printk("get_fuse_mac: %d\n", __LINE__); + ret = wlcore_read32(wl, WL12XX_REG_FUSE_BD_ADDR_1, &mac1); + if (ret < 0) { + printk("get_fuse_mac: X %d\n", __LINE__); + ret = wlcore_read32(wl, WL12XX_REG_FUSE_BD_ADDR_1, &mac1); + if (ret < 0) { + printk("get_fuse_mac: XX %d\n", __LINE__); ret = wlcore_read32(wl, WL12XX_REG_FUSE_BD_ADDR_1, &mac1); if (ret < 0) goto out; + } + } + + printk("get_fuse_mac: %d\n", __LINE__); ret = wlcore_read32(wl, WL12XX_REG_FUSE_BD_ADDR_2, &mac2); if (ret < 0) goto out; + printk("get_fuse_mac: %d\n", __LINE__); /* these are the two parts of the BD_ADDR */ wl->fuse_oui_addr = ((mac2 & 0xffff) << 8) + ((mac1 & 0xff000000) >> 24); wl->fuse_nic_addr = mac1 & 0xffffff; + printk("get_fuse_mac: %d\n", __LINE__); ret = wlcore_set_partition(wl, &wl->ptable[PART_DOWN]); out: -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
Attachment:
signature.asc
Description: Digital signature