Thread (8 messages) 8 messages, 3 authors, 2014-01-31

Re: wlcore-spi crash

From: Charles <hidden>
Date: 2014-01-23 16:19:27

quoted
quoted
When I modprobe wlcore-spi I get a kernel crash.  Has anyone
encountered this?  I found a similar problem here:
http://marc.info/?l=linux-wireless&m=135212370625698&w=2

I tried adding the patch mentioned there to backports-3.12-1, but I
get this build error: "error: 'struct wl1271' has no member named
'set_power'"

Here's the crash:

[   98.325693] Unable to handle kernel NULL pointer dereference at
virtual address 00000000
[   98.334171] pgd = c0004000
[   98.337031] [00000000] *pgd=00000000
[   98.340791] Internal error: Oops: 80000007 [#1]
[   98.345524] Modules linked in: wlcore_spi(O) wl12xx(O) wlcore(O)
mac80211(O) cfg80211(O) compat(O) autofs4
[   98.355661] CPU: 0    Tainted: G           O  (3.2.0)
[   98.364120] PC is at 0x0
[   98.366846] LR is at wl12xx_set_power_on+0x30/0x150 [wlcore]
I think this should help:
http://www.spinics.net/lists/linux-wireless/msg98589.html
As I mentioned above, I get a compile error with that patch: the
wl1271 struct doesn't have "set_power".
I got the patch to compile by adding "void (*set_power)(bool enable);"
to the wl1271 struct in wlcore.h.  Now the driver loads without
crashing, but I get a new error:

[   70.166191] wl1271_spi spi1.1: SPI read busy-word timeout!
[   70.208452] wl1271_spi spi1.1: SPI read busy-word timeout!
[   70.252324] wl1271_spi spi1.1: SPI read busy-word timeout!
[   70.294749] wl1271_spi spi1.1: SPI read busy-word timeout!
[   70.300515] wlcore: WARNING Top register access timed out.
[   70.306260] wlcore: ERROR couldn't get hw info
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help