linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* brcmfmac driver does not work with a BCM4335 WiFi module
@ 2013-11-01  6:22 Dong Aisheng
  2013-11-01 10:35 ` Arend van Spriel
  0 siblings, 1 reply; 17+ messages in thread
From: Dong Aisheng @ 2013-11-01  6:22 UTC (permalink / raw)
  To: linux-wireless; +Cc: frankyl, brcm80211-dev-list

Hi ALL,

I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
The kernel i ran is latest from:
git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git

The firmware is used is from:
git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

NVRAM file is got from the vendor which should work for the module.

But i ran into the following issues, hope somebody can give me some hints.

First, i met error when module is auto loaded, but seems the driver is
still loaded successfully since i found the new WiFi interface with
ifconfig.
But it can not work after run rfkill unblock wlan and a lot error
messages comes out.

I'm wondering if this driver can support bcm4335 well, can anybody
provide some help?

Regards
Dong Aisheng

Below is the log FYI.

root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
mmc0: new high speed SDIO card at address 0001
brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
brcmfmac: brcmf_sdio_regrw_helper: failed with -84
brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
init done for chip 4335 rev 1 pmurev 18
brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
brcmfmac: brcmf_fil_cmd_data: Failed err=-23

root@imx6slevk:~#
root@imx6slevk:~# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:04:9F:02:76:E5
          inet addr:10.192.242.69  Bcast:10.192.242.255  Mask:255.255.255.0
          inet6 addr: fe80::204:9fff:fe02:76e5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20301 errors:0 dropped:1 overruns:0 frame:0
          TX packets:16888 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:22233761 (21.2 MiB)  TX bytes:2373414 (2.2 MiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:34 errors:0 dropped:0 overruns:0 frame:0
          TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2340 (2.2 KiB)  TX bytes:2340 (2.2 KiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@imx6slevk:~#
root@imx6slevk:~# rfkill list
0: phy0: wlan
        Soft blocked: yes
        Hard blocked: no

root@imx6slevk:~# rfkill unblock wlan
root@imx6slevk:~# brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
brcmfmac: brcmf_add_if: ignore IF event
brcmfmac: brcmf_fil_cmd_data: Failed err=-110
brcmfmac: brcmf_fil_cmd_data: Failed err=-23
brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
F1:@0x1001f=01, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
F1:@0x1001f=ff, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
F1:@0x1001f=ff, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
F1:@0x1001f=01, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
F1:@0x1001f=ff, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
F1:@0x1001f=ff, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
F1:@0x1001f=01, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
F1:@0x1001f=ff, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
F1:@0x1001f=ff, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
F1:@0x1001f=01, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
F1:@0x1001f=ff, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
F1:@0x1001f=ff, Err: -110
brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
brcmfmac: brcmf_fil_cmd_data: Failed err=-110
brcmfmac: brcmf_set_mpc: fail to set mpc
brcmfmac: brcmf_escan_timeout: timer expired
brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
F1:@0x1001f=01, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
F1:@0x1001f=01, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
F1:@0x1001f=01, Err: -110
brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
brcmfmac: brcmf_fil_cmd_data: Failed err=-110
brcmfmac: brcmf_set_mpc: fail to set mpc
............

The following detailed Log for drver probe, if you also need the full
log after run rfkill please let me know.

[   36.555580] brcmfmac: brcmf_sdbrcm_probe Enter
[   36.564293] brcmfmac: F1 signature read @0x18000000=0x16214335
[   36.564425] brcmfmac: brcmf_sdio_chip_attach Enter
[   36.564973] brcmfmac: brcmf_sdio_chip_recognition chipid=0x4335 chiprev=1
[   36.565163] brcmfmac: brcmf_sdio_chip_buscoresetup ccrev=43,
pmurev=18, buscore rev/type=15/0x829
[   36.566410] brcmfmac: brcmf_sdioh_request_word: Failed to read
word, Err: 0xffffffac
[   36.594407] brcmfmac: brcmf_sdioh_request_word: Failed to read
word, Err: 0xffffffac
[   36.621092] brcmfmac: brcmf_sdioh_request_word: Failed to read
word, Err: 0xffffffac
[   36.627684] brcmfmac: brcmf_sdio_regrw_helper: failed with -84
[   36.638085] brcmfmac: brcmf_sdbrcm_kso_init Enter
[   36.638167] brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO
Drive strength init done for chip 4335 rev 1 pmurev 18
[   36.648862] brcmfmac: brcmf_attach Enter
[   36.648947] brcmfmac: brcmf_sdbrcm_probe_malloc Enter
[   36.648965] brcmfmac: brcmf_sdbrcm_probe_init Enter
[   36.649174] brcmfmac: brcmf_sdbrcm_probe completed!!
[   36.649190] brcmfmac: brcmf_bus_start
[   36.649201] brcmfmac: brcmf_sdbrcm_bus_init Enter
[   36.650399] brcmfmac: brcmf_sdbrcm_download_code_file Enter
[   37.065998] brcmfmac: brcmf_sdio_chip_verifynvram Compare NVRAM dl
& ul; size=2216
[   37.067114] brcmfmac: brcmf_sdio_chip_writenvram RAM size: 786432
[   37.067137] brcmfmac: brcmf_sdio_chip_writenvram nvram is placed at
2357076, size 2216, token=0xfdd5022a
[   37.226519] brcmfmac: brcmf_sdbrcm_bus_init enable 0x06, ready 0x06
[   37.226674] brcmfmac: brcmf_sdbrcm_sr_capable Enter
[   37.226845] brcmfmac: brcmf_sdbrcm_sr_init Enter
[   37.227026] brcmfmac: brcmf_sdbrcm_sr_init SR enabled
[   37.227368] brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
[   37.227383] brcmfmac: brcmf_add_if allocate netdev interface
[   37.227408] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.227419] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.227548] brcmfmac: brcmf_add_if  ==== pid:11, if:wlan%d
(00:00:00:00:00:00) created ===
[   37.227567] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.227675] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.227688] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.230910] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.231124] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.231139] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.231337] brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
[   37.231350] brcmfmac: brcmf_sdio_readframes Enter
[   37.231550] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.231870] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.231883] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.232082] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.232097] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.232224] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.246569] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.246587] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.246807] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.247031] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.247047] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.247059] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.250219] brcmfmac: brcmf_sdio_readframes Enter
[   37.250346] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.250549] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.250606] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.250730] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.266635] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.266651] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.266869] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.267097] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.267112] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.267123] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.270283] brcmfmac: brcmf_sdio_readframes Enter
[   37.270410] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.270709] brcmfmac: brcmf_c_preinit_dcmds: Firmware version =
wl0: Mar 24 2013 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
[   37.282106] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.282125] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.282281] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.296548] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.296564] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.296775] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.297000] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.297015] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.297025] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.300190] brcmfmac: brcmf_sdio_readframes Enter
[   37.300317] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.300523] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.300538] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.300657] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.316546] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.316562] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.316767] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.316989] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.317005] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.317015] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.320178] brcmfmac: brcmf_sdio_readframes Enter
[   37.320302] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.320506] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.320522] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.320644] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.336555] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.336571] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.336782] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.337005] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.337020] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.337031] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.340209] brcmfmac: brcmf_sdio_readframes Enter
[   37.340334] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.340542] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.340558] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.340680] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.356551] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.356568] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.356781] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.357012] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.357027] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.357037] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.360196] brcmfmac: brcmf_sdio_readframes Enter
[   37.360323] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.360524] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.360539] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.360659] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.376550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.376567] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.376772] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.376995] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.377012] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.377021] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.380178] brcmfmac: brcmf_sdio_readframes Enter
[   37.380306] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.380506] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.380522] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.380645] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.396550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.396568] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.396774] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.397002] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.397018] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.397029] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.400187] brcmfmac: brcmf_sdio_readframes Enter
[   37.400316] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.400533] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.400549] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.400674] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.416549] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.416566] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.416774] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.416998] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.417015] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.417026] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.420187] brcmfmac: brcmf_sdio_readframes Enter
[   37.420310] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.420617] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.420633] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.420753] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.436550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.436566] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.436777] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.437003] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.437018] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.437028] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.440189] brcmfmac: brcmf_sdio_readframes Enter
[   37.440311] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.440518] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.440533] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.440654] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.456547] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.456563] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.456773] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.456999] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.457015] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.457025] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.460185] brcmfmac: brcmf_sdio_readframes Enter
[   37.460312] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.460518] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.460534] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.460651] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.466742] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.466953] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.466967] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.466981] brcmfmac: brcmf_sdio_readframes Enter
[   37.467102] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.469141] brcmfmac: brcmf_fweh_register event handler registered
for FIFO_CREDIT_MAP
[   37.469161] brcmfmac: brcmf_fweh_register event handler registered
for BCMC_CREDIT_SUPPORT
[   37.469178] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.469193] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.469334] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.486546] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.486563] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.486778] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.487004] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.487020] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.487031] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.490190] brcmfmac: brcmf_sdio_readframes Enter
[   37.490316] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.490525] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.490542] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.490661] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.506550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.506568] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.506781] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.507008] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.507024] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.507035] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.510194] brcmfmac: brcmf_sdio_readframes Enter
[   37.510318] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.510507] brcmfmac: brcmf_fil_cmd_data: Failed err=-23
[   37.514539] brcmfmac: brcmf_fws_init enabling AMPDU host-reorder failed
[   37.514573] brcmfmac: brcmf_fws_macdesc_init enter: desc bec567f0
ea=  (null), ifidx=0
[   37.514626] brcmfmac: brcmf_fws_init enabled bdcv2 tlv signaling [1]
[   37.514644] brcmfmac: brcmf_fws_macdesc_init enter: desc bec55030
ea=00:90:4c:c5:12:38, ifidx=0
[   37.514658] brcmfmac: brcmf_fws_add_interface added MACIF:0
[   37.514796] brcmfmac: brcmf_setup_wiphy Registering custom regulatory
[   37.522518] brcmfmac: brcmf_alloc_vif allocating virtual interface
(size=2332)
[   37.522550] brcmfmac: brcmf_fweh_register event handler registered for LINK
[   37.522563] brcmfmac: brcmf_fweh_register event handler registered
for DEAUTH_IND
[   37.522574] brcmfmac: brcmf_fweh_register event handler registered for DEAUTH
[   37.522584] brcmfmac: brcmf_fweh_register event handler registered
for DISASSOC_IND
[   37.522593] brcmfmac: brcmf_fweh_register event handler registered
for ASSOC_IND
[   37.522603] brcmfmac: brcmf_fweh_register event handler registered
for REASSOC_IND
[   37.522613] brcmfmac: brcmf_fweh_register event handler registered for ROAM
[   37.522622] brcmfmac: brcmf_fweh_register event handler registered
for MIC_ERROR
[   37.522633] brcmfmac: brcmf_fweh_register event handler registered
for SET_SSID
[   37.522644] brcmfmac: brcmf_fweh_register event handler registered
for PFN_NET_FOUND
[   37.522655] brcmfmac: brcmf_fweh_register event handler registered for IF
[   37.522667] brcmfmac: brcmf_fweh_register event handler registered
for P2P_PROBEREQ_MSG
[   37.522677] brcmfmac: brcmf_fweh_register event handler registered
for P2P_DISC_LISTEN_COMPLETE
[   37.522688] brcmfmac: brcmf_fweh_register event handler registered
for ACTION_FRAME_RX
[   37.522699] brcmfmac: brcmf_fweh_register event handler registered
for ACTION_FRAME_COMPLETE
[   37.522710] brcmfmac: brcmf_fweh_register event handler registered
for ACTION_FRAME_OFF_CHAN_COMPLETE
[   37.522720] brcmfmac: brcmf_fweh_register event handler registered
for ESCAN_RESULT
[   37.522732] brcmfmac: brcmf_btcoex_attach enter
[   37.523262] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.523284] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.523429] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.536624] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.536644] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.536879] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.537111] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.537126] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.537137] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.540301] brcmfmac: brcmf_sdio_readframes Enter
[   37.540434] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.540656] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.540672] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.540796] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.556688] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.556706] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.556927] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.557152] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.557167] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.557178] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.560348] brcmfmac: brcmf_sdio_readframes Enter
[   37.560476] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.560705] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   37.560721] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.560846] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   37.576550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.576567] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.576777] brcmfmac: brcmf_sdbrcm_isr Enter
[   37.577001] brcmfmac: brcmf_sdbrcm_dpc Enter
[   37.577016] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.577026] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   37.580188] brcmfmac: brcmf_sdio_readframes Enter
[   37.580311] brcmfmac: brcmf_sdbrcm_read_control Enter
[   37.580518] brcmfmac: brcmf_net_attach Enter, idx=0 mac=00:90:4c:c5:12:38
[   37.581610] brcmfmac: brcmf_netdev_get_stats Enter, idx=0
[   37.581704] brcmfmac: brcmf_net_attach wlan0: Broadcom Dongle Host Driver
[   37.596623] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   37.596641] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   45.955942] brcmfmac: brcmf_netdev_get_stats Enter, idx=0

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-01  6:22 brcmfmac driver does not work with a BCM4335 WiFi module Dong Aisheng
@ 2013-11-01 10:35 ` Arend van Spriel
  2013-11-01 12:21   ` Dong Aisheng
  0 siblings, 1 reply; 17+ messages in thread
From: Arend van Spriel @ 2013-11-01 10:35 UTC (permalink / raw)
  To: Dong Aisheng, linux-wireless; +Cc: frankyl, brcm80211-dev-list

On 11/01/2013 07:22 AM, Dong Aisheng wrote:
> Hi ALL,
>
> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
> The kernel i ran is latest from:
> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>
> The firmware is used is from:
> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>
> NVRAM file is got from the vendor which should work for the module.
>
> But i ran into the following issues, hope somebody can give me some hints.
>
> First, i met error when module is auto loaded, but seems the driver is
> still loaded successfully since i found the new WiFi interface with
> ifconfig.
> But it can not work after run rfkill unblock wlan and a lot error
> messages comes out.
>
> I'm wondering if this driver can support bcm4335 well, can anybody
> provide some help?

I can try. I have used the bcm4335 with a SDIO3.0 controller on a x86 
PC. Looking at an issue right now, but your log does not show that so 
you have a different issue. Could you load the module with parameter 
'debug=0x146'.

Regards, Arend

> Regards
> Dong Aisheng
>
> Below is the log FYI.
>
> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
> mmc0: new high speed SDIO card at address 0001
> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
> brcmfmac: brcmf_sdio_regrw_helper: failed with -84
> brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
> init done for chip 4335 rev 1 pmurev 18
> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>
> root@imx6slevk:~#
> root@imx6slevk:~# ifconfig -a
> eth0      Link encap:Ethernet  HWaddr 00:04:9F:02:76:E5
>            inet addr:10.192.242.69  Bcast:10.192.242.255  Mask:255.255.255.0
>            inet6 addr: fe80::204:9fff:fe02:76e5/64 Scope:Link
>            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>            RX packets:20301 errors:0 dropped:1 overruns:0 frame:0
>            TX packets:16888 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:1000
>            RX bytes:22233761 (21.2 MiB)  TX bytes:2373414 (2.2 MiB)
>
> lo        Link encap:Local Loopback
>            inet addr:127.0.0.1  Mask:255.0.0.0
>            inet6 addr: ::1/128 Scope:Host
>            UP LOOPBACK RUNNING  MTU:65536  Metric:1
>            RX packets:34 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:0
>            RX bytes:2340 (2.2 KiB)  TX bytes:2340 (2.2 KiB)
>
> sit0      Link encap:IPv6-in-IPv4
>            NOARP  MTU:1480  Metric:1
>            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:0
>            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>
> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>            BROADCAST MULTICAST  MTU:1500  Metric:1
>            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:1000
>            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>
> root@imx6slevk:~#
> root@imx6slevk:~# rfkill list
> 0: phy0: wlan
>          Soft blocked: yes
>          Hard blocked: no
>
> root@imx6slevk:~# rfkill unblock wlan
> root@imx6slevk:~# brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
> brcmfmac: brcmf_add_if: ignore IF event
> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
> F1:@0x1001f=01, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
> F1:@0x1001f=ff, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
> F1:@0x1001f=ff, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
> F1:@0x1001f=01, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
> F1:@0x1001f=ff, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
> F1:@0x1001f=ff, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
> F1:@0x1001f=01, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
> F1:@0x1001f=ff, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
> F1:@0x1001f=ff, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
> F1:@0x1001f=01, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
> F1:@0x1001f=ff, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
> F1:@0x1001f=ff, Err: -110
> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
> brcmfmac: brcmf_set_mpc: fail to set mpc
> brcmfmac: brcmf_escan_timeout: timer expired
> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
> F1:@0x1001f=01, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
> F1:@0x1001f=01, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
> F1:@0x1001f=01, Err: -110
> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
> brcmfmac: brcmf_set_mpc: fail to set mpc
> ............
>
> The following detailed Log for drver probe, if you also need the full
> log after run rfkill please let me know.
>
> [   36.555580] brcmfmac: brcmf_sdbrcm_probe Enter
> [   36.564293] brcmfmac: F1 signature read @0x18000000=0x16214335
> [   36.564425] brcmfmac: brcmf_sdio_chip_attach Enter
> [   36.564973] brcmfmac: brcmf_sdio_chip_recognition chipid=0x4335 chiprev=1
> [   36.565163] brcmfmac: brcmf_sdio_chip_buscoresetup ccrev=43,
> pmurev=18, buscore rev/type=15/0x829
> [   36.566410] brcmfmac: brcmf_sdioh_request_word: Failed to read
> word, Err: 0xffffffac
> [   36.594407] brcmfmac: brcmf_sdioh_request_word: Failed to read
> word, Err: 0xffffffac
> [   36.621092] brcmfmac: brcmf_sdioh_request_word: Failed to read
> word, Err: 0xffffffac
> [   36.627684] brcmfmac: brcmf_sdio_regrw_helper: failed with -84
> [   36.638085] brcmfmac: brcmf_sdbrcm_kso_init Enter
> [   36.638167] brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO
> Drive strength init done for chip 4335 rev 1 pmurev 18
> [   36.648862] brcmfmac: brcmf_attach Enter
> [   36.648947] brcmfmac: brcmf_sdbrcm_probe_malloc Enter
> [   36.648965] brcmfmac: brcmf_sdbrcm_probe_init Enter
> [   36.649174] brcmfmac: brcmf_sdbrcm_probe completed!!
> [   36.649190] brcmfmac: brcmf_bus_start
> [   36.649201] brcmfmac: brcmf_sdbrcm_bus_init Enter
> [   36.650399] brcmfmac: brcmf_sdbrcm_download_code_file Enter
> [   37.065998] brcmfmac: brcmf_sdio_chip_verifynvram Compare NVRAM dl
> & ul; size=2216
> [   37.067114] brcmfmac: brcmf_sdio_chip_writenvram RAM size: 786432
> [   37.067137] brcmfmac: brcmf_sdio_chip_writenvram nvram is placed at
> 2357076, size 2216, token=0xfdd5022a
> [   37.226519] brcmfmac: brcmf_sdbrcm_bus_init enable 0x06, ready 0x06
> [   37.226674] brcmfmac: brcmf_sdbrcm_sr_capable Enter
> [   37.226845] brcmfmac: brcmf_sdbrcm_sr_init Enter
> [   37.227026] brcmfmac: brcmf_sdbrcm_sr_init SR enabled
> [   37.227368] brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
> [   37.227383] brcmfmac: brcmf_add_if allocate netdev interface
> [   37.227408] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.227419] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.227548] brcmfmac: brcmf_add_if  ==== pid:11, if:wlan%d
> (00:00:00:00:00:00) created ===
> [   37.227567] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.227675] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.227688] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.230910] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.231124] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.231139] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.231337] brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
> [   37.231350] brcmfmac: brcmf_sdio_readframes Enter
> [   37.231550] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.231870] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.231883] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.232082] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.232097] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.232224] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.246569] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.246587] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.246807] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.247031] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.247047] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.247059] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.250219] brcmfmac: brcmf_sdio_readframes Enter
> [   37.250346] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.250549] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.250606] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.250730] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.266635] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.266651] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.266869] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.267097] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.267112] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.267123] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.270283] brcmfmac: brcmf_sdio_readframes Enter
> [   37.270410] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.270709] brcmfmac: brcmf_c_preinit_dcmds: Firmware version =
> wl0: Mar 24 2013 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
> [   37.282106] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.282125] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.282281] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.296548] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.296564] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.296775] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.297000] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.297015] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.297025] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.300190] brcmfmac: brcmf_sdio_readframes Enter
> [   37.300317] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.300523] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.300538] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.300657] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.316546] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.316562] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.316767] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.316989] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.317005] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.317015] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.320178] brcmfmac: brcmf_sdio_readframes Enter
> [   37.320302] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.320506] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.320522] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.320644] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.336555] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.336571] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.336782] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.337005] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.337020] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.337031] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.340209] brcmfmac: brcmf_sdio_readframes Enter
> [   37.340334] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.340542] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.340558] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.340680] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.356551] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.356568] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.356781] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.357012] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.357027] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.357037] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.360196] brcmfmac: brcmf_sdio_readframes Enter
> [   37.360323] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.360524] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.360539] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.360659] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.376550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.376567] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.376772] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.376995] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.377012] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.377021] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.380178] brcmfmac: brcmf_sdio_readframes Enter
> [   37.380306] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.380506] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.380522] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.380645] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.396550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.396568] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.396774] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.397002] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.397018] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.397029] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.400187] brcmfmac: brcmf_sdio_readframes Enter
> [   37.400316] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.400533] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.400549] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.400674] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.416549] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.416566] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.416774] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.416998] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.417015] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.417026] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.420187] brcmfmac: brcmf_sdio_readframes Enter
> [   37.420310] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.420617] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.420633] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.420753] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.436550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.436566] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.436777] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.437003] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.437018] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.437028] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.440189] brcmfmac: brcmf_sdio_readframes Enter
> [   37.440311] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.440518] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.440533] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.440654] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.456547] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.456563] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.456773] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.456999] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.457015] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.457025] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.460185] brcmfmac: brcmf_sdio_readframes Enter
> [   37.460312] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.460518] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.460534] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.460651] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.466742] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.466953] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.466967] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.466981] brcmfmac: brcmf_sdio_readframes Enter
> [   37.467102] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.469141] brcmfmac: brcmf_fweh_register event handler registered
> for FIFO_CREDIT_MAP
> [   37.469161] brcmfmac: brcmf_fweh_register event handler registered
> for BCMC_CREDIT_SUPPORT
> [   37.469178] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.469193] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.469334] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.486546] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.486563] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.486778] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.487004] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.487020] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.487031] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.490190] brcmfmac: brcmf_sdio_readframes Enter
> [   37.490316] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.490525] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.490542] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.490661] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.506550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.506568] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.506781] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.507008] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.507024] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.507035] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.510194] brcmfmac: brcmf_sdio_readframes Enter
> [   37.510318] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.510507] brcmfmac: brcmf_fil_cmd_data: Failed err=-23
> [   37.514539] brcmfmac: brcmf_fws_init enabling AMPDU host-reorder failed
> [   37.514573] brcmfmac: brcmf_fws_macdesc_init enter: desc bec567f0
> ea=  (null), ifidx=0
> [   37.514626] brcmfmac: brcmf_fws_init enabled bdcv2 tlv signaling [1]
> [   37.514644] brcmfmac: brcmf_fws_macdesc_init enter: desc bec55030
> ea=00:90:4c:c5:12:38, ifidx=0
> [   37.514658] brcmfmac: brcmf_fws_add_interface added MACIF:0
> [   37.514796] brcmfmac: brcmf_setup_wiphy Registering custom regulatory
> [   37.522518] brcmfmac: brcmf_alloc_vif allocating virtual interface
> (size=2332)
> [   37.522550] brcmfmac: brcmf_fweh_register event handler registered for LINK
> [   37.522563] brcmfmac: brcmf_fweh_register event handler registered
> for DEAUTH_IND
> [   37.522574] brcmfmac: brcmf_fweh_register event handler registered for DEAUTH
> [   37.522584] brcmfmac: brcmf_fweh_register event handler registered
> for DISASSOC_IND
> [   37.522593] brcmfmac: brcmf_fweh_register event handler registered
> for ASSOC_IND
> [   37.522603] brcmfmac: brcmf_fweh_register event handler registered
> for REASSOC_IND
> [   37.522613] brcmfmac: brcmf_fweh_register event handler registered for ROAM
> [   37.522622] brcmfmac: brcmf_fweh_register event handler registered
> for MIC_ERROR
> [   37.522633] brcmfmac: brcmf_fweh_register event handler registered
> for SET_SSID
> [   37.522644] brcmfmac: brcmf_fweh_register event handler registered
> for PFN_NET_FOUND
> [   37.522655] brcmfmac: brcmf_fweh_register event handler registered for IF
> [   37.522667] brcmfmac: brcmf_fweh_register event handler registered
> for P2P_PROBEREQ_MSG
> [   37.522677] brcmfmac: brcmf_fweh_register event handler registered
> for P2P_DISC_LISTEN_COMPLETE
> [   37.522688] brcmfmac: brcmf_fweh_register event handler registered
> for ACTION_FRAME_RX
> [   37.522699] brcmfmac: brcmf_fweh_register event handler registered
> for ACTION_FRAME_COMPLETE
> [   37.522710] brcmfmac: brcmf_fweh_register event handler registered
> for ACTION_FRAME_OFF_CHAN_COMPLETE
> [   37.522720] brcmfmac: brcmf_fweh_register event handler registered
> for ESCAN_RESULT
> [   37.522732] brcmfmac: brcmf_btcoex_attach enter
> [   37.523262] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.523284] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.523429] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.536624] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.536644] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.536879] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.537111] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.537126] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.537137] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.540301] brcmfmac: brcmf_sdio_readframes Enter
> [   37.540434] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.540656] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.540672] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.540796] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.556688] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.556706] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.556927] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.557152] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.557167] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.557178] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.560348] brcmfmac: brcmf_sdio_readframes Enter
> [   37.560476] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.560705] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   37.560721] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.560846] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   37.576550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.576567] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.576777] brcmfmac: brcmf_sdbrcm_isr Enter
> [   37.577001] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   37.577016] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.577026] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   37.580188] brcmfmac: brcmf_sdio_readframes Enter
> [   37.580311] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   37.580518] brcmfmac: brcmf_net_attach Enter, idx=0 mac=00:90:4c:c5:12:38
> [   37.581610] brcmfmac: brcmf_netdev_get_stats Enter, idx=0
> [   37.581704] brcmfmac: brcmf_net_attach wlan0: Broadcom Dongle Host Driver
> [   37.596623] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   37.596641] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   45.955942] brcmfmac: brcmf_netdev_get_stats Enter, idx=0
>



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-01 10:35 ` Arend van Spriel
@ 2013-11-01 12:21   ` Dong Aisheng
  2013-11-01 13:25     ` Arend van Spriel
  0 siblings, 1 reply; 17+ messages in thread
From: Dong Aisheng @ 2013-11-01 12:21 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: linux-wireless, frankyl, brcm80211-dev-list

Hi Arend,

On Fri, Nov 1, 2013 at 6:35 PM, Arend van Spriel <arend@broadcom.com> wrote:
> On 11/01/2013 07:22 AM, Dong Aisheng wrote:
>>
>> Hi ALL,
>>
>> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
>> The kernel i ran is latest from:
>> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>>
>> The firmware is used is from:
>> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>>
>> NVRAM file is got from the vendor which should work for the module.
>>
>> But i ran into the following issues, hope somebody can give me some hints.
>>
>> First, i met error when module is auto loaded, but seems the driver is
>> still loaded successfully since i found the new WiFi interface with
>> ifconfig.
>> But it can not work after run rfkill unblock wlan and a lot error
>> messages comes out.
>>
>> I'm wondering if this driver can support bcm4335 well, can anybody
>> provide some help?
>
>
> I can try. I have used the bcm4335 with a SDIO3.0 controller on a x86 PC.
> Looking at an issue right now, but your log does not show that so you have a
> different issue. Could you load the module with parameter 'debug=0x146'.
>

Thanks for the help.
So that means the brcmfmac driver should support bcm4335 module well, right?
The difference is that i'm using a ARM platform.
Below is log with 'debug=0x146'.
It only includes driver probe log.

[   43.776870] brcmfmac: brcmf_sdbrcm_probe Enter
[   43.778413] brcmfmac: F1 signature read @0x18000000=0x16214335
[   43.778528] brcmfmac: brcmf_sdio_chip_attach Enter
[   43.779078] brcmfmac: brcmf_sdio_chip_recognition chipid=0x4335 chiprev=1
[   43.779269] brcmfmac: brcmf_sdio_chip_buscoresetup ccrev=43,
pmurev=18, buscore rev/type=15/0x829
[   43.780505] brcmfmac: brcmf_sdioh_request_word: Failed to read
word, Err: 0xffffffac
[   43.790834] brcmfmac: brcmf_sdioh_request_word: Failed to read
word, Err: 0xffffffac
[   43.801418] brcmfmac: brcmf_sdioh_request_word: Failed to read
word, Err: 0xffffffac
[   43.808005] brcmfmac: brcmf_sdio_regrw_helper: failed with -84
[   43.813607] brcmfmac: brcmf_sdbrcm_kso_init Enter
[   43.813689] brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO
Drive strength init done for chip 4335 rev 1 pmurev 18
[   43.829540] brcmfmac: brcmf_attach Enter
[   43.829624] brcmfmac: brcmf_sdbrcm_probe_malloc Enter
[   43.829640] brcmfmac: brcmf_sdbrcm_probe_init Enter
[   43.830753] brcmfmac: brcmf_sdbrcm_probe completed!!
[   43.830772] brcmfmac: brcmf_bus_start
[   43.830783] brcmfmac: brcmf_sdbrcm_bus_init Enter
[   43.833893] brcmfmac: brcmf_sdbrcm_download_code_file Enter
[   44.092239] brcmfmac: brcmf_sdio_chip_verifynvram Compare NVRAM dl
& ul; size=2216
[   44.092843] brcmfmac: brcmf_sdio_chip_writenvram RAM size: 786432
[   44.092865] brcmfmac: brcmf_sdio_chip_writenvram nvram is placed at
2357076, size 2216, token=0xfdd5022a
[   44.246583] brcmfmac: brcmf_sdbrcm_bus_init enable 0x06, ready 0x06
[   44.246739] brcmfmac: brcmf_sdbrcm_sr_capable Enter
[   44.246915] brcmfmac: brcmf_sdbrcm_sr_init Enter
[   44.247096] brcmfmac: brcmf_sdbrcm_sr_init SR enabled
[   44.247436] brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
[   44.247451] brcmfmac: brcmf_add_if allocate netdev interface
[   44.247478] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.247489] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.247615] brcmfmac: brcmf_add_if  ==== pid:18, if:wlan%d
(00:00:00:00:00:00) created ===
[   44.247635] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.247739] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.247751] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.250918] brcmutil: TxHdr:
[   44.250940] 00000000: 38 00 c7 ff ff 00 00 14 00 00 00 00 00 00 00
00  8...............
[   44.251012] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.251023] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.251237] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.251252] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.251447] brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
[   44.251460] brcmfmac: brcmf_sdio_readframes Enter
[   44.251592] brcmutil: RxHdr:
[   44.251610] 00000000: 0c 00 f3 ff 00 01 00 0c 00 16 00 00
   ............
[   44.251703] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.251716] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.252029] brcmutil: RxHdr:
[   44.252048] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.252070] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.252083] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.252284] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.252298] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.252425] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.266638] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.266657] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.266880] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.266893] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.267125] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.267140] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.267151] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.270317] brcmfmac: brcmf_sdio_readframes Enter
[   44.270441] brcmutil: RxHdr:
[   44.270461] 00000000: 30 00 cf ff 01 00 00 0c 00 15 00 00
   0...........
[   44.270474] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.270675] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.270708] brcmutil: RxHdr:
[   44.270724] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.270761] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.270775] brcmutil: TxHdr:
[   44.270789] 00000000: 28 01 d7 fe 00 00 00 14 00 00 00 00 00 00 00
00  (...............
[   44.270911] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.286654] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.286671] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.286889] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.286903] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.287131] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.287146] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.287157] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.290320] brcmfmac: brcmf_sdio_readframes Enter
[   44.290444] brcmutil: RxHdr:
[   44.290467] 00000000: 20 01 df fe 02 00 00 0c 00 16 00 00
    ...........
[   44.290479] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.290766] brcmfmac: brcmf_c_preinit_dcmds: Firmware version =
wl0: Mar 24 2013 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
[   44.301838] brcmutil: RxHdr:
[   44.301859] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.302724] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.302743] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.302757] brcmutil: TxHdr:
[   44.302775] 00000000: 34 00 cb ff 01 00 00 14 00 00 00 00 00 00 00
00  4...............
[   44.302940] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.316613] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.316630] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.316841] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.316854] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.317073] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.317088] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.317098] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.320259] brcmfmac: brcmf_sdio_readframes Enter
[   44.320384] brcmutil: RxHdr:
[   44.320404] 00000000: 2c 00 d3 ff 03 00 00 0c 00 17 00 00
   ,...........
[   44.320417] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.320584] brcmutil: RxHdr:
[   44.320602] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.320658] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.320671] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.320683] brcmutil: TxHdr:
[   44.320697] 00000000: 31 00 ce ff 02 00 00 14 00 00 00 00 00 00 00
00  1...............
[   44.320818] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.336673] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.336688] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.336902] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.336915] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.337135] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.337150] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.337160] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.340327] brcmfmac: brcmf_sdio_readframes Enter
[   44.340452] brcmutil: RxHdr:
[   44.340473] 00000000: 29 00 d6 ff 04 00 00 0c 00 18 00 00
   )...........
[   44.340486] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.340651] brcmutil: RxHdr:
[   44.340669] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.340723] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.340737] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.340750] brcmutil: TxHdr:
[   44.340763] 00000000: 3f 00 c0 ff 03 00 00 14 00 00 00 00 00 00 00
00  ?...............
[   44.340884] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.356629] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.356647] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.356863] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.356877] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.357102] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.357117] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.357128] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.360290] brcmfmac: brcmf_sdio_readframes Enter
[   44.360416] brcmutil: RxHdr:
[   44.360437] 00000000: 37 00 c8 ff 05 00 00 0c 00 19 00 00
   7...........
[   44.360448] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.360614] brcmutil: RxHdr:
[   44.360633] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.360687] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.360701] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.360713] brcmutil: TxHdr:
[   44.360728] 00000000: 3f 00 c0 ff 04 00 00 14 00 00 00 00 00 00 00
00  ?...............
[   44.360850] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.376617] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.376634] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.376849] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.376862] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.377087] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.377103] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.377113] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.380275] brcmfmac: brcmf_sdio_readframes Enter
[   44.380397] brcmutil: RxHdr:
[   44.380417] 00000000: 37 00 c8 ff 06 00 00 0c 00 1a 00 00
   7...........
[   44.380430] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.380601] brcmutil: RxHdr:
[   44.380620] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.380674] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.380687] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.380699] brcmutil: TxHdr:
[   44.380714] 00000000: 28 00 d7 ff 05 00 00 14 00 00 00 00 00 00 00
00  (...............
[   44.380837] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.396621] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.396639] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.396850] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.396865] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.397091] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.397106] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.397117] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.400276] brcmfmac: brcmf_sdio_readframes Enter
[   44.400400] brcmutil: RxHdr:
[   44.400421] 00000000: 20 00 df ff 07 00 00 0c 00 1b 00 00
    ...........
[   44.400434] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.400600] brcmutil: RxHdr:
[   44.400618] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.400672] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.400685] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.400696] brcmutil: TxHdr:
[   44.400709] 00000000: 28 00 d7 ff 06 00 00 14 00 00 00 00 00 00 00
00  (...............
[   44.400812] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.416618] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.416635] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.416847] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.416860] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.417086] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.417102] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.417112] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.420271] brcmfmac: brcmf_sdio_readframes Enter
[   44.420394] brcmutil: RxHdr:
[   44.420414] 00000000: 20 00 df ff 08 00 00 0c 00 1c 00 00
    ...........
[   44.420427] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.420588] brcmutil: RxHdr:
[   44.420605] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.420670] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.420684] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.420696] brcmutil: TxHdr:
[   44.420710] 00000000: 49 00 b6 ff 07 00 00 14 00 00 00 00 00 00 00
00  I...............
[   44.420835] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.436617] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.436634] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.436851] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.436865] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.437091] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.437106] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.437116] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.440273] brcmfmac: brcmf_sdio_readframes Enter
[   44.440398] brcmutil: RxHdr:
[   44.440419] 00000000: 41 00 be ff 09 00 00 0c 00 1d 00 00
   A...........
[   44.440431] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.440695] brcmutil: RxHdr:
[   44.440713] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.440775] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.440789] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.440802] brcmutil: TxHdr:
[   44.440815] 00000000: 3e 00 c1 ff 08 00 00 14 00 00 00 00 00 00 00
00  >...............
[   44.440926] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.456621] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.456639] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.456853] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.456867] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.457086] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.457102] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.457113] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.460278] brcmfmac: brcmf_sdio_readframes Enter
[   44.460401] brcmutil: RxHdr:
[   44.460421] 00000000: 36 00 c9 ff 0a 00 00 0c 00 1e 00 00
   6...........
[   44.460435] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.460616] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.460649] brcmutil: RxHdr:
[   44.460665] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.460702] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.460715] brcmutil: TxHdr:
[   44.460730] 00000000: 38 00 c7 ff 09 00 00 14 00 00 00 00 00 00 00
00  8...............
[   44.460848] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.476620] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.476637] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.476848] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.476861] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.477081] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.477097] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.477106] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.480268] brcmfmac: brcmf_sdio_readframes Enter
[   44.480394] brcmutil: RxHdr:
[   44.480415] 00000000: 30 00 cf ff 0b 00 00 0c 00 1f 00 00
   0...........
[   44.480427] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.480612] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.480646] brcmutil: RxHdr:
[   44.480663] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.480700] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.480715] brcmutil: TxHdr:
[   44.480728] 00000000: 38 00 c7 ff 0a 00 00 14 00 00 00 00 00 00 00
00  8...............
[   44.480850] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.496616] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.496634] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.496850] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.496864] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.497078] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.497093] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.497104] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.500272] brcmfmac: brcmf_sdio_readframes Enter
[   44.500395] brcmutil: RxHdr:
[   44.500416] 00000000: 30 00 cf ff 0c 00 00 0c 00 20 00 00
   0........ ..
[   44.500428] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.500793] brcmutil: RxHdr:
[   44.500814] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.500882] brcmfmac: brcmf_fweh_register event handler registered
for FIFO_CREDIT_MAP
[   44.500896] brcmfmac: brcmf_fweh_register event handler registered
for BCMC_CREDIT_SUPPORT
[   44.500914] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.500927] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.500939] brcmutil: TxHdr:
[   44.500954] 00000000: 2c 00 d3 ff 0b 00 00 14 00 00 00 00 00 00 00
00  ,...............
[   44.501092] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.516625] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.516643] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.516863] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.516877] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.517098] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.517113] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.517124] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.520288] brcmfmac: brcmf_sdio_readframes Enter
[   44.520414] brcmutil: RxHdr:
[   44.520435] 00000000: 24 00 db ff 0d 00 00 0c 00 21 00 00
   $........!..
[   44.520448] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.520632] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.520665] brcmutil: RxHdr:
[   44.520681] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.520718] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.520731] brcmutil: TxHdr:
[   44.520744] 00000000: 3a 00 c5 ff 0c 00 00 14 00 00 00 00 00 00 00
00  :...............
[   44.520864] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.536673] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.536689] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.536908] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.536922] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.537141] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.537155] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.537167] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.540333] brcmfmac: brcmf_sdio_readframes Enter
[   44.540456] brcmutil: RxHdr:
[   44.540477] 00000000: 32 00 cd ff 0e 00 00 0c 00 22 00 00
   2........"..
[   44.540490] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.540676] brcmfmac: brcmf_fil_cmd_data: Failed err=-23
[   44.544707] brcmfmac: brcmf_fws_init enabling AMPDU host-reorder failed
[   44.544740] brcmfmac: brcmf_fws_macdesc_init enter: desc 9f20e7f0
ea=  (null), ifidx=0
[   44.544795] brcmfmac: brcmf_fws_init enabled bdcv2 tlv signaling [1]
[   44.544814] brcmfmac: brcmf_fws_macdesc_init enter: desc 9f20d030
ea=00:90:4c:c5:12:38, ifidx=0
[   44.544828] brcmfmac: brcmf_fws_add_interface added MACIF:0
[   44.544965] brcmfmac: brcmf_setup_wiphy Registering custom regulatory
[   44.547564] brcmutil: RxHdr:
[   44.547589] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.554565] brcmfmac: brcmf_alloc_vif allocating virtual interface
(size=2332)
[   44.554596] brcmfmac: brcmf_fweh_register event handler registered for LINK
[   44.554609] brcmfmac: brcmf_fweh_register event handler registered
for DEAUTH_IND
[   44.554619] brcmfmac: brcmf_fweh_register event handler registered for DEAUTH
[   44.554630] brcmfmac: brcmf_fweh_register event handler registered
for DISASSOC_IND
[   44.554639] brcmfmac: brcmf_fweh_register event handler registered
for ASSOC_IND
[   44.554649] brcmfmac: brcmf_fweh_register event handler registered
for REASSOC_IND
[   44.554658] brcmfmac: brcmf_fweh_register event handler registered for ROAM
[   44.554668] brcmfmac: brcmf_fweh_register event handler registered
for MIC_ERROR
[   44.554679] brcmfmac: brcmf_fweh_register event handler registered
for SET_SSID
[   44.554691] brcmfmac: brcmf_fweh_register event handler registered
for PFN_NET_FOUND
[   44.554702] brcmfmac: brcmf_fweh_register event handler registered for IF
[   44.554713] brcmfmac: brcmf_fweh_register event handler registered
for P2P_PROBEREQ_MSG
[   44.554723] brcmfmac: brcmf_fweh_register event handler registered
for P2P_DISC_LISTEN_COMPLETE
[   44.554734] brcmfmac: brcmf_fweh_register event handler registered
for ACTION_FRAME_RX
[   44.554744] brcmfmac: brcmf_fweh_register event handler registered
for ACTION_FRAME_COMPLETE
[   44.554755] brcmfmac: brcmf_fweh_register event handler registered
for ACTION_FRAME_OFF_CHAN_COMPLETE
[   44.554765] brcmfmac: brcmf_fweh_register event handler registered
for ESCAN_RESULT
[   44.554778] brcmfmac: brcmf_btcoex_attach enter
[   44.555320] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.555341] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.555356] brcmutil: TxHdr:
[   44.555376] 00000000: 34 00 cb ff 0d 00 00 14 00 00 00 00 00 00 00
00  4...............
[   44.555517] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.566688] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.566708] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.566939] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.566952] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.567179] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.567195] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.567205] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.570374] brcmfmac: brcmf_sdio_readframes Enter
[   44.570500] brcmutil: RxHdr:
[   44.570522] 00000000: 2c 00 d3 ff 0f 00 00 0c 00 23 00 00
   ,........#..
[   44.570534] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.570710] brcmutil: RxHdr:
[   44.570728] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.570786] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.570800] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.570812] brcmutil: TxHdr:
[   44.570826] 00000000: 28 00 d7 ff 0e 00 00 14 00 00 00 00 00 00 00
00  (...............
[   44.570950] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.586650] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.586669] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.586907] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.586922] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.587144] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.587159] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.587169] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.590336] brcmfmac: brcmf_sdio_readframes Enter
[   44.590457] brcmutil: RxHdr:
[   44.590478] 00000000: 20 00 df ff 10 00 00 0c 00 24 00 00
    ........$..
[   44.590491] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.590691] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
[   44.590725] brcmutil: RxHdr:
[   44.590741] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.590775] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.590789] brcmutil: TxHdr:
[   44.590803] 00000000: 3f 00 c0 ff 0f 00 00 14 00 00 00 00 00 00 00
00  ?...............
[   44.590925] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
[   44.606621] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.606639] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.606856] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
[   44.606870] brcmfmac: brcmf_sdbrcm_isr Enter
[   44.607090] brcmfmac: brcmf_sdbrcm_dpc Enter
[   44.607106] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.607115] brcmfmac: brcmf_sdbrcm_kso_control Enter
[   44.610279] brcmfmac: brcmf_sdio_readframes Enter
[   44.610403] brcmutil: RxHdr:
[   44.610425] 00000000: 37 00 c8 ff 11 00 00 0c 00 25 00 00
   7........%..
[   44.610438] brcmfmac: brcmf_sdbrcm_read_control Enter
[   44.610622] brcmfmac: brcmf_net_attach Enter, idx=0 mac=00:90:4c:c5:12:38
[   44.611733] brcmfmac: brcmf_netdev_get_stats Enter, idx=0
[   44.611831] brcmfmac: brcmf_net_attach wlan0: Broadcom Dongle Host Driver
[   44.619217] brcmutil: RxHdr:
[   44.619243] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
   ............
[   44.626752] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
[   44.626771] brcmfmac: brcmf_sdbrcm_kso_control Enter


Regards
Dong Aisheng

> Regards, Arend
>
>
>> Regards
>> Dong Aisheng
>>
>> Below is the log FYI.
>>
>> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>> mmc0: new high speed SDIO card at address 0001
>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>> brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
>> init done for chip 4335 rev 1 pmurev 18
>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>
>> root@imx6slevk:~#
>> root@imx6slevk:~# ifconfig -a
>> eth0      Link encap:Ethernet  HWaddr 00:04:9F:02:76:E5
>>            inet addr:10.192.242.69  Bcast:10.192.242.255
>> Mask:255.255.255.0
>>            inet6 addr: fe80::204:9fff:fe02:76e5/64 Scope:Link
>>            UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>            RX packets:20301 errors:0 dropped:1 overruns:0 frame:0
>>            TX packets:16888 errors:0 dropped:0 overruns:0 carrier:0
>>            collisions:0 txqueuelen:1000
>>            RX bytes:22233761 (21.2 MiB)  TX bytes:2373414 (2.2 MiB)
>>
>> lo        Link encap:Local Loopback
>>            inet addr:127.0.0.1  Mask:255.0.0.0
>>            inet6 addr: ::1/128 Scope:Host
>>            UP LOOPBACK RUNNING  MTU:65536  Metric:1
>>            RX packets:34 errors:0 dropped:0 overruns:0 frame:0
>>            TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
>>            collisions:0 txqueuelen:0
>>            RX bytes:2340 (2.2 KiB)  TX bytes:2340 (2.2 KiB)
>>
>> sit0      Link encap:IPv6-in-IPv4
>>            NOARP  MTU:1480  Metric:1
>>            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>            collisions:0 txqueuelen:0
>>            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>
>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>            BROADCAST MULTICAST  MTU:1500  Metric:1
>>            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>            collisions:0 txqueuelen:1000
>>            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>
>> root@imx6slevk:~#
>> root@imx6slevk:~# rfkill list
>> 0: phy0: wlan
>>          Soft blocked: yes
>>          Hard blocked: no
>>
>> root@imx6slevk:~# rfkill unblock wlan
>> root@imx6slevk:~# brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>> brcmfmac: brcmf_add_if: ignore IF event
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>> F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>> F1:@0x1001f=ff, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>> F1:@0x1001f=ff, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>> F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>> F1:@0x1001f=ff, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>> F1:@0x1001f=ff, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>> F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>> F1:@0x1001f=ff, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>> F1:@0x1001f=ff, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>> F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>> F1:@0x1001f=ff, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>> F1:@0x1001f=ff, Err: -110
>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>> brcmfmac: brcmf_set_mpc: fail to set mpc
>> brcmfmac: brcmf_escan_timeout: timer expired
>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>> F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>> F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>> F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>> brcmfmac: brcmf_set_mpc: fail to set mpc
>> ............
>>
>> The following detailed Log for drver probe, if you also need the full
>> log after run rfkill please let me know.
>>
>> [   36.555580] brcmfmac: brcmf_sdbrcm_probe Enter
>> [   36.564293] brcmfmac: F1 signature read @0x18000000=0x16214335
>> [   36.564425] brcmfmac: brcmf_sdio_chip_attach Enter
>> [   36.564973] brcmfmac: brcmf_sdio_chip_recognition chipid=0x4335
>> chiprev=1
>> [   36.565163] brcmfmac: brcmf_sdio_chip_buscoresetup ccrev=43,
>> pmurev=18, buscore rev/type=15/0x829
>> [   36.566410] brcmfmac: brcmf_sdioh_request_word: Failed to read
>> word, Err: 0xffffffac
>> [   36.594407] brcmfmac: brcmf_sdioh_request_word: Failed to read
>> word, Err: 0xffffffac
>> [   36.621092] brcmfmac: brcmf_sdioh_request_word: Failed to read
>> word, Err: 0xffffffac
>> [   36.627684] brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>> [   36.638085] brcmfmac: brcmf_sdbrcm_kso_init Enter
>> [   36.638167] brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO
>> Drive strength init done for chip 4335 rev 1 pmurev 18
>> [   36.648862] brcmfmac: brcmf_attach Enter
>> [   36.648947] brcmfmac: brcmf_sdbrcm_probe_malloc Enter
>> [   36.648965] brcmfmac: brcmf_sdbrcm_probe_init Enter
>> [   36.649174] brcmfmac: brcmf_sdbrcm_probe completed!!
>> [   36.649190] brcmfmac: brcmf_bus_start
>> [   36.649201] brcmfmac: brcmf_sdbrcm_bus_init Enter
>> [   36.650399] brcmfmac: brcmf_sdbrcm_download_code_file Enter
>> [   37.065998] brcmfmac: brcmf_sdio_chip_verifynvram Compare NVRAM dl
>> & ul; size=2216
>> [   37.067114] brcmfmac: brcmf_sdio_chip_writenvram RAM size: 786432
>> [   37.067137] brcmfmac: brcmf_sdio_chip_writenvram nvram is placed at
>> 2357076, size 2216, token=0xfdd5022a
>> [   37.226519] brcmfmac: brcmf_sdbrcm_bus_init enable 0x06, ready 0x06
>> [   37.226674] brcmfmac: brcmf_sdbrcm_sr_capable Enter
>> [   37.226845] brcmfmac: brcmf_sdbrcm_sr_init Enter
>> [   37.227026] brcmfmac: brcmf_sdbrcm_sr_init SR enabled
>> [   37.227368] brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>> [   37.227383] brcmfmac: brcmf_add_if allocate netdev interface
>> [   37.227408] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.227419] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.227548] brcmfmac: brcmf_add_if  ==== pid:11, if:wlan%d
>> (00:00:00:00:00:00) created ===
>> [   37.227567] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.227675] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.227688] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.230910] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.231124] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.231139] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.231337] brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>> [   37.231350] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.231550] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.231870] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.231883] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.232082] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.232097] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.232224] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.246569] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.246587] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.246807] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.247031] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.247047] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.247059] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.250219] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.250346] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.250549] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.250606] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.250730] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.266635] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.266651] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.266869] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.267097] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.267112] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.267123] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.270283] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.270410] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.270709] brcmfmac: brcmf_c_preinit_dcmds: Firmware version =
>> wl0: Mar 24 2013 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>> [   37.282106] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.282125] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.282281] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.296548] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.296564] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.296775] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.297000] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.297015] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.297025] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.300190] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.300317] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.300523] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.300538] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.300657] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.316546] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.316562] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.316767] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.316989] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.317005] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.317015] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.320178] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.320302] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.320506] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.320522] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.320644] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.336555] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.336571] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.336782] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.337005] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.337020] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.337031] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.340209] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.340334] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.340542] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.340558] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.340680] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.356551] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.356568] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.356781] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.357012] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.357027] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.357037] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.360196] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.360323] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.360524] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.360539] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.360659] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.376550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.376567] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.376772] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.376995] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.377012] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.377021] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.380178] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.380306] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.380506] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.380522] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.380645] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.396550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.396568] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.396774] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.397002] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.397018] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.397029] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.400187] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.400316] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.400533] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.400549] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.400674] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.416549] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.416566] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.416774] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.416998] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.417015] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.417026] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.420187] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.420310] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.420617] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.420633] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.420753] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.436550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.436566] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.436777] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.437003] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.437018] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.437028] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.440189] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.440311] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.440518] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.440533] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.440654] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.456547] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.456563] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.456773] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.456999] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.457015] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.457025] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.460185] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.460312] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.460518] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.460534] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.460651] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.466742] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.466953] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.466967] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.466981] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.467102] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.469141] brcmfmac: brcmf_fweh_register event handler registered
>> for FIFO_CREDIT_MAP
>> [   37.469161] brcmfmac: brcmf_fweh_register event handler registered
>> for BCMC_CREDIT_SUPPORT
>> [   37.469178] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.469193] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.469334] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.486546] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.486563] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.486778] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.487004] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.487020] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.487031] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.490190] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.490316] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.490525] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.490542] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.490661] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.506550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.506568] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.506781] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.507008] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.507024] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.507035] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.510194] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.510318] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.510507] brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>> [   37.514539] brcmfmac: brcmf_fws_init enabling AMPDU host-reorder failed
>> [   37.514573] brcmfmac: brcmf_fws_macdesc_init enter: desc bec567f0
>> ea=  (null), ifidx=0
>> [   37.514626] brcmfmac: brcmf_fws_init enabled bdcv2 tlv signaling [1]
>> [   37.514644] brcmfmac: brcmf_fws_macdesc_init enter: desc bec55030
>> ea=00:90:4c:c5:12:38, ifidx=0
>> [   37.514658] brcmfmac: brcmf_fws_add_interface added MACIF:0
>> [   37.514796] brcmfmac: brcmf_setup_wiphy Registering custom regulatory
>> [   37.522518] brcmfmac: brcmf_alloc_vif allocating virtual interface
>> (size=2332)
>> [   37.522550] brcmfmac: brcmf_fweh_register event handler registered for
>> LINK
>> [   37.522563] brcmfmac: brcmf_fweh_register event handler registered
>> for DEAUTH_IND
>> [   37.522574] brcmfmac: brcmf_fweh_register event handler registered for
>> DEAUTH
>> [   37.522584] brcmfmac: brcmf_fweh_register event handler registered
>> for DISASSOC_IND
>> [   37.522593] brcmfmac: brcmf_fweh_register event handler registered
>> for ASSOC_IND
>> [   37.522603] brcmfmac: brcmf_fweh_register event handler registered
>> for REASSOC_IND
>> [   37.522613] brcmfmac: brcmf_fweh_register event handler registered for
>> ROAM
>> [   37.522622] brcmfmac: brcmf_fweh_register event handler registered
>> for MIC_ERROR
>> [   37.522633] brcmfmac: brcmf_fweh_register event handler registered
>> for SET_SSID
>> [   37.522644] brcmfmac: brcmf_fweh_register event handler registered
>> for PFN_NET_FOUND
>> [   37.522655] brcmfmac: brcmf_fweh_register event handler registered for
>> IF
>> [   37.522667] brcmfmac: brcmf_fweh_register event handler registered
>> for P2P_PROBEREQ_MSG
>> [   37.522677] brcmfmac: brcmf_fweh_register event handler registered
>> for P2P_DISC_LISTEN_COMPLETE
>> [   37.522688] brcmfmac: brcmf_fweh_register event handler registered
>> for ACTION_FRAME_RX
>> [   37.522699] brcmfmac: brcmf_fweh_register event handler registered
>> for ACTION_FRAME_COMPLETE
>> [   37.522710] brcmfmac: brcmf_fweh_register event handler registered
>> for ACTION_FRAME_OFF_CHAN_COMPLETE
>> [   37.522720] brcmfmac: brcmf_fweh_register event handler registered
>> for ESCAN_RESULT
>> [   37.522732] brcmfmac: brcmf_btcoex_attach enter
>> [   37.523262] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.523284] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.523429] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.536624] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.536644] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.536879] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.537111] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.537126] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.537137] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.540301] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.540434] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.540656] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.540672] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.540796] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.556688] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.556706] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.556927] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.557152] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.557167] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.557178] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.560348] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.560476] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.560705] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   37.560721] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.560846] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   37.576550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.576567] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.576777] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   37.577001] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   37.577016] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.577026] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   37.580188] brcmfmac: brcmf_sdio_readframes Enter
>> [   37.580311] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   37.580518] brcmfmac: brcmf_net_attach Enter, idx=0
>> mac=00:90:4c:c5:12:38
>> [   37.581610] brcmfmac: brcmf_netdev_get_stats Enter, idx=0
>> [   37.581704] brcmfmac: brcmf_net_attach wlan0: Broadcom Dongle Host
>> Driver
>> [   37.596623] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   37.596641] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   45.955942] brcmfmac: brcmf_netdev_get_stats Enter, idx=0
>>
>
>

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-01 12:21   ` Dong Aisheng
@ 2013-11-01 13:25     ` Arend van Spriel
  2013-11-04  3:44       ` Dong Aisheng
  0 siblings, 1 reply; 17+ messages in thread
From: Arend van Spriel @ 2013-11-01 13:25 UTC (permalink / raw)
  To: Dong Aisheng; +Cc: linux-wireless, frankyl, brcm80211-dev-list

On 11/01/2013 01:21 PM, Dong Aisheng wrote:
> Hi Arend,
>
> On Fri, Nov 1, 2013 at 6:35 PM, Arend van Spriel <arend@broadcom.com> wrote:
>> On 11/01/2013 07:22 AM, Dong Aisheng wrote:
>>>
>>> Hi ALL,
>>>
>>> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
>>> The kernel i ran is latest from:
>>> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>>>
>>> The firmware is used is from:
>>> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>>>
>>> NVRAM file is got from the vendor which should work for the module.
>>>
>>> But i ran into the following issues, hope somebody can give me some hints.
>>>
>>> First, i met error when module is auto loaded, but seems the driver is
>>> still loaded successfully since i found the new WiFi interface with
>>> ifconfig.
>>> But it can not work after run rfkill unblock wlan and a lot error
>>> messages comes out.
>>>
>>> I'm wondering if this driver can support bcm4335 well, can anybody
>>> provide some help?
>>
>>
>> I can try. I have used the bcm4335 with a SDIO3.0 controller on a x86 PC.
>> Looking at an issue right now, but your log does not show that so you have a
>> different issue. Could you load the module with parameter 'debug=0x146'.
>>
>
> Thanks for the help.
> So that means the brcmfmac driver should support bcm4335 module well, right?
> The difference is that i'm using a ARM platform.
> Below is log with 'debug=0x146'.
> It only includes driver probe log.

That log actually looks fine. Just not sure why software rfkill was 
enabled. Is that still the case? What distro is running on your platform?

Regards,
Arend

>
> [   43.776870] brcmfmac: brcmf_sdbrcm_probe Enter
> [   43.778413] brcmfmac: F1 signature read @0x18000000=0x16214335
> [   43.778528] brcmfmac: brcmf_sdio_chip_attach Enter
> [   43.779078] brcmfmac: brcmf_sdio_chip_recognition chipid=0x4335 chiprev=1
> [   43.779269] brcmfmac: brcmf_sdio_chip_buscoresetup ccrev=43,
> pmurev=18, buscore rev/type=15/0x829
> [   43.780505] brcmfmac: brcmf_sdioh_request_word: Failed to read
> word, Err: 0xffffffac
> [   43.790834] brcmfmac: brcmf_sdioh_request_word: Failed to read
> word, Err: 0xffffffac
> [   43.801418] brcmfmac: brcmf_sdioh_request_word: Failed to read
> word, Err: 0xffffffac
> [   43.808005] brcmfmac: brcmf_sdio_regrw_helper: failed with -84
> [   43.813607] brcmfmac: brcmf_sdbrcm_kso_init Enter
> [   43.813689] brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO
> Drive strength init done for chip 4335 rev 1 pmurev 18
> [   43.829540] brcmfmac: brcmf_attach Enter
> [   43.829624] brcmfmac: brcmf_sdbrcm_probe_malloc Enter
> [   43.829640] brcmfmac: brcmf_sdbrcm_probe_init Enter
> [   43.830753] brcmfmac: brcmf_sdbrcm_probe completed!!
> [   43.830772] brcmfmac: brcmf_bus_start
> [   43.830783] brcmfmac: brcmf_sdbrcm_bus_init Enter
> [   43.833893] brcmfmac: brcmf_sdbrcm_download_code_file Enter
> [   44.092239] brcmfmac: brcmf_sdio_chip_verifynvram Compare NVRAM dl
> & ul; size=2216
> [   44.092843] brcmfmac: brcmf_sdio_chip_writenvram RAM size: 786432
> [   44.092865] brcmfmac: brcmf_sdio_chip_writenvram nvram is placed at
> 2357076, size 2216, token=0xfdd5022a
> [   44.246583] brcmfmac: brcmf_sdbrcm_bus_init enable 0x06, ready 0x06
> [   44.246739] brcmfmac: brcmf_sdbrcm_sr_capable Enter
> [   44.246915] brcmfmac: brcmf_sdbrcm_sr_init Enter
> [   44.247096] brcmfmac: brcmf_sdbrcm_sr_init SR enabled
> [   44.247436] brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
> [   44.247451] brcmfmac: brcmf_add_if allocate netdev interface
> [   44.247478] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.247489] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.247615] brcmfmac: brcmf_add_if  ==== pid:18, if:wlan%d
> (00:00:00:00:00:00) created ===
> [   44.247635] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.247739] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.247751] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.250918] brcmutil: TxHdr:
> [   44.250940] 00000000: 38 00 c7 ff ff 00 00 14 00 00 00 00 00 00 00
> 00  8...............
> [   44.251012] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.251023] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.251237] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.251252] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.251447] brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
> [   44.251460] brcmfmac: brcmf_sdio_readframes Enter
> [   44.251592] brcmutil: RxHdr:
> [   44.251610] 00000000: 0c 00 f3 ff 00 01 00 0c 00 16 00 00
>     ............
> [   44.251703] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.251716] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.252029] brcmutil: RxHdr:
> [   44.252048] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.252070] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.252083] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.252284] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.252298] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.252425] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.266638] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.266657] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.266880] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.266893] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.267125] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.267140] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.267151] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.270317] brcmfmac: brcmf_sdio_readframes Enter
> [   44.270441] brcmutil: RxHdr:
> [   44.270461] 00000000: 30 00 cf ff 01 00 00 0c 00 15 00 00
>     0...........
> [   44.270474] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.270675] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.270708] brcmutil: RxHdr:
> [   44.270724] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.270761] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.270775] brcmutil: TxHdr:
> [   44.270789] 00000000: 28 01 d7 fe 00 00 00 14 00 00 00 00 00 00 00
> 00  (...............
> [   44.270911] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.286654] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.286671] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.286889] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.286903] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.287131] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.287146] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.287157] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.290320] brcmfmac: brcmf_sdio_readframes Enter
> [   44.290444] brcmutil: RxHdr:
> [   44.290467] 00000000: 20 01 df fe 02 00 00 0c 00 16 00 00
>      ...........
> [   44.290479] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.290766] brcmfmac: brcmf_c_preinit_dcmds: Firmware version =
> wl0: Mar 24 2013 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
> [   44.301838] brcmutil: RxHdr:
> [   44.301859] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.302724] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.302743] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.302757] brcmutil: TxHdr:
> [   44.302775] 00000000: 34 00 cb ff 01 00 00 14 00 00 00 00 00 00 00
> 00  4...............
> [   44.302940] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.316613] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.316630] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.316841] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.316854] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.317073] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.317088] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.317098] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.320259] brcmfmac: brcmf_sdio_readframes Enter
> [   44.320384] brcmutil: RxHdr:
> [   44.320404] 00000000: 2c 00 d3 ff 03 00 00 0c 00 17 00 00
>     ,...........
> [   44.320417] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.320584] brcmutil: RxHdr:
> [   44.320602] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.320658] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.320671] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.320683] brcmutil: TxHdr:
> [   44.320697] 00000000: 31 00 ce ff 02 00 00 14 00 00 00 00 00 00 00
> 00  1...............
> [   44.320818] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.336673] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.336688] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.336902] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.336915] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.337135] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.337150] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.337160] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.340327] brcmfmac: brcmf_sdio_readframes Enter
> [   44.340452] brcmutil: RxHdr:
> [   44.340473] 00000000: 29 00 d6 ff 04 00 00 0c 00 18 00 00
>     )...........
> [   44.340486] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.340651] brcmutil: RxHdr:
> [   44.340669] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.340723] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.340737] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.340750] brcmutil: TxHdr:
> [   44.340763] 00000000: 3f 00 c0 ff 03 00 00 14 00 00 00 00 00 00 00
> 00  ?...............
> [   44.340884] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.356629] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.356647] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.356863] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.356877] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.357102] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.357117] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.357128] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.360290] brcmfmac: brcmf_sdio_readframes Enter
> [   44.360416] brcmutil: RxHdr:
> [   44.360437] 00000000: 37 00 c8 ff 05 00 00 0c 00 19 00 00
>     7...........
> [   44.360448] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.360614] brcmutil: RxHdr:
> [   44.360633] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.360687] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.360701] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.360713] brcmutil: TxHdr:
> [   44.360728] 00000000: 3f 00 c0 ff 04 00 00 14 00 00 00 00 00 00 00
> 00  ?...............
> [   44.360850] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.376617] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.376634] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.376849] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.376862] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.377087] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.377103] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.377113] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.380275] brcmfmac: brcmf_sdio_readframes Enter
> [   44.380397] brcmutil: RxHdr:
> [   44.380417] 00000000: 37 00 c8 ff 06 00 00 0c 00 1a 00 00
>     7...........
> [   44.380430] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.380601] brcmutil: RxHdr:
> [   44.380620] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.380674] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.380687] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.380699] brcmutil: TxHdr:
> [   44.380714] 00000000: 28 00 d7 ff 05 00 00 14 00 00 00 00 00 00 00
> 00  (...............
> [   44.380837] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.396621] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.396639] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.396850] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.396865] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.397091] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.397106] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.397117] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.400276] brcmfmac: brcmf_sdio_readframes Enter
> [   44.400400] brcmutil: RxHdr:
> [   44.400421] 00000000: 20 00 df ff 07 00 00 0c 00 1b 00 00
>      ...........
> [   44.400434] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.400600] brcmutil: RxHdr:
> [   44.400618] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.400672] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.400685] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.400696] brcmutil: TxHdr:
> [   44.400709] 00000000: 28 00 d7 ff 06 00 00 14 00 00 00 00 00 00 00
> 00  (...............
> [   44.400812] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.416618] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.416635] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.416847] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.416860] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.417086] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.417102] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.417112] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.420271] brcmfmac: brcmf_sdio_readframes Enter
> [   44.420394] brcmutil: RxHdr:
> [   44.420414] 00000000: 20 00 df ff 08 00 00 0c 00 1c 00 00
>      ...........
> [   44.420427] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.420588] brcmutil: RxHdr:
> [   44.420605] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.420670] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.420684] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.420696] brcmutil: TxHdr:
> [   44.420710] 00000000: 49 00 b6 ff 07 00 00 14 00 00 00 00 00 00 00
> 00  I...............
> [   44.420835] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.436617] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.436634] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.436851] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.436865] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.437091] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.437106] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.437116] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.440273] brcmfmac: brcmf_sdio_readframes Enter
> [   44.440398] brcmutil: RxHdr:
> [   44.440419] 00000000: 41 00 be ff 09 00 00 0c 00 1d 00 00
>     A...........
> [   44.440431] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.440695] brcmutil: RxHdr:
> [   44.440713] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.440775] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.440789] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.440802] brcmutil: TxHdr:
> [   44.440815] 00000000: 3e 00 c1 ff 08 00 00 14 00 00 00 00 00 00 00
> 00  >...............
> [   44.440926] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.456621] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.456639] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.456853] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.456867] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.457086] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.457102] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.457113] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.460278] brcmfmac: brcmf_sdio_readframes Enter
> [   44.460401] brcmutil: RxHdr:
> [   44.460421] 00000000: 36 00 c9 ff 0a 00 00 0c 00 1e 00 00
>     6...........
> [   44.460435] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.460616] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.460649] brcmutil: RxHdr:
> [   44.460665] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.460702] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.460715] brcmutil: TxHdr:
> [   44.460730] 00000000: 38 00 c7 ff 09 00 00 14 00 00 00 00 00 00 00
> 00  8...............
> [   44.460848] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.476620] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.476637] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.476848] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.476861] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.477081] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.477097] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.477106] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.480268] brcmfmac: brcmf_sdio_readframes Enter
> [   44.480394] brcmutil: RxHdr:
> [   44.480415] 00000000: 30 00 cf ff 0b 00 00 0c 00 1f 00 00
>     0...........
> [   44.480427] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.480612] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.480646] brcmutil: RxHdr:
> [   44.480663] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.480700] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.480715] brcmutil: TxHdr:
> [   44.480728] 00000000: 38 00 c7 ff 0a 00 00 14 00 00 00 00 00 00 00
> 00  8...............
> [   44.480850] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.496616] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.496634] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.496850] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.496864] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.497078] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.497093] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.497104] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.500272] brcmfmac: brcmf_sdio_readframes Enter
> [   44.500395] brcmutil: RxHdr:
> [   44.500416] 00000000: 30 00 cf ff 0c 00 00 0c 00 20 00 00
>     0........ ..
> [   44.500428] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.500793] brcmutil: RxHdr:
> [   44.500814] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.500882] brcmfmac: brcmf_fweh_register event handler registered
> for FIFO_CREDIT_MAP
> [   44.500896] brcmfmac: brcmf_fweh_register event handler registered
> for BCMC_CREDIT_SUPPORT
> [   44.500914] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.500927] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.500939] brcmutil: TxHdr:
> [   44.500954] 00000000: 2c 00 d3 ff 0b 00 00 14 00 00 00 00 00 00 00
> 00  ,...............
> [   44.501092] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.516625] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.516643] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.516863] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.516877] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.517098] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.517113] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.517124] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.520288] brcmfmac: brcmf_sdio_readframes Enter
> [   44.520414] brcmutil: RxHdr:
> [   44.520435] 00000000: 24 00 db ff 0d 00 00 0c 00 21 00 00
>     $........!..
> [   44.520448] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.520632] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.520665] brcmutil: RxHdr:
> [   44.520681] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.520718] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.520731] brcmutil: TxHdr:
> [   44.520744] 00000000: 3a 00 c5 ff 0c 00 00 14 00 00 00 00 00 00 00
> 00  :...............
> [   44.520864] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.536673] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.536689] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.536908] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.536922] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.537141] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.537155] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.537167] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.540333] brcmfmac: brcmf_sdio_readframes Enter
> [   44.540456] brcmutil: RxHdr:
> [   44.540477] 00000000: 32 00 cd ff 0e 00 00 0c 00 22 00 00
>     2........"..
> [   44.540490] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.540676] brcmfmac: brcmf_fil_cmd_data: Failed err=-23
> [   44.544707] brcmfmac: brcmf_fws_init enabling AMPDU host-reorder failed
> [   44.544740] brcmfmac: brcmf_fws_macdesc_init enter: desc 9f20e7f0
> ea=  (null), ifidx=0
> [   44.544795] brcmfmac: brcmf_fws_init enabled bdcv2 tlv signaling [1]
> [   44.544814] brcmfmac: brcmf_fws_macdesc_init enter: desc 9f20d030
> ea=00:90:4c:c5:12:38, ifidx=0
> [   44.544828] brcmfmac: brcmf_fws_add_interface added MACIF:0
> [   44.544965] brcmfmac: brcmf_setup_wiphy Registering custom regulatory
> [   44.547564] brcmutil: RxHdr:
> [   44.547589] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.554565] brcmfmac: brcmf_alloc_vif allocating virtual interface
> (size=2332)
> [   44.554596] brcmfmac: brcmf_fweh_register event handler registered for LINK
> [   44.554609] brcmfmac: brcmf_fweh_register event handler registered
> for DEAUTH_IND
> [   44.554619] brcmfmac: brcmf_fweh_register event handler registered for DEAUTH
> [   44.554630] brcmfmac: brcmf_fweh_register event handler registered
> for DISASSOC_IND
> [   44.554639] brcmfmac: brcmf_fweh_register event handler registered
> for ASSOC_IND
> [   44.554649] brcmfmac: brcmf_fweh_register event handler registered
> for REASSOC_IND
> [   44.554658] brcmfmac: brcmf_fweh_register event handler registered for ROAM
> [   44.554668] brcmfmac: brcmf_fweh_register event handler registered
> for MIC_ERROR
> [   44.554679] brcmfmac: brcmf_fweh_register event handler registered
> for SET_SSID
> [   44.554691] brcmfmac: brcmf_fweh_register event handler registered
> for PFN_NET_FOUND
> [   44.554702] brcmfmac: brcmf_fweh_register event handler registered for IF
> [   44.554713] brcmfmac: brcmf_fweh_register event handler registered
> for P2P_PROBEREQ_MSG
> [   44.554723] brcmfmac: brcmf_fweh_register event handler registered
> for P2P_DISC_LISTEN_COMPLETE
> [   44.554734] brcmfmac: brcmf_fweh_register event handler registered
> for ACTION_FRAME_RX
> [   44.554744] brcmfmac: brcmf_fweh_register event handler registered
> for ACTION_FRAME_COMPLETE
> [   44.554755] brcmfmac: brcmf_fweh_register event handler registered
> for ACTION_FRAME_OFF_CHAN_COMPLETE
> [   44.554765] brcmfmac: brcmf_fweh_register event handler registered
> for ESCAN_RESULT
> [   44.554778] brcmfmac: brcmf_btcoex_attach enter
> [   44.555320] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.555341] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.555356] brcmutil: TxHdr:
> [   44.555376] 00000000: 34 00 cb ff 0d 00 00 14 00 00 00 00 00 00 00
> 00  4...............
> [   44.555517] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.566688] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.566708] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.566939] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.566952] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.567179] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.567195] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.567205] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.570374] brcmfmac: brcmf_sdio_readframes Enter
> [   44.570500] brcmutil: RxHdr:
> [   44.570522] 00000000: 2c 00 d3 ff 0f 00 00 0c 00 23 00 00
>     ,........#..
> [   44.570534] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.570710] brcmutil: RxHdr:
> [   44.570728] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.570786] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.570800] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.570812] brcmutil: TxHdr:
> [   44.570826] 00000000: 28 00 d7 ff 0e 00 00 14 00 00 00 00 00 00 00
> 00  (...............
> [   44.570950] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.586650] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.586669] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.586907] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.586922] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.587144] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.587159] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.587169] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.590336] brcmfmac: brcmf_sdio_readframes Enter
> [   44.590457] brcmutil: RxHdr:
> [   44.590478] 00000000: 20 00 df ff 10 00 00 0c 00 24 00 00
>      ........$..
> [   44.590491] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.590691] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> [   44.590725] brcmutil: RxHdr:
> [   44.590741] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.590775] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.590789] brcmutil: TxHdr:
> [   44.590803] 00000000: 3f 00 c0 ff 0f 00 00 14 00 00 00 00 00 00 00
> 00  ?...............
> [   44.590925] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> [   44.606621] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.606639] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.606856] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> [   44.606870] brcmfmac: brcmf_sdbrcm_isr Enter
> [   44.607090] brcmfmac: brcmf_sdbrcm_dpc Enter
> [   44.607106] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.607115] brcmfmac: brcmf_sdbrcm_kso_control Enter
> [   44.610279] brcmfmac: brcmf_sdio_readframes Enter
> [   44.610403] brcmutil: RxHdr:
> [   44.610425] 00000000: 37 00 c8 ff 11 00 00 0c 00 25 00 00
>     7........%..
> [   44.610438] brcmfmac: brcmf_sdbrcm_read_control Enter
> [   44.610622] brcmfmac: brcmf_net_attach Enter, idx=0 mac=00:90:4c:c5:12:38
> [   44.611733] brcmfmac: brcmf_netdev_get_stats Enter, idx=0
> [   44.611831] brcmfmac: brcmf_net_attach wlan0: Broadcom Dongle Host Driver
> [   44.619217] brcmutil: RxHdr:
> [   44.619243] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>     ............
> [   44.626752] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> [   44.626771] brcmfmac: brcmf_sdbrcm_kso_control Enter
>
>
> Regards
> Dong Aisheng
>
>> Regards, Arend
>>
>>
>>> Regards
>>> Dong Aisheng
>>>
>>> Below is the log FYI.
>>>
>>> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>> mmc0: new high speed SDIO card at address 0001
>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>>> brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
>>> init done for chip 4335 rev 1 pmurev 18
>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>
>>> root@imx6slevk:~#
>>> root@imx6slevk:~# ifconfig -a
>>> eth0      Link encap:Ethernet  HWaddr 00:04:9F:02:76:E5
>>>             inet addr:10.192.242.69  Bcast:10.192.242.255
>>> Mask:255.255.255.0
>>>             inet6 addr: fe80::204:9fff:fe02:76e5/64 Scope:Link
>>>             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>>             RX packets:20301 errors:0 dropped:1 overruns:0 frame:0
>>>             TX packets:16888 errors:0 dropped:0 overruns:0 carrier:0
>>>             collisions:0 txqueuelen:1000
>>>             RX bytes:22233761 (21.2 MiB)  TX bytes:2373414 (2.2 MiB)
>>>
>>> lo        Link encap:Local Loopback
>>>             inet addr:127.0.0.1  Mask:255.0.0.0
>>>             inet6 addr: ::1/128 Scope:Host
>>>             UP LOOPBACK RUNNING  MTU:65536  Metric:1
>>>             RX packets:34 errors:0 dropped:0 overruns:0 frame:0
>>>             TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
>>>             collisions:0 txqueuelen:0
>>>             RX bytes:2340 (2.2 KiB)  TX bytes:2340 (2.2 KiB)
>>>
>>> sit0      Link encap:IPv6-in-IPv4
>>>             NOARP  MTU:1480  Metric:1
>>>             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>             collisions:0 txqueuelen:0
>>>             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>
>>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>>             BROADCAST MULTICAST  MTU:1500  Metric:1
>>>             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>             collisions:0 txqueuelen:1000
>>>             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>
>>> root@imx6slevk:~#
>>> root@imx6slevk:~# rfkill list
>>> 0: phy0: wlan
>>>           Soft blocked: yes
>>>           Hard blocked: no
>>>
>>> root@imx6slevk:~# rfkill unblock wlan
>>> root@imx6slevk:~# brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>> brcmfmac: brcmf_add_if: ignore IF event
>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>> F1:@0x1001f=01, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>> F1:@0x1001f=ff, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>> F1:@0x1001f=ff, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>> F1:@0x1001f=01, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>> F1:@0x1001f=ff, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>> F1:@0x1001f=ff, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>> F1:@0x1001f=01, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>> F1:@0x1001f=ff, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>> F1:@0x1001f=ff, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>> F1:@0x1001f=01, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>> F1:@0x1001f=ff, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>> F1:@0x1001f=ff, Err: -110
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>> brcmfmac: brcmf_set_mpc: fail to set mpc
>>> brcmfmac: brcmf_escan_timeout: timer expired
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>> F1:@0x1001f=01, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>> F1:@0x1001f=01, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>> F1:@0x1001f=01, Err: -110
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>> brcmfmac: brcmf_set_mpc: fail to set mpc
>>> ............
>>>
>>> The following detailed Log for drver probe, if you also need the full
>>> log after run rfkill please let me know.
>>>
>>> [   36.555580] brcmfmac: brcmf_sdbrcm_probe Enter
>>> [   36.564293] brcmfmac: F1 signature read @0x18000000=0x16214335
>>> [   36.564425] brcmfmac: brcmf_sdio_chip_attach Enter
>>> [   36.564973] brcmfmac: brcmf_sdio_chip_recognition chipid=0x4335
>>> chiprev=1
>>> [   36.565163] brcmfmac: brcmf_sdio_chip_buscoresetup ccrev=43,
>>> pmurev=18, buscore rev/type=15/0x829
>>> [   36.566410] brcmfmac: brcmf_sdioh_request_word: Failed to read
>>> word, Err: 0xffffffac
>>> [   36.594407] brcmfmac: brcmf_sdioh_request_word: Failed to read
>>> word, Err: 0xffffffac
>>> [   36.621092] brcmfmac: brcmf_sdioh_request_word: Failed to read
>>> word, Err: 0xffffffac
>>> [   36.627684] brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>>> [   36.638085] brcmfmac: brcmf_sdbrcm_kso_init Enter
>>> [   36.638167] brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO
>>> Drive strength init done for chip 4335 rev 1 pmurev 18
>>> [   36.648862] brcmfmac: brcmf_attach Enter
>>> [   36.648947] brcmfmac: brcmf_sdbrcm_probe_malloc Enter
>>> [   36.648965] brcmfmac: brcmf_sdbrcm_probe_init Enter
>>> [   36.649174] brcmfmac: brcmf_sdbrcm_probe completed!!
>>> [   36.649190] brcmfmac: brcmf_bus_start
>>> [   36.649201] brcmfmac: brcmf_sdbrcm_bus_init Enter
>>> [   36.650399] brcmfmac: brcmf_sdbrcm_download_code_file Enter
>>> [   37.065998] brcmfmac: brcmf_sdio_chip_verifynvram Compare NVRAM dl
>>> & ul; size=2216
>>> [   37.067114] brcmfmac: brcmf_sdio_chip_writenvram RAM size: 786432
>>> [   37.067137] brcmfmac: brcmf_sdio_chip_writenvram nvram is placed at
>>> 2357076, size 2216, token=0xfdd5022a
>>> [   37.226519] brcmfmac: brcmf_sdbrcm_bus_init enable 0x06, ready 0x06
>>> [   37.226674] brcmfmac: brcmf_sdbrcm_sr_capable Enter
>>> [   37.226845] brcmfmac: brcmf_sdbrcm_sr_init Enter
>>> [   37.227026] brcmfmac: brcmf_sdbrcm_sr_init SR enabled
>>> [   37.227368] brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>>> [   37.227383] brcmfmac: brcmf_add_if allocate netdev interface
>>> [   37.227408] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.227419] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.227548] brcmfmac: brcmf_add_if  ==== pid:11, if:wlan%d
>>> (00:00:00:00:00:00) created ===
>>> [   37.227567] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.227675] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.227688] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.230910] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.231124] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.231139] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.231337] brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>> [   37.231350] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.231550] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.231870] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.231883] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.232082] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.232097] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.232224] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.246569] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.246587] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.246807] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.247031] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.247047] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.247059] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.250219] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.250346] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.250549] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.250606] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.250730] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.266635] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.266651] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.266869] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.267097] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.267112] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.267123] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.270283] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.270410] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.270709] brcmfmac: brcmf_c_preinit_dcmds: Firmware version =
>>> wl0: Mar 24 2013 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>> [   37.282106] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.282125] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.282281] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.296548] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.296564] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.296775] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.297000] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.297015] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.297025] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.300190] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.300317] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.300523] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.300538] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.300657] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.316546] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.316562] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.316767] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.316989] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.317005] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.317015] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.320178] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.320302] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.320506] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.320522] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.320644] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.336555] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.336571] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.336782] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.337005] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.337020] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.337031] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.340209] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.340334] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.340542] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.340558] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.340680] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.356551] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.356568] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.356781] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.357012] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.357027] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.357037] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.360196] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.360323] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.360524] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.360539] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.360659] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.376550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.376567] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.376772] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.376995] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.377012] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.377021] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.380178] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.380306] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.380506] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.380522] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.380645] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.396550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.396568] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.396774] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.397002] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.397018] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.397029] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.400187] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.400316] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.400533] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.400549] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.400674] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.416549] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.416566] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.416774] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.416998] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.417015] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.417026] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.420187] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.420310] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.420617] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.420633] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.420753] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.436550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.436566] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.436777] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.437003] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.437018] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.437028] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.440189] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.440311] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.440518] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.440533] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.440654] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.456547] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.456563] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.456773] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.456999] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.457015] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.457025] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.460185] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.460312] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.460518] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.460534] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.460651] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.466742] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.466953] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.466967] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.466981] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.467102] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.469141] brcmfmac: brcmf_fweh_register event handler registered
>>> for FIFO_CREDIT_MAP
>>> [   37.469161] brcmfmac: brcmf_fweh_register event handler registered
>>> for BCMC_CREDIT_SUPPORT
>>> [   37.469178] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.469193] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.469334] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.486546] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.486563] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.486778] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.487004] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.487020] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.487031] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.490190] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.490316] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.490525] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.490542] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.490661] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.506550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.506568] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.506781] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.507008] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.507024] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.507035] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.510194] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.510318] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.510507] brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>> [   37.514539] brcmfmac: brcmf_fws_init enabling AMPDU host-reorder failed
>>> [   37.514573] brcmfmac: brcmf_fws_macdesc_init enter: desc bec567f0
>>> ea=  (null), ifidx=0
>>> [   37.514626] brcmfmac: brcmf_fws_init enabled bdcv2 tlv signaling [1]
>>> [   37.514644] brcmfmac: brcmf_fws_macdesc_init enter: desc bec55030
>>> ea=00:90:4c:c5:12:38, ifidx=0
>>> [   37.514658] brcmfmac: brcmf_fws_add_interface added MACIF:0
>>> [   37.514796] brcmfmac: brcmf_setup_wiphy Registering custom regulatory
>>> [   37.522518] brcmfmac: brcmf_alloc_vif allocating virtual interface
>>> (size=2332)
>>> [   37.522550] brcmfmac: brcmf_fweh_register event handler registered for
>>> LINK
>>> [   37.522563] brcmfmac: brcmf_fweh_register event handler registered
>>> for DEAUTH_IND
>>> [   37.522574] brcmfmac: brcmf_fweh_register event handler registered for
>>> DEAUTH
>>> [   37.522584] brcmfmac: brcmf_fweh_register event handler registered
>>> for DISASSOC_IND
>>> [   37.522593] brcmfmac: brcmf_fweh_register event handler registered
>>> for ASSOC_IND
>>> [   37.522603] brcmfmac: brcmf_fweh_register event handler registered
>>> for REASSOC_IND
>>> [   37.522613] brcmfmac: brcmf_fweh_register event handler registered for
>>> ROAM
>>> [   37.522622] brcmfmac: brcmf_fweh_register event handler registered
>>> for MIC_ERROR
>>> [   37.522633] brcmfmac: brcmf_fweh_register event handler registered
>>> for SET_SSID
>>> [   37.522644] brcmfmac: brcmf_fweh_register event handler registered
>>> for PFN_NET_FOUND
>>> [   37.522655] brcmfmac: brcmf_fweh_register event handler registered for
>>> IF
>>> [   37.522667] brcmfmac: brcmf_fweh_register event handler registered
>>> for P2P_PROBEREQ_MSG
>>> [   37.522677] brcmfmac: brcmf_fweh_register event handler registered
>>> for P2P_DISC_LISTEN_COMPLETE
>>> [   37.522688] brcmfmac: brcmf_fweh_register event handler registered
>>> for ACTION_FRAME_RX
>>> [   37.522699] brcmfmac: brcmf_fweh_register event handler registered
>>> for ACTION_FRAME_COMPLETE
>>> [   37.522710] brcmfmac: brcmf_fweh_register event handler registered
>>> for ACTION_FRAME_OFF_CHAN_COMPLETE
>>> [   37.522720] brcmfmac: brcmf_fweh_register event handler registered
>>> for ESCAN_RESULT
>>> [   37.522732] brcmfmac: brcmf_btcoex_attach enter
>>> [   37.523262] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.523284] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.523429] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.536624] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.536644] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.536879] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.537111] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.537126] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.537137] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.540301] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.540434] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.540656] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.540672] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.540796] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.556688] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.556706] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.556927] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.557152] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.557167] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.557178] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.560348] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.560476] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.560705] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> [   37.560721] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.560846] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> [   37.576550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.576567] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.576777] brcmfmac: brcmf_sdbrcm_isr Enter
>>> [   37.577001] brcmfmac: brcmf_sdbrcm_dpc Enter
>>> [   37.577016] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.577026] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   37.580188] brcmfmac: brcmf_sdio_readframes Enter
>>> [   37.580311] brcmfmac: brcmf_sdbrcm_read_control Enter
>>> [   37.580518] brcmfmac: brcmf_net_attach Enter, idx=0
>>> mac=00:90:4c:c5:12:38
>>> [   37.581610] brcmfmac: brcmf_netdev_get_stats Enter, idx=0
>>> [   37.581704] brcmfmac: brcmf_net_attach wlan0: Broadcom Dongle Host
>>> Driver
>>> [   37.596623] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> [   37.596641] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> [   45.955942] brcmfmac: brcmf_netdev_get_stats Enter, idx=0
>>>
>>
>>
>



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-01 13:25     ` Arend van Spriel
@ 2013-11-04  3:44       ` Dong Aisheng
  2013-11-04  8:13         ` Dong Aisheng
  0 siblings, 1 reply; 17+ messages in thread
From: Dong Aisheng @ 2013-11-04  3:44 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: linux-wireless, frankyl, brcm80211-dev-list

Hi Arend,

On Fri, Nov 1, 2013 at 9:25 PM, Arend van Spriel <arend@broadcom.com> wrote:
> On 11/01/2013 01:21 PM, Dong Aisheng wrote:
>>
>> Hi Arend,
>>
>> On Fri, Nov 1, 2013 at 6:35 PM, Arend van Spriel <arend@broadcom.com>
>> wrote:
>>>
>>> On 11/01/2013 07:22 AM, Dong Aisheng wrote:
>>>>
>>>>
>>>> Hi ALL,
>>>>
>>>> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
>>>> The kernel i ran is latest from:
>>>> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>>>>
>>>> The firmware is used is from:
>>>>
>>>> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>>>>
>>>> NVRAM file is got from the vendor which should work for the module.
>>>>
>>>> But i ran into the following issues, hope somebody can give me some
>>>> hints.
>>>>
>>>> First, i met error when module is auto loaded, but seems the driver is
>>>> still loaded successfully since i found the new WiFi interface with
>>>> ifconfig.
>>>> But it can not work after run rfkill unblock wlan and a lot error
>>>> messages comes out.
>>>>
>>>> I'm wondering if this driver can support bcm4335 well, can anybody
>>>> provide some help?
>>>
>>>
>>>
>>> I can try. I have used the bcm4335 with a SDIO3.0 controller on a x86 PC.
>>> Looking at an issue right now, but your log does not show that so you
>>> have a
>>> different issue. Could you load the module with parameter 'debug=0x146'.
>>>
>>
>> Thanks for the help.
>> So that means the brcmfmac driver should support bcm4335 module well,
>> right?
>> The difference is that i'm using a ARM platform.
>> Below is log with 'debug=0x146'.
>> It only includes driver probe log.
>
>
> That log actually looks fine. Just not sure why software rfkill was enabled.
> Is that still the case? What distro is running on your platform?
>

Do you  mean the error message during probe is also fine?
root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
mmc0: new high speed SDIO card at address 0001
brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
brcmfmac: brcmf_sdio_regrw_helper: failed with -84     <--- error message
brcmfmac: brcmf_sdio_chip_
drivestrengthinit: No SDIO Drive strength
init done for chip 4335 rev 1 pmurev 18
brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
brcmfmac: brcmf_fil_cmd_data: Failed err=-23              <---- error message

I'm using yocto rootfs, seems rfkill is always enabled by default.
I could try another rootfs without rfkill.
But i don't think rfkill should block WiFi driver to work properly.

Regards
Dong Aisheng

> Regards,
> Arend
>
>
>>
>> [   43.776870] brcmfmac: brcmf_sdbrcm_probe Enter
>> [   43.778413] brcmfmac: F1 signature read @0x18000000=0x16214335
>> [   43.778528] brcmfmac: brcmf_sdio_chip_attach Enter
>> [   43.779078] brcmfmac: brcmf_sdio_chip_recognition chipid=0x4335
>> chiprev=1
>> [   43.779269] brcmfmac: brcmf_sdio_chip_buscoresetup ccrev=43,
>> pmurev=18, buscore rev/type=15/0x829
>> [   43.780505] brcmfmac: brcmf_sdioh_request_word: Failed to read
>> word, Err: 0xffffffac
>> [   43.790834] brcmfmac: brcmf_sdioh_request_word: Failed to read
>> word, Err: 0xffffffac
>> [   43.801418] brcmfmac: brcmf_sdioh_request_word: Failed to read
>> word, Err: 0xffffffac
>> [   43.808005] brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>> [   43.813607] brcmfmac: brcmf_sdbrcm_kso_init Enter
>> [   43.813689] brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO
>> Drive strength init done for chip 4335 rev 1 pmurev 18
>> [   43.829540] brcmfmac: brcmf_attach Enter
>> [   43.829624] brcmfmac: brcmf_sdbrcm_probe_malloc Enter
>> [   43.829640] brcmfmac: brcmf_sdbrcm_probe_init Enter
>> [   43.830753] brcmfmac: brcmf_sdbrcm_probe completed!!
>> [   43.830772] brcmfmac: brcmf_bus_start
>> [   43.830783] brcmfmac: brcmf_sdbrcm_bus_init Enter
>> [   43.833893] brcmfmac: brcmf_sdbrcm_download_code_file Enter
>> [   44.092239] brcmfmac: brcmf_sdio_chip_verifynvram Compare NVRAM dl
>> & ul; size=2216
>> [   44.092843] brcmfmac: brcmf_sdio_chip_writenvram RAM size: 786432
>> [   44.092865] brcmfmac: brcmf_sdio_chip_writenvram nvram is placed at
>> 2357076, size 2216, token=0xfdd5022a
>> [   44.246583] brcmfmac: brcmf_sdbrcm_bus_init enable 0x06, ready 0x06
>> [   44.246739] brcmfmac: brcmf_sdbrcm_sr_capable Enter
>> [   44.246915] brcmfmac: brcmf_sdbrcm_sr_init Enter
>> [   44.247096] brcmfmac: brcmf_sdbrcm_sr_init SR enabled
>> [   44.247436] brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>> [   44.247451] brcmfmac: brcmf_add_if allocate netdev interface
>> [   44.247478] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.247489] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.247615] brcmfmac: brcmf_add_if  ==== pid:18, if:wlan%d
>> (00:00:00:00:00:00) created ===
>> [   44.247635] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.247739] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.247751] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.250918] brcmutil: TxHdr:
>> [   44.250940] 00000000: 38 00 c7 ff ff 00 00 14 00 00 00 00 00 00 00
>> 00  8...............
>> [   44.251012] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.251023] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.251237] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.251252] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.251447] brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>> [   44.251460] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.251592] brcmutil: RxHdr:
>> [   44.251610] 00000000: 0c 00 f3 ff 00 01 00 0c 00 16 00 00
>>     ............
>> [   44.251703] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.251716] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.252029] brcmutil: RxHdr:
>> [   44.252048] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.252070] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.252083] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.252284] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.252298] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.252425] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.266638] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.266657] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.266880] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.266893] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.267125] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.267140] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.267151] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.270317] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.270441] brcmutil: RxHdr:
>> [   44.270461] 00000000: 30 00 cf ff 01 00 00 0c 00 15 00 00
>>     0...........
>> [   44.270474] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.270675] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.270708] brcmutil: RxHdr:
>> [   44.270724] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.270761] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.270775] brcmutil: TxHdr:
>> [   44.270789] 00000000: 28 01 d7 fe 00 00 00 14 00 00 00 00 00 00 00
>> 00  (...............
>> [   44.270911] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.286654] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.286671] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.286889] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.286903] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.287131] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.287146] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.287157] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.290320] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.290444] brcmutil: RxHdr:
>> [   44.290467] 00000000: 20 01 df fe 02 00 00 0c 00 16 00 00
>>      ...........
>> [   44.290479] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.290766] brcmfmac: brcmf_c_preinit_dcmds: Firmware version =
>> wl0: Mar 24 2013 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>> [   44.301838] brcmutil: RxHdr:
>> [   44.301859] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.302724] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.302743] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.302757] brcmutil: TxHdr:
>> [   44.302775] 00000000: 34 00 cb ff 01 00 00 14 00 00 00 00 00 00 00
>> 00  4...............
>> [   44.302940] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.316613] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.316630] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.316841] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.316854] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.317073] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.317088] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.317098] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.320259] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.320384] brcmutil: RxHdr:
>> [   44.320404] 00000000: 2c 00 d3 ff 03 00 00 0c 00 17 00 00
>>     ,...........
>> [   44.320417] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.320584] brcmutil: RxHdr:
>> [   44.320602] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.320658] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.320671] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.320683] brcmutil: TxHdr:
>> [   44.320697] 00000000: 31 00 ce ff 02 00 00 14 00 00 00 00 00 00 00
>> 00  1...............
>> [   44.320818] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.336673] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.336688] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.336902] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.336915] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.337135] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.337150] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.337160] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.340327] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.340452] brcmutil: RxHdr:
>> [   44.340473] 00000000: 29 00 d6 ff 04 00 00 0c 00 18 00 00
>>     )...........
>> [   44.340486] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.340651] brcmutil: RxHdr:
>> [   44.340669] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.340723] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.340737] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.340750] brcmutil: TxHdr:
>> [   44.340763] 00000000: 3f 00 c0 ff 03 00 00 14 00 00 00 00 00 00 00
>> 00  ?...............
>> [   44.340884] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.356629] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.356647] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.356863] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.356877] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.357102] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.357117] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.357128] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.360290] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.360416] brcmutil: RxHdr:
>> [   44.360437] 00000000: 37 00 c8 ff 05 00 00 0c 00 19 00 00
>>     7...........
>> [   44.360448] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.360614] brcmutil: RxHdr:
>> [   44.360633] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.360687] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.360701] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.360713] brcmutil: TxHdr:
>> [   44.360728] 00000000: 3f 00 c0 ff 04 00 00 14 00 00 00 00 00 00 00
>> 00  ?...............
>> [   44.360850] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.376617] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.376634] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.376849] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.376862] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.377087] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.377103] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.377113] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.380275] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.380397] brcmutil: RxHdr:
>> [   44.380417] 00000000: 37 00 c8 ff 06 00 00 0c 00 1a 00 00
>>     7...........
>> [   44.380430] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.380601] brcmutil: RxHdr:
>> [   44.380620] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.380674] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.380687] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.380699] brcmutil: TxHdr:
>> [   44.380714] 00000000: 28 00 d7 ff 05 00 00 14 00 00 00 00 00 00 00
>> 00  (...............
>> [   44.380837] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.396621] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.396639] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.396850] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.396865] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.397091] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.397106] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.397117] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.400276] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.400400] brcmutil: RxHdr:
>> [   44.400421] 00000000: 20 00 df ff 07 00 00 0c 00 1b 00 00
>>      ...........
>> [   44.400434] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.400600] brcmutil: RxHdr:
>> [   44.400618] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.400672] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.400685] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.400696] brcmutil: TxHdr:
>> [   44.400709] 00000000: 28 00 d7 ff 06 00 00 14 00 00 00 00 00 00 00
>> 00  (...............
>> [   44.400812] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.416618] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.416635] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.416847] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.416860] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.417086] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.417102] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.417112] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.420271] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.420394] brcmutil: RxHdr:
>> [   44.420414] 00000000: 20 00 df ff 08 00 00 0c 00 1c 00 00
>>      ...........
>> [   44.420427] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.420588] brcmutil: RxHdr:
>> [   44.420605] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.420670] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.420684] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.420696] brcmutil: TxHdr:
>> [   44.420710] 00000000: 49 00 b6 ff 07 00 00 14 00 00 00 00 00 00 00
>> 00  I...............
>> [   44.420835] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.436617] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.436634] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.436851] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.436865] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.437091] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.437106] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.437116] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.440273] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.440398] brcmutil: RxHdr:
>> [   44.440419] 00000000: 41 00 be ff 09 00 00 0c 00 1d 00 00
>>     A...........
>> [   44.440431] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.440695] brcmutil: RxHdr:
>> [   44.440713] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.440775] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.440789] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.440802] brcmutil: TxHdr:
>> [   44.440815] 00000000: 3e 00 c1 ff 08 00 00 14 00 00 00 00 00 00 00
>> 00  >...............
>> [   44.440926] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.456621] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.456639] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.456853] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.456867] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.457086] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.457102] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.457113] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.460278] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.460401] brcmutil: RxHdr:
>> [   44.460421] 00000000: 36 00 c9 ff 0a 00 00 0c 00 1e 00 00
>>     6...........
>> [   44.460435] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.460616] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.460649] brcmutil: RxHdr:
>> [   44.460665] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.460702] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.460715] brcmutil: TxHdr:
>> [   44.460730] 00000000: 38 00 c7 ff 09 00 00 14 00 00 00 00 00 00 00
>> 00  8...............
>> [   44.460848] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.476620] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.476637] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.476848] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.476861] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.477081] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.477097] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.477106] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.480268] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.480394] brcmutil: RxHdr:
>> [   44.480415] 00000000: 30 00 cf ff 0b 00 00 0c 00 1f 00 00
>>     0...........
>> [   44.480427] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.480612] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.480646] brcmutil: RxHdr:
>> [   44.480663] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.480700] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.480715] brcmutil: TxHdr:
>> [   44.480728] 00000000: 38 00 c7 ff 0a 00 00 14 00 00 00 00 00 00 00
>> 00  8...............
>> [   44.480850] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.496616] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.496634] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.496850] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.496864] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.497078] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.497093] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.497104] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.500272] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.500395] brcmutil: RxHdr:
>> [   44.500416] 00000000: 30 00 cf ff 0c 00 00 0c 00 20 00 00
>>     0........ ..
>> [   44.500428] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.500793] brcmutil: RxHdr:
>> [   44.500814] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.500882] brcmfmac: brcmf_fweh_register event handler registered
>> for FIFO_CREDIT_MAP
>> [   44.500896] brcmfmac: brcmf_fweh_register event handler registered
>> for BCMC_CREDIT_SUPPORT
>> [   44.500914] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.500927] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.500939] brcmutil: TxHdr:
>> [   44.500954] 00000000: 2c 00 d3 ff 0b 00 00 14 00 00 00 00 00 00 00
>> 00  ,...............
>> [   44.501092] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.516625] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.516643] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.516863] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.516877] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.517098] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.517113] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.517124] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.520288] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.520414] brcmutil: RxHdr:
>> [   44.520435] 00000000: 24 00 db ff 0d 00 00 0c 00 21 00 00
>>     $........!..
>> [   44.520448] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.520632] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.520665] brcmutil: RxHdr:
>> [   44.520681] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.520718] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.520731] brcmutil: TxHdr:
>> [   44.520744] 00000000: 3a 00 c5 ff 0c 00 00 14 00 00 00 00 00 00 00
>> 00  :...............
>> [   44.520864] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.536673] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.536689] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.536908] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.536922] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.537141] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.537155] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.537167] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.540333] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.540456] brcmutil: RxHdr:
>> [   44.540477] 00000000: 32 00 cd ff 0e 00 00 0c 00 22 00 00
>>     2........"..
>> [   44.540490] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.540676] brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>> [   44.544707] brcmfmac: brcmf_fws_init enabling AMPDU host-reorder failed
>> [   44.544740] brcmfmac: brcmf_fws_macdesc_init enter: desc 9f20e7f0
>> ea=  (null), ifidx=0
>> [   44.544795] brcmfmac: brcmf_fws_init enabled bdcv2 tlv signaling [1]
>> [   44.544814] brcmfmac: brcmf_fws_macdesc_init enter: desc 9f20d030
>> ea=00:90:4c:c5:12:38, ifidx=0
>> [   44.544828] brcmfmac: brcmf_fws_add_interface added MACIF:0
>> [   44.544965] brcmfmac: brcmf_setup_wiphy Registering custom regulatory
>> [   44.547564] brcmutil: RxHdr:
>> [   44.547589] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.554565] brcmfmac: brcmf_alloc_vif allocating virtual interface
>> (size=2332)
>> [   44.554596] brcmfmac: brcmf_fweh_register event handler registered for
>> LINK
>> [   44.554609] brcmfmac: brcmf_fweh_register event handler registered
>> for DEAUTH_IND
>> [   44.554619] brcmfmac: brcmf_fweh_register event handler registered for
>> DEAUTH
>> [   44.554630] brcmfmac: brcmf_fweh_register event handler registered
>> for DISASSOC_IND
>> [   44.554639] brcmfmac: brcmf_fweh_register event handler registered
>> for ASSOC_IND
>> [   44.554649] brcmfmac: brcmf_fweh_register event handler registered
>> for REASSOC_IND
>> [   44.554658] brcmfmac: brcmf_fweh_register event handler registered for
>> ROAM
>> [   44.554668] brcmfmac: brcmf_fweh_register event handler registered
>> for MIC_ERROR
>> [   44.554679] brcmfmac: brcmf_fweh_register event handler registered
>> for SET_SSID
>> [   44.554691] brcmfmac: brcmf_fweh_register event handler registered
>> for PFN_NET_FOUND
>> [   44.554702] brcmfmac: brcmf_fweh_register event handler registered for
>> IF
>> [   44.554713] brcmfmac: brcmf_fweh_register event handler registered
>> for P2P_PROBEREQ_MSG
>> [   44.554723] brcmfmac: brcmf_fweh_register event handler registered
>> for P2P_DISC_LISTEN_COMPLETE
>> [   44.554734] brcmfmac: brcmf_fweh_register event handler registered
>> for ACTION_FRAME_RX
>> [   44.554744] brcmfmac: brcmf_fweh_register event handler registered
>> for ACTION_FRAME_COMPLETE
>> [   44.554755] brcmfmac: brcmf_fweh_register event handler registered
>> for ACTION_FRAME_OFF_CHAN_COMPLETE
>> [   44.554765] brcmfmac: brcmf_fweh_register event handler registered
>> for ESCAN_RESULT
>> [   44.554778] brcmfmac: brcmf_btcoex_attach enter
>> [   44.555320] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.555341] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.555356] brcmutil: TxHdr:
>> [   44.555376] 00000000: 34 00 cb ff 0d 00 00 14 00 00 00 00 00 00 00
>> 00  4...............
>> [   44.555517] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.566688] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.566708] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.566939] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.566952] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.567179] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.567195] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.567205] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.570374] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.570500] brcmutil: RxHdr:
>> [   44.570522] 00000000: 2c 00 d3 ff 0f 00 00 0c 00 23 00 00
>>     ,........#..
>> [   44.570534] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.570710] brcmutil: RxHdr:
>> [   44.570728] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.570786] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.570800] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.570812] brcmutil: TxHdr:
>> [   44.570826] 00000000: 28 00 d7 ff 0e 00 00 14 00 00 00 00 00 00 00
>> 00  (...............
>> [   44.570950] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.586650] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.586669] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.586907] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.586922] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.587144] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.587159] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.587169] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.590336] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.590457] brcmutil: RxHdr:
>> [   44.590478] 00000000: 20 00 df ff 10 00 00 0c 00 24 00 00
>>      ........$..
>> [   44.590491] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.590691] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> [   44.590725] brcmutil: RxHdr:
>> [   44.590741] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.590775] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.590789] brcmutil: TxHdr:
>> [   44.590803] 00000000: 3f 00 c0 ff 0f 00 00 14 00 00 00 00 00 00 00
>> 00  ?...............
>> [   44.590925] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> [   44.606621] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.606639] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.606856] brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> [   44.606870] brcmfmac: brcmf_sdbrcm_isr Enter
>> [   44.607090] brcmfmac: brcmf_sdbrcm_dpc Enter
>> [   44.607106] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.607115] brcmfmac: brcmf_sdbrcm_kso_control Enter
>> [   44.610279] brcmfmac: brcmf_sdio_readframes Enter
>> [   44.610403] brcmutil: RxHdr:
>> [   44.610425] 00000000: 37 00 c8 ff 11 00 00 0c 00 25 00 00
>>     7........%..
>> [   44.610438] brcmfmac: brcmf_sdbrcm_read_control Enter
>> [   44.610622] brcmfmac: brcmf_net_attach Enter, idx=0
>> mac=00:90:4c:c5:12:38
>> [   44.611733] brcmfmac: brcmf_netdev_get_stats Enter, idx=0
>> [   44.611831] brcmfmac: brcmf_net_attach wlan0: Broadcom Dongle Host
>> Driver
>> [   44.619217] brcmutil: RxHdr:
>> [   44.619243] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>     ............
>> [   44.626752] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> [   44.626771] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>
>>
>> Regards
>> Dong Aisheng
>>
>>> Regards, Arend
>>>
>>>
>>>> Regards
>>>> Dong Aisheng
>>>>
>>>> Below is the log FYI.
>>>>
>>>> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>> mmc0: new high speed SDIO card at address 0001
>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>>>> brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
>>>> init done for chip 4335 rev 1 pmurev 18
>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>
>>>> root@imx6slevk:~#
>>>> root@imx6slevk:~# ifconfig -a
>>>> eth0      Link encap:Ethernet  HWaddr 00:04:9F:02:76:E5
>>>>             inet addr:10.192.242.69  Bcast:10.192.242.255
>>>> Mask:255.255.255.0
>>>>             inet6 addr: fe80::204:9fff:fe02:76e5/64 Scope:Link
>>>>             UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>>>             RX packets:20301 errors:0 dropped:1 overruns:0 frame:0
>>>>             TX packets:16888 errors:0 dropped:0 overruns:0 carrier:0
>>>>             collisions:0 txqueuelen:1000
>>>>             RX bytes:22233761 (21.2 MiB)  TX bytes:2373414 (2.2 MiB)
>>>>
>>>> lo        Link encap:Local Loopback
>>>>             inet addr:127.0.0.1  Mask:255.0.0.0
>>>>             inet6 addr: ::1/128 Scope:Host
>>>>             UP LOOPBACK RUNNING  MTU:65536  Metric:1
>>>>             RX packets:34 errors:0 dropped:0 overruns:0 frame:0
>>>>             TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
>>>>             collisions:0 txqueuelen:0
>>>>             RX bytes:2340 (2.2 KiB)  TX bytes:2340 (2.2 KiB)
>>>>
>>>> sit0      Link encap:IPv6-in-IPv4
>>>>             NOARP  MTU:1480  Metric:1
>>>>             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>>             collisions:0 txqueuelen:0
>>>>             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>>
>>>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>>>             BROADCAST MULTICAST  MTU:1500  Metric:1
>>>>             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>>             collisions:0 txqueuelen:1000
>>>>             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>>
>>>> root@imx6slevk:~#
>>>> root@imx6slevk:~# rfkill list
>>>> 0: phy0: wlan
>>>>           Soft blocked: yes
>>>>           Hard blocked: no
>>>>
>>>> root@imx6slevk:~# rfkill unblock wlan
>>>> root@imx6slevk:~# brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>> F1:@0x1001f=01, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>> F1:@0x1001f=ff, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>> F1:@0x1001f=ff, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>> F1:@0x1001f=01, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>> F1:@0x1001f=ff, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>> F1:@0x1001f=ff, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>> F1:@0x1001f=01, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>> F1:@0x1001f=ff, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>> F1:@0x1001f=ff, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>> F1:@0x1001f=01, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>> F1:@0x1001f=ff, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>> F1:@0x1001f=ff, Err: -110
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>> brcmfmac: brcmf_set_mpc: fail to set mpc
>>>> brcmfmac: brcmf_escan_timeout: timer expired
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>> F1:@0x1001f=01, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>> F1:@0x1001f=01, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>> F1:@0x1001f=01, Err: -110
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>> brcmfmac: brcmf_set_mpc: fail to set mpc
>>>> ............
>>>>
>>>> The following detailed Log for drver probe, if you also need the full
>>>> log after run rfkill please let me know.
>>>>
>>>> [   36.555580] brcmfmac: brcmf_sdbrcm_probe Enter
>>>> [   36.564293] brcmfmac: F1 signature read @0x18000000=0x16214335
>>>> [   36.564425] brcmfmac: brcmf_sdio_chip_attach Enter
>>>> [   36.564973] brcmfmac: brcmf_sdio_chip_recognition chipid=0x4335
>>>> chiprev=1
>>>> [   36.565163] brcmfmac: brcmf_sdio_chip_buscoresetup ccrev=43,
>>>> pmurev=18, buscore rev/type=15/0x829
>>>> [   36.566410] brcmfmac: brcmf_sdioh_request_word: Failed to read
>>>> word, Err: 0xffffffac
>>>> [   36.594407] brcmfmac: brcmf_sdioh_request_word: Failed to read
>>>> word, Err: 0xffffffac
>>>> [   36.621092] brcmfmac: brcmf_sdioh_request_word: Failed to read
>>>> word, Err: 0xffffffac
>>>> [   36.627684] brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>>>> [   36.638085] brcmfmac: brcmf_sdbrcm_kso_init Enter
>>>> [   36.638167] brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO
>>>> Drive strength init done for chip 4335 rev 1 pmurev 18
>>>> [   36.648862] brcmfmac: brcmf_attach Enter
>>>> [   36.648947] brcmfmac: brcmf_sdbrcm_probe_malloc Enter
>>>> [   36.648965] brcmfmac: brcmf_sdbrcm_probe_init Enter
>>>> [   36.649174] brcmfmac: brcmf_sdbrcm_probe completed!!
>>>> [   36.649190] brcmfmac: brcmf_bus_start
>>>> [   36.649201] brcmfmac: brcmf_sdbrcm_bus_init Enter
>>>> [   36.650399] brcmfmac: brcmf_sdbrcm_download_code_file Enter
>>>> [   37.065998] brcmfmac: brcmf_sdio_chip_verifynvram Compare NVRAM dl
>>>> & ul; size=2216
>>>> [   37.067114] brcmfmac: brcmf_sdio_chip_writenvram RAM size: 786432
>>>> [   37.067137] brcmfmac: brcmf_sdio_chip_writenvram nvram is placed at
>>>> 2357076, size 2216, token=0xfdd5022a
>>>> [   37.226519] brcmfmac: brcmf_sdbrcm_bus_init enable 0x06, ready 0x06
>>>> [   37.226674] brcmfmac: brcmf_sdbrcm_sr_capable Enter
>>>> [   37.226845] brcmfmac: brcmf_sdbrcm_sr_init Enter
>>>> [   37.227026] brcmfmac: brcmf_sdbrcm_sr_init SR enabled
>>>> [   37.227368] brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>>>> [   37.227383] brcmfmac: brcmf_add_if allocate netdev interface
>>>> [   37.227408] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.227419] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.227548] brcmfmac: brcmf_add_if  ==== pid:11, if:wlan%d
>>>> (00:00:00:00:00:00) created ===
>>>> [   37.227567] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.227675] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.227688] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.230910] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.231124] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.231139] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.231337] brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>> [   37.231350] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.231550] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.231870] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.231883] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.232082] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.232097] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.232224] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.246569] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.246587] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.246807] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.247031] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.247047] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.247059] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.250219] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.250346] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.250549] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.250606] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.250730] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.266635] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.266651] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.266869] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.267097] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.267112] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.267123] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.270283] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.270410] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.270709] brcmfmac: brcmf_c_preinit_dcmds: Firmware version =
>>>> wl0: Mar 24 2013 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>> [   37.282106] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.282125] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.282281] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.296548] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.296564] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.296775] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.297000] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.297015] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.297025] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.300190] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.300317] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.300523] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.300538] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.300657] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.316546] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.316562] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.316767] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.316989] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.317005] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.317015] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.320178] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.320302] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.320506] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.320522] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.320644] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.336555] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.336571] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.336782] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.337005] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.337020] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.337031] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.340209] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.340334] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.340542] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.340558] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.340680] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.356551] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.356568] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.356781] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.357012] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.357027] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.357037] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.360196] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.360323] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.360524] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.360539] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.360659] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.376550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.376567] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.376772] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.376995] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.377012] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.377021] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.380178] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.380306] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.380506] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.380522] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.380645] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.396550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.396568] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.396774] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.397002] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.397018] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.397029] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.400187] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.400316] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.400533] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.400549] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.400674] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.416549] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.416566] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.416774] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.416998] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.417015] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.417026] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.420187] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.420310] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.420617] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.420633] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.420753] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.436550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.436566] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.436777] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.437003] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.437018] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.437028] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.440189] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.440311] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.440518] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.440533] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.440654] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.456547] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.456563] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.456773] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.456999] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.457015] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.457025] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.460185] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.460312] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.460518] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.460534] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.460651] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.466742] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.466953] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.466967] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.466981] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.467102] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.469141] brcmfmac: brcmf_fweh_register event handler registered
>>>> for FIFO_CREDIT_MAP
>>>> [   37.469161] brcmfmac: brcmf_fweh_register event handler registered
>>>> for BCMC_CREDIT_SUPPORT
>>>> [   37.469178] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.469193] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.469334] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.486546] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.486563] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.486778] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.487004] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.487020] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.487031] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.490190] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.490316] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.490525] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.490542] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.490661] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.506550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.506568] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.506781] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.507008] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.507024] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.507035] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.510194] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.510318] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.510507] brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>> [   37.514539] brcmfmac: brcmf_fws_init enabling AMPDU host-reorder
>>>> failed
>>>> [   37.514573] brcmfmac: brcmf_fws_macdesc_init enter: desc bec567f0
>>>> ea=  (null), ifidx=0
>>>> [   37.514626] brcmfmac: brcmf_fws_init enabled bdcv2 tlv signaling [1]
>>>> [   37.514644] brcmfmac: brcmf_fws_macdesc_init enter: desc bec55030
>>>> ea=00:90:4c:c5:12:38, ifidx=0
>>>> [   37.514658] brcmfmac: brcmf_fws_add_interface added MACIF:0
>>>> [   37.514796] brcmfmac: brcmf_setup_wiphy Registering custom regulatory
>>>> [   37.522518] brcmfmac: brcmf_alloc_vif allocating virtual interface
>>>> (size=2332)
>>>> [   37.522550] brcmfmac: brcmf_fweh_register event handler registered
>>>> for
>>>> LINK
>>>> [   37.522563] brcmfmac: brcmf_fweh_register event handler registered
>>>> for DEAUTH_IND
>>>> [   37.522574] brcmfmac: brcmf_fweh_register event handler registered
>>>> for
>>>> DEAUTH
>>>> [   37.522584] brcmfmac: brcmf_fweh_register event handler registered
>>>> for DISASSOC_IND
>>>> [   37.522593] brcmfmac: brcmf_fweh_register event handler registered
>>>> for ASSOC_IND
>>>> [   37.522603] brcmfmac: brcmf_fweh_register event handler registered
>>>> for REASSOC_IND
>>>> [   37.522613] brcmfmac: brcmf_fweh_register event handler registered
>>>> for
>>>> ROAM
>>>> [   37.522622] brcmfmac: brcmf_fweh_register event handler registered
>>>> for MIC_ERROR
>>>> [   37.522633] brcmfmac: brcmf_fweh_register event handler registered
>>>> for SET_SSID
>>>> [   37.522644] brcmfmac: brcmf_fweh_register event handler registered
>>>> for PFN_NET_FOUND
>>>> [   37.522655] brcmfmac: brcmf_fweh_register event handler registered
>>>> for
>>>> IF
>>>> [   37.522667] brcmfmac: brcmf_fweh_register event handler registered
>>>> for P2P_PROBEREQ_MSG
>>>> [   37.522677] brcmfmac: brcmf_fweh_register event handler registered
>>>> for P2P_DISC_LISTEN_COMPLETE
>>>> [   37.522688] brcmfmac: brcmf_fweh_register event handler registered
>>>> for ACTION_FRAME_RX
>>>> [   37.522699] brcmfmac: brcmf_fweh_register event handler registered
>>>> for ACTION_FRAME_COMPLETE
>>>> [   37.522710] brcmfmac: brcmf_fweh_register event handler registered
>>>> for ACTION_FRAME_OFF_CHAN_COMPLETE
>>>> [   37.522720] brcmfmac: brcmf_fweh_register event handler registered
>>>> for ESCAN_RESULT
>>>> [   37.522732] brcmfmac: brcmf_btcoex_attach enter
>>>> [   37.523262] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.523284] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.523429] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.536624] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.536644] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.536879] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.537111] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.537126] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.537137] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.540301] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.540434] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.540656] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.540672] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.540796] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.556688] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.556706] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.556927] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.557152] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.557167] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.557178] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.560348] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.560476] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.560705] brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> [   37.560721] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.560846] brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> [   37.576550] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.576567] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.576777] brcmfmac: brcmf_sdbrcm_isr Enter
>>>> [   37.577001] brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> [   37.577016] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.577026] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   37.580188] brcmfmac: brcmf_sdio_readframes Enter
>>>> [   37.580311] brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> [   37.580518] brcmfmac: brcmf_net_attach Enter, idx=0
>>>> mac=00:90:4c:c5:12:38
>>>> [   37.581610] brcmfmac: brcmf_netdev_get_stats Enter, idx=0
>>>> [   37.581704] brcmfmac: brcmf_net_attach wlan0: Broadcom Dongle Host
>>>> Driver
>>>> [   37.596623] brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> [   37.596641] brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> [   45.955942] brcmfmac: brcmf_netdev_get_stats Enter, idx=0
>>>>
>>>
>>>
>>
>
>

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-04  3:44       ` Dong Aisheng
@ 2013-11-04  8:13         ` Dong Aisheng
  2013-11-04  9:44           ` Arend van Spriel
  0 siblings, 1 reply; 17+ messages in thread
From: Dong Aisheng @ 2013-11-04  8:13 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: linux-wireless, frankyl, brcm80211-dev-list

Hi Arend,

On Mon, Nov 4, 2013 at 11:44 AM, Dong Aisheng <dongas86@gmail.com> wrote:
> Hi Arend,
>
> On Fri, Nov 1, 2013 at 9:25 PM, Arend van Spriel <arend@broadcom.com> wrote:
>> On 11/01/2013 01:21 PM, Dong Aisheng wrote:
>>>
>>> Hi Arend,
>>>
>>> On Fri, Nov 1, 2013 at 6:35 PM, Arend van Spriel <arend@broadcom.com>
>>> wrote:
>>>>
>>>> On 11/01/2013 07:22 AM, Dong Aisheng wrote:
>>>>>
>>>>>
>>>>> Hi ALL,
>>>>>
>>>>> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
>>>>> The kernel i ran is latest from:
>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>>>>>
>>>>> The firmware is used is from:
>>>>>
>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>>>>>
>>>>> NVRAM file is got from the vendor which should work for the module.
>>>>>
>>>>> But i ran into the following issues, hope somebody can give me some
>>>>> hints.
>>>>>
>>>>> First, i met error when module is auto loaded, but seems the driver is
>>>>> still loaded successfully since i found the new WiFi interface with
>>>>> ifconfig.
>>>>> But it can not work after run rfkill unblock wlan and a lot error
>>>>> messages comes out.
>>>>>
>>>>> I'm wondering if this driver can support bcm4335 well, can anybody
>>>>> provide some help?
>>>>
>>>>
>>>>
>>>> I can try. I have used the bcm4335 with a SDIO3.0 controller on a x86 PC.
>>>> Looking at an issue right now, but your log does not show that so you
>>>> have a
>>>> different issue. Could you load the module with parameter 'debug=0x146'.
>>>>
>>>
>>> Thanks for the help.
>>> So that means the brcmfmac driver should support bcm4335 module well,
>>> right?
>>> The difference is that i'm using a ARM platform.
>>> Below is log with 'debug=0x146'.
>>> It only includes driver probe log.
>>
>>
>> That log actually looks fine. Just not sure why software rfkill was enabled.
>> Is that still the case? What distro is running on your platform?
>>
>
> Do you  mean the error message during probe is also fine?
> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
> mmc0: new high speed SDIO card at address 0001
> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
> brcmfmac: brcmf_sdio_regrw_helper: failed with -84     <--- error message
> brcmfmac: brcmf_sdio_chip_
> drivestrengthinit: No SDIO Drive strength
> init done for chip 4335 rev 1 pmurev 18
> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
> brcmfmac: brcmf_fil_cmd_data: Failed err=-23              <---- error message
>
> I'm using yocto rootfs, seems rfkill is always enabled by default.
> I could try another rootfs without rfkill.
> But i don't think rfkill should block WiFi driver to work properly.
>

I tried another rootfs without rfkill, met the same issue when doing
ifconfig wlan0 up, just like 'rfkill unblock wlan'.

root@freescale ~$ mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
mmc0: new high speed SDIO card at address 0001
brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
brcmfmac: brcmf_sdio_regrw_helper: failed with -84
brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
init done for chip 4335 rev 1 pmurev 18
brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
brcmfmac: brcmf_fil_cmd_data: Failed err=-23

root@freescale ~$
root@freescale ~$
root@freescale ~$ ifconfig -a
......

wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@freescale ~$ ifconfig wlan0 up
brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
brcmfmac: brcmf_add_if: ignore IF event
brcmfmac: brcmf_fil_cmd_data: Failed err=-110

brcmfmac: brcmf_fil_cmd_data: Failed err=-23
root@freescale ~$
root@freescale ~$
root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
byte F1:@0x1001f=01, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
F1:@0x1001f=ff, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
F1:@0x1001f=ff, Err: -110

root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
byte F1:@0x1001f=01, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
F1:@0x1001f=ff, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
F1:@0x1001f=ff, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
F1:@0x1001f=01, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
F1:@0x1001f=ff, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
F1:@0x1001f=ff, Err: -110

I looked into a bit more about the error and found there's CMD timeout
on the bus during SDIO
command transfer.
---------------------------------------
brcmutil: RxHdr:
00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
brcmfmac: brcmf_sdbrcm_read_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
mmc0: starting CMD52 arg 92001400 flags 00000195
sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00010000
mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
F1:@0x1000a=00, Err: -110
------------------------------------------
I'm not sure how this happened, whether caused by host side or wifi driver side.
But for the host, i tried this host driver with another WiFi
card(Atheros AR6103) with same kernel,
and it worked well. So the host driver seems more like ok to me.

Since i'm not familar with the WiFi driver, i wonder if you could
provide suggestion
from WiFi driver layer to see what the issue could be.

Below is the detailed log when run 'ifconfig wlan0 up'

root@freescale ~$ ifconfig wlan0 up
brcmfmac: brcmf_netdev_open Enter, idx=0
brcmfmac: brcmf_sdbrcm_bus_txctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmutil: TxHdr:
00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00  /...............
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl Enter

brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdio_readframes Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
brcmfmac: brcmf_fil_cmd_data: Failed err=-110
brcmutil: RxHdr:
00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00              '........&..
brcmfmac: brcmf_sdbrcm_read_control Enter
brcmfmac: brcmf_sdbrcm_bus_txctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmutil: TxHdr:
00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00  (...............
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmutil: RxHdr:
00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdio_readframes Enter
brcmutil: RxHdr:
00000000: 20 00 df ff 13 00 00 0c 00 32 00 00               ........2..
brcmfmac: brcmf_sdbrcm_read_control Enter
brcmfmac: brcmf_sdbrcm_bus_txctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmutil: TxHdr:
00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00  (...............
brcmutil: RxHdr:
00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00              .........2..
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
brcmfmac: brcmf_fws_notify_credit_map enter: credits 09:27:12:09:09:02
brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
brcmfmac: brcmf_add_if: ignore IF event
brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmutil: RxHdr:
00000000: 20 00 df ff 17 00 00 0c 00 33 00 00               ........3..
brcmfmac: brcmf_sdbrcm_read_control Enter
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_txctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmutil: TxHdr:
00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00  (...............
brcmutil: RxHdr:
00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdio_readframes Enter
brcmutil: RxHdr:
00000000: 20 00 df ff 18 00 00 0c 00 34 00 00               ........4..
brcmfmac: brcmf_sdbrcm_read_control Enter
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_txctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmutil: TxHdr:
00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00  (...............
brcmutil: RxHdr:
00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdio_readframes Enter
brcmutil: RxHdr:
00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdio_readframes Enter
brcmutil: RxHdr:
00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
brcmfmac: brcmf_sdbrcm_read_control Enter
brcmfmac: brcmf_sdbrcm_bus_txctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmutil: TxHdr:
00000000: 28 00 d7 ff 15 00 00 14 00 00 00 00 00 00 00 00  (...............
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmutil: RxHdr:
00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdio_readframes Enter
brcmutil: RxHdr:
00000000: 20 00 df ff 1a 00 00 0c 00 36 00 00               ........6..
brcmfmac: brcmf_sdbrcm_read_control Enter
brcmfmac: brcmf_config_dongle power save set to enabled
brcmfmac: brcmf_dongle_roam Internal Roaming = On
brcmfmac: brcmf_sdbrcm_bus_txctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmutil: RxHdr:
00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmutil: TxHdr:
00000000: 31 00 ce ff 16 00 00 14 00 00 00 00 00 00 00 00  1...............
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter

brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter        <-- the driver loops
here by running this function
.................


Regards
Dong Aisheng

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-04  8:13         ` Dong Aisheng
@ 2013-11-04  9:44           ` Arend van Spriel
  2013-11-05  2:51             ` Dong Aisheng
  0 siblings, 1 reply; 17+ messages in thread
From: Arend van Spriel @ 2013-11-04  9:44 UTC (permalink / raw)
  To: Dong Aisheng; +Cc: linux-wireless, frankyl, brcm80211-dev-list

On 11/04/2013 09:13 AM, Dong Aisheng wrote:
> Hi Arend,
>
> On Mon, Nov 4, 2013 at 11:44 AM, Dong Aisheng <dongas86@gmail.com> wrote:
>> Hi Arend,
>>
>> On Fri, Nov 1, 2013 at 9:25 PM, Arend van Spriel <arend@broadcom.com> wrote:
>>> On 11/01/2013 01:21 PM, Dong Aisheng wrote:
>>>>
>>>> Hi Arend,
>>>>
>>>> On Fri, Nov 1, 2013 at 6:35 PM, Arend van Spriel <arend@broadcom.com>
>>>> wrote:
>>>>>
>>>>> On 11/01/2013 07:22 AM, Dong Aisheng wrote:
>>>>>>
>>>>>>
>>>>>> Hi ALL,
>>>>>>
>>>>>> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
>>>>>> The kernel i ran is latest from:
>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>>>>>>
>>>>>> The firmware is used is from:
>>>>>>
>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>>>>>>
>>>>>> NVRAM file is got from the vendor which should work for the module.
>>>>>>
>>>>>> But i ran into the following issues, hope somebody can give me some
>>>>>> hints.
>>>>>>
>>>>>> First, i met error when module is auto loaded, but seems the driver is
>>>>>> still loaded successfully since i found the new WiFi interface with
>>>>>> ifconfig.
>>>>>> But it can not work after run rfkill unblock wlan and a lot error
>>>>>> messages comes out.
>>>>>>
>>>>>> I'm wondering if this driver can support bcm4335 well, can anybody
>>>>>> provide some help?
>>>>>
>>>>>
>>>>>
>>>>> I can try. I have used the bcm4335 with a SDIO3.0 controller on a x86 PC.
>>>>> Looking at an issue right now, but your log does not show that so you
>>>>> have a
>>>>> different issue. Could you load the module with parameter 'debug=0x146'.
>>>>>
>>>>
>>>> Thanks for the help.
>>>> So that means the brcmfmac driver should support bcm4335 module well,
>>>> right?
>>>> The difference is that i'm using a ARM platform.
>>>> Below is log with 'debug=0x146'.
>>>> It only includes driver probe log.
>>>
>>>
>>> That log actually looks fine. Just not sure why software rfkill was enabled.
>>> Is that still the case? What distro is running on your platform?
>>>
>>
>> Do you  mean the error message during probe is also fine?
>> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>> mmc0: new high speed SDIO card at address 0001
>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84     <--- error message
>> brcmfmac: brcmf_sdio_chip_
>> drivestrengthinit: No SDIO Drive strength
>> init done for chip 4335 rev 1 pmurev 18
>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23              <---- error message
>>
>> I'm using yocto rootfs, seems rfkill is always enabled by default.
>> I could try another rootfs without rfkill.
>> But i don't think rfkill should block WiFi driver to work properly.
>>
>
> I tried another rootfs without rfkill, met the same issue when doing
> ifconfig wlan0 up, just like 'rfkill unblock wlan'.
>
> root@freescale ~$ mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
> mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
> mmc0: new high speed SDIO card at address 0001
> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
> brcmfmac: brcmf_sdio_regrw_helper: failed with -84
> brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
> init done for chip 4335 rev 1 pmurev 18
> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>
> root@freescale ~$
> root@freescale ~$
> root@freescale ~$ ifconfig -a
> ......
>
> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>            BROADCAST MULTICAST  MTU:1500  Metric:1
>            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:1000
>            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>
> root@freescale ~$ ifconfig wlan0 up
> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
> brcmfmac: brcmf_add_if: ignore IF event
> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>
> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
> root@freescale ~$
> root@freescale ~$
> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
> byte F1:@0x1001f=01, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
> F1:@0x1001f=ff, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
> F1:@0x1001f=ff, Err: -110
>
> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
> byte F1:@0x1001f=01, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
> F1:@0x1001f=ff, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
> F1:@0x1001f=ff, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
> F1:@0x1001f=01, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
> F1:@0x1001f=ff, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
> F1:@0x1001f=ff, Err: -110
>
> I looked into a bit more about the error and found there's CMD timeout
> on the bus during SDIO
> command transfer.
> ---------------------------------------
> brcmutil: RxHdr:
> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
> brcmfmac: brcmf_sdbrcm_read_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> mmc0: starting CMD52 arg 92001400 flags 00000195
> sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00010000
> mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
> F1:@0x1000a=00, Err: -110
> ------------------------------------------
> I'm not sure how this happened, whether caused by host side or wifi driver side.
> But for the host, i tried this host driver with another WiFi
> card(Atheros AR6103) with same kernel,
> and it worked well. So the host driver seems more like ok to me.
>
> Since i'm not familar with the WiFi driver, i wonder if you could
> provide suggestion
> from WiFi driver layer to see what the issue could be.
>
> Below is the detailed log when run 'ifconfig wlan0 up'
>
> root@freescale ~$ ifconfig wlan0 up
> brcmfmac: brcmf_netdev_open Enter, idx=0
> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmutil: TxHdr:
> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00  /...............
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>
> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdio_readframes Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
> brcmutil: RxHdr:
> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00              '........&..
> brcmfmac: brcmf_sdbrcm_read_control Enter
> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmutil: TxHdr:
> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00  (...............
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmutil: RxHdr:
> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdio_readframes Enter
> brcmutil: RxHdr:
> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00               ........2..
> brcmfmac: brcmf_sdbrcm_read_control Enter
> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmutil: TxHdr:
> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00  (...............
> brcmutil: RxHdr:
> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00              .........2..
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
> brcmfmac: brcmf_fws_notify_credit_map enter: credits 09:27:12:09:09:02
> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
> brcmfmac: brcmf_add_if: ignore IF event
> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmutil: RxHdr:
> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00               ........3..
> brcmfmac: brcmf_sdbrcm_read_control Enter
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmutil: TxHdr:
> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00  (...............
> brcmutil: RxHdr:
> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdio_readframes Enter
> brcmutil: RxHdr:
> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00               ........4..
> brcmfmac: brcmf_sdbrcm_read_control Enter
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmutil: TxHdr:
> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00  (...............
> brcmutil: RxHdr:
> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdio_readframes Enter
> brcmutil: RxHdr:
> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdio_readframes Enter
> brcmutil: RxHdr:
> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
> brcmfmac: brcmf_sdbrcm_read_control Enter
> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmutil: TxHdr:
> 00000000: 28 00 d7 ff 15 00 00 14 00 00 00 00 00 00 00 00  (...............
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmutil: RxHdr:
> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdio_readframes Enter
> brcmutil: RxHdr:
> 00000000: 20 00 df ff 1a 00 00 0c 00 36 00 00               ........6..
> brcmfmac: brcmf_sdbrcm_read_control Enter
> brcmfmac: brcmf_config_dongle power save set to enabled
> brcmfmac: brcmf_dongle_roam Internal Roaming = On

It seem this is the last command being sent. Could you provide file 
contents in /sys/kernel/debug/brcmfmac/mmc*/

Not sure if Yocto mounts debugfs on /sys/kernel/debug. Otherwise you can do:

# mkdir /tmp/debugfs
# mount -t debugfs none /tmp/debugfs

Regards,
Arend

> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmutil: RxHdr:
> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmutil: TxHdr:
> 00000000: 31 00 ce ff 16 00 00 14 00 00 00 00 00 00 00 00  1...............
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter        <-- the driver loops
> here by running this function
> .................
>
>
> Regards
> Dong Aisheng
>



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-04  9:44           ` Arend van Spriel
@ 2013-11-05  2:51             ` Dong Aisheng
  2013-11-05  8:36               ` Arend van Spriel
  0 siblings, 1 reply; 17+ messages in thread
From: Dong Aisheng @ 2013-11-05  2:51 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: linux-wireless, frankyl, brcm80211-dev-list

On Mon, Nov 4, 2013 at 5:44 PM, Arend van Spriel <arend@broadcom.com> wrote:
> On 11/04/2013 09:13 AM, Dong Aisheng wrote:
>>
>> Hi Arend,
>>
>> On Mon, Nov 4, 2013 at 11:44 AM, Dong Aisheng <dongas86@gmail.com> wrote:
>>>
>>> Hi Arend,
>>>
>>> On Fri, Nov 1, 2013 at 9:25 PM, Arend van Spriel <arend@broadcom.com>
>>> wrote:
>>>>
>>>> On 11/01/2013 01:21 PM, Dong Aisheng wrote:
>>>>>
>>>>>
>>>>> Hi Arend,
>>>>>
>>>>> On Fri, Nov 1, 2013 at 6:35 PM, Arend van Spriel <arend@broadcom.com>
>>>>> wrote:
>>>>>>
>>>>>>
>>>>>> On 11/01/2013 07:22 AM, Dong Aisheng wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Hi ALL,
>>>>>>>
>>>>>>> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
>>>>>>> The kernel i ran is latest from:
>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>>>>>>>
>>>>>>> The firmware is used is from:
>>>>>>>
>>>>>>>
>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>>>>>>>
>>>>>>> NVRAM file is got from the vendor which should work for the module.
>>>>>>>
>>>>>>> But i ran into the following issues, hope somebody can give me some
>>>>>>> hints.
>>>>>>>
>>>>>>> First, i met error when module is auto loaded, but seems the driver
>>>>>>> is
>>>>>>> still loaded successfully since i found the new WiFi interface with
>>>>>>> ifconfig.
>>>>>>> But it can not work after run rfkill unblock wlan and a lot error
>>>>>>> messages comes out.
>>>>>>>
>>>>>>> I'm wondering if this driver can support bcm4335 well, can anybody
>>>>>>> provide some help?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> I can try. I have used the bcm4335 with a SDIO3.0 controller on a x86
>>>>>> PC.
>>>>>> Looking at an issue right now, but your log does not show that so you
>>>>>> have a
>>>>>> different issue. Could you load the module with parameter
>>>>>> 'debug=0x146'.
>>>>>>
>>>>>
>>>>> Thanks for the help.
>>>>> So that means the brcmfmac driver should support bcm4335 module well,
>>>>> right?
>>>>> The difference is that i'm using a ARM platform.
>>>>> Below is log with 'debug=0x146'.
>>>>> It only includes driver probe log.
>>>>
>>>>
>>>>
>>>> That log actually looks fine. Just not sure why software rfkill was
>>>> enabled.
>>>> Is that still the case? What distro is running on your platform?
>>>>
>>>
>>> Do you  mean the error message during probe is also fine?
>>> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>> mmc0: new high speed SDIO card at address 0001
>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84     <--- error message
>>> brcmfmac: brcmf_sdio_chip_
>>> drivestrengthinit: No SDIO Drive strength
>>> init done for chip 4335 rev 1 pmurev 18
>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23              <---- error
>>> message
>>>
>>> I'm using yocto rootfs, seems rfkill is always enabled by default.
>>> I could try another rootfs without rfkill.
>>> But i don't think rfkill should block WiFi driver to work properly.
>>>
>>
>> I tried another rootfs without rfkill, met the same issue when doing
>> ifconfig wlan0 up, just like 'rfkill unblock wlan'.
>>
>> root@freescale ~$ mmc0: mmc_rescan_try_freq: trying to init card at 400000
>> Hz
>> mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>> mmc0: new high speed SDIO card at address 0001
>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>> brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
>> init done for chip 4335 rev 1 pmurev 18
>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>
>> root@freescale ~$
>> root@freescale ~$
>> root@freescale ~$ ifconfig -a
>> ......
>>
>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>            BROADCAST MULTICAST  MTU:1500  Metric:1
>>            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>            collisions:0 txqueuelen:1000
>>            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>
>> root@freescale ~$ ifconfig wlan0 up
>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>> brcmfmac: brcmf_add_if: ignore IF event
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>> root@freescale ~$
>> root@freescale ~$
>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
>> byte F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>> F1:@0x1001f=ff, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>> F1:@0x1001f=ff, Err: -110
>>
>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
>> byte F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>> F1:@0x1001f=ff, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>> F1:@0x1001f=ff, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>> F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>> F1:@0x1001f=ff, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>> F1:@0x1001f=ff, Err: -110
>>
>> I looked into a bit more about the error and found there's CMD timeout
>> on the bus during SDIO
>> command transfer.
>> ---------------------------------------
>> brcmutil: RxHdr:
>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> mmc0: starting CMD52 arg 92001400 flags 00000195
>> sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00010000
>> mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>> F1:@0x1000a=00, Err: -110
>> ------------------------------------------
>> I'm not sure how this happened, whether caused by host side or wifi driver
>> side.
>> But for the host, i tried this host driver with another WiFi
>> card(Atheros AR6103) with same kernel,
>> and it worked well. So the host driver seems more like ok to me.
>>
>> Since i'm not familar with the WiFi driver, i wonder if you could
>> provide suggestion
>> from WiFi driver layer to see what the issue could be.
>>
>> Below is the detailed log when run 'ifconfig wlan0 up'
>>
>> root@freescale ~$ ifconfig wlan0 up
>> brcmfmac: brcmf_netdev_open Enter, idx=0
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: TxHdr:
>> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00
>> /...............
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>
>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>> brcmutil: RxHdr:
>> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00              '........&..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: TxHdr:
>> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00
>> (...............
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmutil: RxHdr:
>> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00               ........2..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmutil: TxHdr:
>> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00
>> (...............
>> brcmutil: RxHdr:
>> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00              .........2..
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>> brcmfmac: brcmf_fws_notify_credit_map enter: credits 09:27:12:09:09:02
>> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>> brcmfmac: brcmf_add_if: ignore IF event
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmutil: RxHdr:
>> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00               ........3..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: TxHdr:
>> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00
>> (...............
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmutil: RxHdr:
>> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00               ........4..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmutil: TxHdr:
>> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00
>> (...............
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmutil: RxHdr:
>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmutil: TxHdr:
>> 00000000: 28 00 d7 ff 15 00 00 14 00 00 00 00 00 00 00 00
>> (...............
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmutil: RxHdr:
>> 00000000: 20 00 df ff 1a 00 00 0c 00 36 00 00               ........6..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>> brcmfmac: brcmf_config_dongle power save set to enabled
>> brcmfmac: brcmf_dongle_roam Internal Roaming = On
>
>
> It seem this is the last command being sent. Could you provide file contents
> in /sys/kernel/debug/brcmfmac/mmc*/
>
> Not sure if Yocto mounts debugfs on /sys/kernel/debug. Otherwise you can do:
>
> # mkdir /tmp/debugfs
> # mount -t debugfs none /tmp/debugfs
>

Please see below:
root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls
counters  forensics  fws_stats
root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls -l
total 0
-r--r--r-- 1 root root 0 Sep  6 23:21 counters
-r--r--r-- 1 root root 0 Sep  6 23:21 forensics
-r--r--r-- 1 root root 0 Sep  6 23:21 fws_stats
root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat counters
intrcount:    19
lastintrs:    0
pollcnt:      0
regfails:     0
tx_sderrs:    0
fcqueued:     0
rxrtx:        0
rx_toolong:   0
rxc_errors:   0
rx_hdrfail:   0
rx_badhdr:    0
rx_badseq:    0
fc_rcvd:      0
fc_xoff:      0
fc_xon:       0
rxglomfail:   0
rxglomframes: 0
rxglompkts:   0
f2rxhdrs:     36
f2rxdata:     3
f2txdata:     0
f1regdata:    42
tickcnt:      53
tx_ctlerrs:   0
tx_ctlpkts:   17
rx_ctlerrs:   0
rx_ctlpkts:   17
rx_readahead: 0
root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat forensics

RTE (USB-SDIO-CDC) 6.30.171.24.20 (B0 Station/P2P) on BCM4335 r1 @
37.4/161.3/161.3MHz
000000.011 sdpcmdcdc0: Broadcom SDPCMD CDC driver
000000.018 reclaim section 0: Returned 42772 bytes to the heap
000000.061 wl0: Broadcom BCM4335 802.11 Wireless Controller
6.30.171.24.20 (B0 Station/P2P)
000000.070 reclaim section 1: Returned 62128 bytes to the heap
000000.209 wl0: wlc_enable_probe_req: state down, deferring setting of
host flags
root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ring setting of
host flags
root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat fws_stats
header_pulls:      0
header_only_pkt:   0
tlv_parse_failed:  0
tlv_invalid_type:  0
mac_update_fails:  0
ps_update_fails:   0
if_update_fails:   0
pkt2bus:           0
generic_error:     0
rollback_success:  0
rollback_failed:   0
delayq_full:       0
supprq_full:       0
txs_indicate:      0
txs_discard:       0
txs_suppr_core:    0
txs_suppr_ps:      0
txs_tossed:        0
txs_host_tossed:   0
bus_flow_block:    0
fws_flow_block:    0
send_pkts:         BK:0 BE:0 VO:0 VI:0 BCMC:0
requested_sent:    BK:0 BE:0 VO:0 VI:0 BCMC:0
root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1#

Regards
Dong Aisheng

> Regards,
> Arend
>
>
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: TxHdr:
>> 00000000: 31 00 ce ff 16 00 00 14 00 00 00 00 00 00 00 00
>> 1...............
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter        <-- the driver loops
>> here by running this function
>> .................
>>
>>
>> Regards
>> Dong Aisheng
>>
>
>

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-05  2:51             ` Dong Aisheng
@ 2013-11-05  8:36               ` Arend van Spriel
  2013-11-05  8:57                 ` Dong Aisheng
  0 siblings, 1 reply; 17+ messages in thread
From: Arend van Spriel @ 2013-11-05  8:36 UTC (permalink / raw)
  To: Dong Aisheng; +Cc: linux-wireless, frankyl, brcm80211-dev-list

On 11/05/2013 03:51 AM, Dong Aisheng wrote:
> On Mon, Nov 4, 2013 at 5:44 PM, Arend van Spriel <arend@broadcom.com> wrote:
>> On 11/04/2013 09:13 AM, Dong Aisheng wrote:
>>>
>>> Hi Arend,
>>>
>>> On Mon, Nov 4, 2013 at 11:44 AM, Dong Aisheng <dongas86@gmail.com> wrote:
>>>>
>>>> Hi Arend,
>>>>
>>>> On Fri, Nov 1, 2013 at 9:25 PM, Arend van Spriel <arend@broadcom.com>
>>>> wrote:
>>>>>
>>>>> On 11/01/2013 01:21 PM, Dong Aisheng wrote:
>>>>>>
>>>>>>
>>>>>> Hi Arend,
>>>>>>
>>>>>> On Fri, Nov 1, 2013 at 6:35 PM, Arend van Spriel <arend@broadcom.com>
>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>> On 11/01/2013 07:22 AM, Dong Aisheng wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Hi ALL,
>>>>>>>>
>>>>>>>> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
>>>>>>>> The kernel i ran is latest from:
>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>>>>>>>>
>>>>>>>> The firmware is used is from:
>>>>>>>>
>>>>>>>>
>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>>>>>>>>
>>>>>>>> NVRAM file is got from the vendor which should work for the module.
>>>>>>>>
>>>>>>>> But i ran into the following issues, hope somebody can give me some
>>>>>>>> hints.
>>>>>>>>
>>>>>>>> First, i met error when module is auto loaded, but seems the driver
>>>>>>>> is
>>>>>>>> still loaded successfully since i found the new WiFi interface with
>>>>>>>> ifconfig.
>>>>>>>> But it can not work after run rfkill unblock wlan and a lot error
>>>>>>>> messages comes out.
>>>>>>>>
>>>>>>>> I'm wondering if this driver can support bcm4335 well, can anybody
>>>>>>>> provide some help?
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> I can try. I have used the bcm4335 with a SDIO3.0 controller on a x86
>>>>>>> PC.
>>>>>>> Looking at an issue right now, but your log does not show that so you
>>>>>>> have a
>>>>>>> different issue. Could you load the module with parameter
>>>>>>> 'debug=0x146'.
>>>>>>>
>>>>>>
>>>>>> Thanks for the help.
>>>>>> So that means the brcmfmac driver should support bcm4335 module well,
>>>>>> right?
>>>>>> The difference is that i'm using a ARM platform.
>>>>>> Below is log with 'debug=0x146'.
>>>>>> It only includes driver probe log.
>>>>>
>>>>>
>>>>>
>>>>> That log actually looks fine. Just not sure why software rfkill was
>>>>> enabled.
>>>>> Is that still the case? What distro is running on your platform?
>>>>>
>>>>
>>>> Do you  mean the error message during probe is also fine?
>>>> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>> mmc0: new high speed SDIO card at address 0001
>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84     <--- error message
>>>> brcmfmac: brcmf_sdio_chip_
>>>> drivestrengthinit: No SDIO Drive strength
>>>> init done for chip 4335 rev 1 pmurev 18
>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23              <---- error
>>>> message
>>>>
>>>> I'm using yocto rootfs, seems rfkill is always enabled by default.
>>>> I could try another rootfs without rfkill.
>>>> But i don't think rfkill should block WiFi driver to work properly.
>>>>
>>>
>>> I tried another rootfs without rfkill, met the same issue when doing
>>> ifconfig wlan0 up, just like 'rfkill unblock wlan'.
>>>
>>> root@freescale ~$ mmc0: mmc_rescan_try_freq: trying to init card at 400000
>>> Hz
>>> mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>> mmc0: new high speed SDIO card at address 0001
>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>>> brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
>>> init done for chip 4335 rev 1 pmurev 18
>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>
>>> root@freescale ~$
>>> root@freescale ~$
>>> root@freescale ~$ ifconfig -a
>>> ......
>>>
>>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>>             BROADCAST MULTICAST  MTU:1500  Metric:1
>>>             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>             collisions:0 txqueuelen:1000
>>>             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>
>>> root@freescale ~$ ifconfig wlan0 up
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>> brcmfmac: brcmf_add_if: ignore IF event
>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>
>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>> root@freescale ~$
>>> root@freescale ~$
>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
>>> byte F1:@0x1001f=01, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>> F1:@0x1001f=ff, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>> F1:@0x1001f=ff, Err: -110
>>>
>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
>>> byte F1:@0x1001f=01, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>> F1:@0x1001f=ff, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>> F1:@0x1001f=ff, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>> F1:@0x1001f=01, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>> F1:@0x1001f=ff, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>> F1:@0x1001f=ff, Err: -110
>>>
>>> I looked into a bit more about the error and found there's CMD timeout
>>> on the bus during SDIO
>>> command transfer.
>>> ---------------------------------------
>>> brcmutil: RxHdr:
>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> mmc0: starting CMD52 arg 92001400 flags 00000195
>>> sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00010000
>>> mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>> F1:@0x1000a=00, Err: -110
>>> ------------------------------------------
>>> I'm not sure how this happened, whether caused by host side or wifi driver
>>> side.
>>> But for the host, i tried this host driver with another WiFi
>>> card(Atheros AR6103) with same kernel,
>>> and it worked well. So the host driver seems more like ok to me.
>>>
>>> Since i'm not familar with the WiFi driver, i wonder if you could
>>> provide suggestion
>>> from WiFi driver layer to see what the issue could be.
>>>
>>> Below is the detailed log when run 'ifconfig wlan0 up'
>>>
>>> root@freescale ~$ ifconfig wlan0 up
>>> brcmfmac: brcmf_netdev_open Enter, idx=0
>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmutil: TxHdr:
>>> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00
>>> /...............
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdio_readframes Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>> brcmutil: RxHdr:
>>> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00              '........&..
>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmutil: TxHdr:
>>> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00
>>> (...............
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmutil: RxHdr:
>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdio_readframes Enter
>>> brcmutil: RxHdr:
>>> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00               ........2..
>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmutil: TxHdr:
>>> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00
>>> (...............
>>> brcmutil: RxHdr:
>>> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00              .........2..
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>> brcmfmac: brcmf_fws_notify_credit_map enter: credits 09:27:12:09:09:02
>>> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>> brcmfmac: brcmf_add_if: ignore IF event
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmutil: RxHdr:
>>> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00               ........3..
>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmutil: TxHdr:
>>> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00
>>> (...............
>>> brcmutil: RxHdr:
>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdio_readframes Enter
>>> brcmutil: RxHdr:
>>> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00               ........4..
>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmutil: TxHdr:
>>> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00
>>> (...............
>>> brcmutil: RxHdr:
>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdio_readframes Enter
>>> brcmutil: RxHdr:
>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdio_readframes Enter
>>> brcmutil: RxHdr:
>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmutil: TxHdr:
>>> 00000000: 28 00 d7 ff 15 00 00 14 00 00 00 00 00 00 00 00
>>> (...............
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmutil: RxHdr:
>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdio_readframes Enter
>>> brcmutil: RxHdr:
>>> 00000000: 20 00 df ff 1a 00 00 0c 00 36 00 00               ........6..
>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>> brcmfmac: brcmf_config_dongle power save set to enabled
>>> brcmfmac: brcmf_dongle_roam Internal Roaming = On
>>
>>
>> It seem this is the last command being sent. Could you provide file contents
>> in /sys/kernel/debug/brcmfmac/mmc*/
>>
>> Not sure if Yocto mounts debugfs on /sys/kernel/debug. Otherwise you can do:
>>
>> # mkdir /tmp/debugfs
>> # mount -t debugfs none /tmp/debugfs
>>
>
> Please see below:
> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls
> counters  forensics  fws_stats
> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls -l
> total 0
> -r--r--r-- 1 root root 0 Sep  6 23:21 counters
> -r--r--r-- 1 root root 0 Sep  6 23:21 forensics
> -r--r--r-- 1 root root 0 Sep  6 23:21 fws_stats
> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat counters
> intrcount:    19
> lastintrs:    0
> pollcnt:      0
> regfails:     0
> tx_sderrs:    0
> fcqueued:     0
> rxrtx:        0
> rx_toolong:   0
> rxc_errors:   0
> rx_hdrfail:   0
> rx_badhdr:    0
> rx_badseq:    0
> fc_rcvd:      0
> fc_xoff:      0
> fc_xon:       0
> rxglomfail:   0
> rxglomframes: 0
> rxglompkts:   0
> f2rxhdrs:     36
> f2rxdata:     3
> f2txdata:     0
> f1regdata:    42
> tickcnt:      53
> tx_ctlerrs:   0
> tx_ctlpkts:   17
> rx_ctlerrs:   0
> rx_ctlpkts:   17
> rx_readahead: 0
> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat forensics
>
> RTE (USB-SDIO-CDC) 6.30.171.24.20 (B0 Station/P2P) on BCM4335 r1 @
> 37.4/161.3/161.3MHz
> 000000.011 sdpcmdcdc0: Broadcom SDPCMD CDC driver
> 000000.018 reclaim section 0: Returned 42772 bytes to the heap
> 000000.061 wl0: Broadcom BCM4335 802.11 Wireless Controller
> 6.30.171.24.20 (B0 Station/P2P)
> 000000.070 reclaim section 1: Returned 62128 bytes to the heap
> 000000.209 wl0: wlc_enable_probe_req: state down, deferring setting of
> host flags
> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ring setting of
> host flags
> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat fws_stats
> header_pulls:      0
> header_only_pkt:   0
> tlv_parse_failed:  0
> tlv_invalid_type:  0
> mac_update_fails:  0
> ps_update_fails:   0
> if_update_fails:   0
> pkt2bus:           0
> generic_error:     0
> rollback_success:  0
> rollback_failed:   0
> delayq_full:       0
> supprq_full:       0
> txs_indicate:      0
> txs_discard:       0
> txs_suppr_core:    0
> txs_suppr_ps:      0
> txs_tossed:        0
> txs_host_tossed:   0
> bus_flow_block:    0
> fws_flow_block:    0
> send_pkts:         BK:0 BE:0 VO:0 VI:0 BCMC:0
> requested_sent:    BK:0 BE:0 VO:0 VI:0 BCMC:0
> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1#

Nothing exciting there either. Let's take a step back. The rfkill seems 
an issue, but I first would like to know if you can get connectivity. 
Does the 'ifconfig wlan0 up' complete at all and is it successful.

As you noticed during the up sequence there is a timeout. I would like 
to know what command that is. Could you run it again with debug=1546?

Gr. AvS

> Regards
> Dong Aisheng
>
>> Regards,
>> Arend
>>
>>
>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmutil: RxHdr:
>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmutil: TxHdr:
>>> 00000000: 31 00 ce ff 16 00 00 14 00 00 00 00 00 00 00 00
>>> 1...............
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter        <-- the driver loops
>>> here by running this function
>>> .................
>>>
>>>
>>> Regards
>>> Dong Aisheng
>>>
>>
>>
>



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-05  8:36               ` Arend van Spriel
@ 2013-11-05  8:57                 ` Dong Aisheng
  2013-11-05  9:26                   ` Dong Aisheng
  0 siblings, 1 reply; 17+ messages in thread
From: Dong Aisheng @ 2013-11-05  8:57 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: linux-wireless, frankyl, brcm80211-dev-list

On Tue, Nov 5, 2013 at 4:36 PM, Arend van Spriel <arend@broadcom.com> wrote:
> On 11/05/2013 03:51 AM, Dong Aisheng wrote:
>>
>> On Mon, Nov 4, 2013 at 5:44 PM, Arend van Spriel <arend@broadcom.com>
>> wrote:
>>>
>>> On 11/04/2013 09:13 AM, Dong Aisheng wrote:
>>>>
>>>>
>>>> Hi Arend,
>>>>
>>>> On Mon, Nov 4, 2013 at 11:44 AM, Dong Aisheng <dongas86@gmail.com>
>>>> wrote:
>>>>>
>>>>>
>>>>> Hi Arend,
>>>>>
>>>>> On Fri, Nov 1, 2013 at 9:25 PM, Arend van Spriel <arend@broadcom.com>
>>>>> wrote:
>>>>>>
>>>>>>
>>>>>> On 11/01/2013 01:21 PM, Dong Aisheng wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Hi Arend,
>>>>>>>
>>>>>>> On Fri, Nov 1, 2013 at 6:35 PM, Arend van Spriel <arend@broadcom.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 11/01/2013 07:22 AM, Dong Aisheng wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hi ALL,
>>>>>>>>>
>>>>>>>>> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
>>>>>>>>> The kernel i ran is latest from:
>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>>>>>>>>>
>>>>>>>>> The firmware is used is from:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>>>>>>>>>
>>>>>>>>> NVRAM file is got from the vendor which should work for the module.
>>>>>>>>>
>>>>>>>>> But i ran into the following issues, hope somebody can give me some
>>>>>>>>> hints.
>>>>>>>>>
>>>>>>>>> First, i met error when module is auto loaded, but seems the driver
>>>>>>>>> is
>>>>>>>>> still loaded successfully since i found the new WiFi interface with
>>>>>>>>> ifconfig.
>>>>>>>>> But it can not work after run rfkill unblock wlan and a lot error
>>>>>>>>> messages comes out.
>>>>>>>>>
>>>>>>>>> I'm wondering if this driver can support bcm4335 well, can anybody
>>>>>>>>> provide some help?
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> I can try. I have used the bcm4335 with a SDIO3.0 controller on a
>>>>>>>> x86
>>>>>>>> PC.
>>>>>>>> Looking at an issue right now, but your log does not show that so
>>>>>>>> you
>>>>>>>> have a
>>>>>>>> different issue. Could you load the module with parameter
>>>>>>>> 'debug=0x146'.
>>>>>>>>
>>>>>>>
>>>>>>> Thanks for the help.
>>>>>>> So that means the brcmfmac driver should support bcm4335 module well,
>>>>>>> right?
>>>>>>> The difference is that i'm using a ARM platform.
>>>>>>> Below is log with 'debug=0x146'.
>>>>>>> It only includes driver probe log.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> That log actually looks fine. Just not sure why software rfkill was
>>>>>> enabled.
>>>>>> Is that still the case? What distro is running on your platform?
>>>>>>
>>>>>
>>>>> Do you  mean the error message during probe is also fine?
>>>>> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>> mmc0: new high speed SDIO card at address 0001
>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>> 0xffffffac
>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>> 0xffffffac
>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>> 0xffffffac
>>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84     <--- error
>>>>> message
>>>>> brcmfmac: brcmf_sdio_chip_
>>>>> drivestrengthinit: No SDIO Drive strength
>>>>> init done for chip 4335 rev 1 pmurev 18
>>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23              <---- error
>>>>> message
>>>>>
>>>>> I'm using yocto rootfs, seems rfkill is always enabled by default.
>>>>> I could try another rootfs without rfkill.
>>>>> But i don't think rfkill should block WiFi driver to work properly.
>>>>>
>>>>
>>>> I tried another rootfs without rfkill, met the same issue when doing
>>>> ifconfig wlan0 up, just like 'rfkill unblock wlan'.
>>>>
>>>> root@freescale ~$ mmc0: mmc_rescan_try_freq: trying to init card at
>>>> 400000
>>>> Hz
>>>> mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>> mmc0: new high speed SDIO card at address 0001
>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>>>> brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
>>>> init done for chip 4335 rev 1 pmurev 18
>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>
>>>> root@freescale ~$
>>>> root@freescale ~$
>>>> root@freescale ~$ ifconfig -a
>>>> ......
>>>>
>>>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>>>             BROADCAST MULTICAST  MTU:1500  Metric:1
>>>>             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>>             collisions:0 txqueuelen:1000
>>>>             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>>
>>>> root@freescale ~$ ifconfig wlan0 up
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>
>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>> root@freescale ~$
>>>> root@freescale ~$
>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
>>>> byte F1:@0x1001f=01, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>> F1:@0x1001f=ff, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>> F1:@0x1001f=ff, Err: -110
>>>>
>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
>>>> byte F1:@0x1001f=01, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>> F1:@0x1001f=ff, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>> F1:@0x1001f=ff, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>> F1:@0x1001f=01, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>> F1:@0x1001f=ff, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>> F1:@0x1001f=ff, Err: -110
>>>>
>>>> I looked into a bit more about the error and found there's CMD timeout
>>>> on the bus during SDIO
>>>> command transfer.
>>>> ---------------------------------------
>>>> brcmutil: RxHdr:
>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> mmc0: starting CMD52 arg 92001400 flags 00000195
>>>> sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00010000
>>>> mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>> F1:@0x1000a=00, Err: -110
>>>> ------------------------------------------
>>>> I'm not sure how this happened, whether caused by host side or wifi
>>>> driver
>>>> side.
>>>> But for the host, i tried this host driver with another WiFi
>>>> card(Atheros AR6103) with same kernel,
>>>> and it worked well. So the host driver seems more like ok to me.
>>>>
>>>> Since i'm not familar with the WiFi driver, i wonder if you could
>>>> provide suggestion
>>>> from WiFi driver layer to see what the issue could be.
>>>>
>>>> Below is the detailed log when run 'ifconfig wlan0 up'
>>>>
>>>> root@freescale ~$ ifconfig wlan0 up
>>>> brcmfmac: brcmf_netdev_open Enter, idx=0
>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmutil: TxHdr:
>>>> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00
>>>> /...............
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>> brcmutil: RxHdr:
>>>> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00              '........&..
>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmutil: TxHdr:
>>>> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00
>>>> (...............
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00               ........2..
>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmutil: TxHdr:
>>>> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00
>>>> (...............
>>>> brcmutil: RxHdr:
>>>> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00              .........2..
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>> brcmfmac: brcmf_fws_notify_credit_map enter: credits 09:27:12:09:09:02
>>>> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00               ........3..
>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmutil: TxHdr:
>>>> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00
>>>> (...............
>>>> brcmutil: RxHdr:
>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00               ........4..
>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmutil: TxHdr:
>>>> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00
>>>> (...............
>>>> brcmutil: RxHdr:
>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmutil: TxHdr:
>>>> 00000000: 28 00 d7 ff 15 00 00 14 00 00 00 00 00 00 00 00
>>>> (...............
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 20 00 df ff 1a 00 00 0c 00 36 00 00               ........6..
>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> brcmfmac: brcmf_config_dongle power save set to enabled
>>>> brcmfmac: brcmf_dongle_roam Internal Roaming = On
>>>
>>>
>>>
>>> It seem this is the last command being sent. Could you provide file
>>> contents
>>> in /sys/kernel/debug/brcmfmac/mmc*/
>>>
>>> Not sure if Yocto mounts debugfs on /sys/kernel/debug. Otherwise you can
>>> do:
>>>
>>> # mkdir /tmp/debugfs
>>> # mount -t debugfs none /tmp/debugfs
>>>
>>
>> Please see below:
>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls
>> counters  forensics  fws_stats
>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls -l
>> total 0
>> -r--r--r-- 1 root root 0 Sep  6 23:21 counters
>> -r--r--r-- 1 root root 0 Sep  6 23:21 forensics
>> -r--r--r-- 1 root root 0 Sep  6 23:21 fws_stats
>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat counters
>> intrcount:    19
>> lastintrs:    0
>> pollcnt:      0
>> regfails:     0
>> tx_sderrs:    0
>> fcqueued:     0
>> rxrtx:        0
>> rx_toolong:   0
>> rxc_errors:   0
>> rx_hdrfail:   0
>> rx_badhdr:    0
>> rx_badseq:    0
>> fc_rcvd:      0
>> fc_xoff:      0
>> fc_xon:       0
>> rxglomfail:   0
>> rxglomframes: 0
>> rxglompkts:   0
>> f2rxhdrs:     36
>> f2rxdata:     3
>> f2txdata:     0
>> f1regdata:    42
>> tickcnt:      53
>> tx_ctlerrs:   0
>> tx_ctlpkts:   17
>> rx_ctlerrs:   0
>> rx_ctlpkts:   17
>> rx_readahead: 0
>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat forensics
>>
>> RTE (USB-SDIO-CDC) 6.30.171.24.20 (B0 Station/P2P) on BCM4335 r1 @
>> 37.4/161.3/161.3MHz
>> 000000.011 sdpcmdcdc0: Broadcom SDPCMD CDC driver
>> 000000.018 reclaim section 0: Returned 42772 bytes to the heap
>> 000000.061 wl0: Broadcom BCM4335 802.11 Wireless Controller
>> 6.30.171.24.20 (B0 Station/P2P)
>> 000000.070 reclaim section 1: Returned 62128 bytes to the heap
>> 000000.209 wl0: wlc_enable_probe_req: state down, deferring setting of
>> host flags
>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ring setting of
>> host flags
>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat fws_stats
>> header_pulls:      0
>> header_only_pkt:   0
>> tlv_parse_failed:  0
>> tlv_invalid_type:  0
>> mac_update_fails:  0
>> ps_update_fails:   0
>> if_update_fails:   0
>> pkt2bus:           0
>> generic_error:     0
>> rollback_success:  0
>> rollback_failed:   0
>> delayq_full:       0
>> supprq_full:       0
>> txs_indicate:      0
>> txs_discard:       0
>> txs_suppr_core:    0
>> txs_suppr_ps:      0
>> txs_tossed:        0
>> txs_host_tossed:   0
>> bus_flow_block:    0
>> fws_flow_block:    0
>> send_pkts:         BK:0 BE:0 VO:0 VI:0 BCMC:0
>> requested_sent:    BK:0 BE:0 VO:0 VI:0 BCMC:0
>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1#
>
>
> Nothing exciting there either. Let's take a step back. The rfkill seems an
> issue, but I first would like to know if you can get connectivity. Does the
> 'ifconfig wlan0 up' complete at all and is it successful.
>

The second rootfs i tried does not have rfkill.
But shows the similar issue with 'ifconfig wlan0 up'.

> As you noticed during the up sequence there is a timeout. I would like to
> know what command that is. Could you run it again with debug=1546?
>

Will run the test now.
Thanks for the help.

Regards
Dong Aisheng

> Gr. AvS
>
>
>> Regards
>> Dong Aisheng
>>
>>> Regards,
>>> Arend
>>>
>>>
>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmutil: TxHdr:
>>>> 00000000: 31 00 ce ff 16 00 00 14 00 00 00 00 00 00 00 00
>>>> 1...............
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter        <-- the driver loops
>>>> here by running this function
>>>> .................
>>>>
>>>>
>>>> Regards
>>>> Dong Aisheng
>>>>
>>>
>>>
>>
>
>

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-05  8:57                 ` Dong Aisheng
@ 2013-11-05  9:26                   ` Dong Aisheng
  2013-11-06  8:30                     ` Arend van Spriel
  0 siblings, 1 reply; 17+ messages in thread
From: Dong Aisheng @ 2013-11-05  9:26 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: linux-wireless, frankyl, brcm80211-dev-list

On Tue, Nov 5, 2013 at 4:57 PM, Dong Aisheng <dongas86@gmail.com> wrote:
> On Tue, Nov 5, 2013 at 4:36 PM, Arend van Spriel <arend@broadcom.com> wrote:
>> On 11/05/2013 03:51 AM, Dong Aisheng wrote:
>>>
>>> On Mon, Nov 4, 2013 at 5:44 PM, Arend van Spriel <arend@broadcom.com>
>>> wrote:
>>>>
>>>> On 11/04/2013 09:13 AM, Dong Aisheng wrote:
>>>>>
>>>>>
>>>>> Hi Arend,
>>>>>
>>>>> On Mon, Nov 4, 2013 at 11:44 AM, Dong Aisheng <dongas86@gmail.com>
>>>>> wrote:
>>>>>>
>>>>>>
>>>>>> Hi Arend,
>>>>>>
>>>>>> On Fri, Nov 1, 2013 at 9:25 PM, Arend van Spriel <arend@broadcom.com>
>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>> On 11/01/2013 01:21 PM, Dong Aisheng wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Hi Arend,
>>>>>>>>
>>>>>>>> On Fri, Nov 1, 2013 at 6:35 PM, Arend van Spriel <arend@broadcom.com>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 11/01/2013 07:22 AM, Dong Aisheng wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hi ALL,
>>>>>>>>>>
>>>>>>>>>> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
>>>>>>>>>> The kernel i ran is latest from:
>>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>>>>>>>>>>
>>>>>>>>>> The firmware is used is from:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>>>>>>>>>>
>>>>>>>>>> NVRAM file is got from the vendor which should work for the module.
>>>>>>>>>>
>>>>>>>>>> But i ran into the following issues, hope somebody can give me some
>>>>>>>>>> hints.
>>>>>>>>>>
>>>>>>>>>> First, i met error when module is auto loaded, but seems the driver
>>>>>>>>>> is
>>>>>>>>>> still loaded successfully since i found the new WiFi interface with
>>>>>>>>>> ifconfig.
>>>>>>>>>> But it can not work after run rfkill unblock wlan and a lot error
>>>>>>>>>> messages comes out.
>>>>>>>>>>
>>>>>>>>>> I'm wondering if this driver can support bcm4335 well, can anybody
>>>>>>>>>> provide some help?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I can try. I have used the bcm4335 with a SDIO3.0 controller on a
>>>>>>>>> x86
>>>>>>>>> PC.
>>>>>>>>> Looking at an issue right now, but your log does not show that so
>>>>>>>>> you
>>>>>>>>> have a
>>>>>>>>> different issue. Could you load the module with parameter
>>>>>>>>> 'debug=0x146'.
>>>>>>>>>
>>>>>>>>
>>>>>>>> Thanks for the help.
>>>>>>>> So that means the brcmfmac driver should support bcm4335 module well,
>>>>>>>> right?
>>>>>>>> The difference is that i'm using a ARM platform.
>>>>>>>> Below is log with 'debug=0x146'.
>>>>>>>> It only includes driver probe log.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> That log actually looks fine. Just not sure why software rfkill was
>>>>>>> enabled.
>>>>>>> Is that still the case? What distro is running on your platform?
>>>>>>>
>>>>>>
>>>>>> Do you  mean the error message during probe is also fine?
>>>>>> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>>> mmc0: new high speed SDIO card at address 0001
>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>> 0xffffffac
>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>> 0xffffffac
>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>> 0xffffffac
>>>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84     <--- error
>>>>>> message
>>>>>> brcmfmac: brcmf_sdio_chip_
>>>>>> drivestrengthinit: No SDIO Drive strength
>>>>>> init done for chip 4335 rev 1 pmurev 18
>>>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23              <---- error
>>>>>> message
>>>>>>
>>>>>> I'm using yocto rootfs, seems rfkill is always enabled by default.
>>>>>> I could try another rootfs without rfkill.
>>>>>> But i don't think rfkill should block WiFi driver to work properly.
>>>>>>
>>>>>
>>>>> I tried another rootfs without rfkill, met the same issue when doing
>>>>> ifconfig wlan0 up, just like 'rfkill unblock wlan'.
>>>>>
>>>>> root@freescale ~$ mmc0: mmc_rescan_try_freq: trying to init card at
>>>>> 400000
>>>>> Hz
>>>>> mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>> mmc0: new high speed SDIO card at address 0001
>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>>>>> brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
>>>>> init done for chip 4335 rev 1 pmurev 18
>>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>>
>>>>> root@freescale ~$
>>>>> root@freescale ~$
>>>>> root@freescale ~$ ifconfig -a
>>>>> ......
>>>>>
>>>>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>>>>             BROADCAST MULTICAST  MTU:1500  Metric:1
>>>>>             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>>             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>>>             collisions:0 txqueuelen:1000
>>>>>             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>>>
>>>>> root@freescale ~$ ifconfig wlan0 up
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>>
>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>> root@freescale ~$
>>>>> root@freescale ~$
>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
>>>>> byte F1:@0x1001f=01, Err: -110
>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>> F1:@0x1001f=ff, Err: -110
>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>> F1:@0x1001f=ff, Err: -110
>>>>>
>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
>>>>> byte F1:@0x1001f=01, Err: -110
>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>> F1:@0x1001f=ff, Err: -110
>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>> F1:@0x1001f=ff, Err: -110
>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>> F1:@0x1001f=01, Err: -110
>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>> F1:@0x1001f=ff, Err: -110
>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>> F1:@0x1001f=ff, Err: -110
>>>>>
>>>>> I looked into a bit more about the error and found there's CMD timeout
>>>>> on the bus during SDIO
>>>>> command transfer.
>>>>> ---------------------------------------
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> mmc0: starting CMD52 arg 92001400 flags 00000195
>>>>> sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00010000
>>>>> mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>> F1:@0x1000a=00, Err: -110
>>>>> ------------------------------------------
>>>>> I'm not sure how this happened, whether caused by host side or wifi
>>>>> driver
>>>>> side.
>>>>> But for the host, i tried this host driver with another WiFi
>>>>> card(Atheros AR6103) with same kernel,
>>>>> and it worked well. So the host driver seems more like ok to me.
>>>>>
>>>>> Since i'm not familar with the WiFi driver, i wonder if you could
>>>>> provide suggestion
>>>>> from WiFi driver layer to see what the issue could be.
>>>>>
>>>>> Below is the detailed log when run 'ifconfig wlan0 up'
>>>>>
>>>>> root@freescale ~$ ifconfig wlan0 up
>>>>> brcmfmac: brcmf_netdev_open Enter, idx=0
>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmutil: TxHdr:
>>>>> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00
>>>>> /...............
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00              '........&..
>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmutil: TxHdr:
>>>>> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00
>>>>> (...............
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00               ........2..
>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmutil: TxHdr:
>>>>> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00
>>>>> (...............
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00              .........2..
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>> brcmfmac: brcmf_fws_notify_credit_map enter: credits 09:27:12:09:09:02
>>>>> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00               ........3..
>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmutil: TxHdr:
>>>>> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00
>>>>> (...............
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00               ........4..
>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmutil: TxHdr:
>>>>> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00
>>>>> (...............
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmutil: TxHdr:
>>>>> 00000000: 28 00 d7 ff 15 00 00 14 00 00 00 00 00 00 00 00
>>>>> (...............
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 20 00 df ff 1a 00 00 0c 00 36 00 00               ........6..
>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>> brcmfmac: brcmf_config_dongle power save set to enabled
>>>>> brcmfmac: brcmf_dongle_roam Internal Roaming = On
>>>>
>>>>
>>>>
>>>> It seem this is the last command being sent. Could you provide file
>>>> contents
>>>> in /sys/kernel/debug/brcmfmac/mmc*/
>>>>
>>>> Not sure if Yocto mounts debugfs on /sys/kernel/debug. Otherwise you can
>>>> do:
>>>>
>>>> # mkdir /tmp/debugfs
>>>> # mount -t debugfs none /tmp/debugfs
>>>>
>>>
>>> Please see below:
>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls
>>> counters  forensics  fws_stats
>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls -l
>>> total 0
>>> -r--r--r-- 1 root root 0 Sep  6 23:21 counters
>>> -r--r--r-- 1 root root 0 Sep  6 23:21 forensics
>>> -r--r--r-- 1 root root 0 Sep  6 23:21 fws_stats
>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat counters
>>> intrcount:    19
>>> lastintrs:    0
>>> pollcnt:      0
>>> regfails:     0
>>> tx_sderrs:    0
>>> fcqueued:     0
>>> rxrtx:        0
>>> rx_toolong:   0
>>> rxc_errors:   0
>>> rx_hdrfail:   0
>>> rx_badhdr:    0
>>> rx_badseq:    0
>>> fc_rcvd:      0
>>> fc_xoff:      0
>>> fc_xon:       0
>>> rxglomfail:   0
>>> rxglomframes: 0
>>> rxglompkts:   0
>>> f2rxhdrs:     36
>>> f2rxdata:     3
>>> f2txdata:     0
>>> f1regdata:    42
>>> tickcnt:      53
>>> tx_ctlerrs:   0
>>> tx_ctlpkts:   17
>>> rx_ctlerrs:   0
>>> rx_ctlpkts:   17
>>> rx_readahead: 0
>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat forensics
>>>
>>> RTE (USB-SDIO-CDC) 6.30.171.24.20 (B0 Station/P2P) on BCM4335 r1 @
>>> 37.4/161.3/161.3MHz
>>> 000000.011 sdpcmdcdc0: Broadcom SDPCMD CDC driver
>>> 000000.018 reclaim section 0: Returned 42772 bytes to the heap
>>> 000000.061 wl0: Broadcom BCM4335 802.11 Wireless Controller
>>> 6.30.171.24.20 (B0 Station/P2P)
>>> 000000.070 reclaim section 1: Returned 62128 bytes to the heap
>>> 000000.209 wl0: wlc_enable_probe_req: state down, deferring setting of
>>> host flags
>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ring setting of
>>> host flags
>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat fws_stats
>>> header_pulls:      0
>>> header_only_pkt:   0
>>> tlv_parse_failed:  0
>>> tlv_invalid_type:  0
>>> mac_update_fails:  0
>>> ps_update_fails:   0
>>> if_update_fails:   0
>>> pkt2bus:           0
>>> generic_error:     0
>>> rollback_success:  0
>>> rollback_failed:   0
>>> delayq_full:       0
>>> supprq_full:       0
>>> txs_indicate:      0
>>> txs_discard:       0
>>> txs_suppr_core:    0
>>> txs_suppr_ps:      0
>>> txs_tossed:        0
>>> txs_host_tossed:   0
>>> bus_flow_block:    0
>>> fws_flow_block:    0
>>> send_pkts:         BK:0 BE:0 VO:0 VI:0 BCMC:0
>>> requested_sent:    BK:0 BE:0 VO:0 VI:0 BCMC:0
>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1#
>>
>>
>> Nothing exciting there either. Let's take a step back. The rfkill seems an
>> issue, but I first would like to know if you can get connectivity. Does the
>> 'ifconfig wlan0 up' complete at all and is it successful.
>>
>
> The second rootfs i tried does not have rfkill.
> But shows the similar issue with 'ifconfig wlan0 up'.
>
>> As you noticed during the up sequence there is a timeout. I would like to
>> know what command that is. Could you run it again with debug=1546?
>>
>
> Will run the test now.
> Thanks for the help.
>

Please see blow log:
Note: there's no rfkill in this rootfs.

root@freescale ~$ ifconfgi\b\big wlan0
brcmfmac: brcmf_netdev_get_stats Enter, idx=0
wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@freescale ~$ ifconfig wlan0 up
brcmfmac: brcmf_netdev_open Enter, idx=0
brcmfmac: brcmf_sdbrcm_bus_txctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmutil: TxHdr:
00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00  /...............
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl Enter

<--------- I noticed a few seconds stall here

brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdio_readframes Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
brcmfmac: brcmf_fil_cmd_data: Failed err=-110
brcmfmac: brcmf_fil_iovar_data_get name=toe_ol, len=4
brcmutil: data
00000000: 28 aa 49 80                                      (.I.

brcmutil: RxHdr:
00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00              '........&..
brcmfmac: brcmf_sdbrcm_read_control Enter
brcmfmac: brcmf_fil_cmd_int_set cmd=2, value=0
brcmfmac: brcmf_sdbrcm_bus_txctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmutil: TxHdr:
00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00  (...............
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmutil: RxHdr:
00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdio_readframes Enter
brcmutil: RxHdr:
00000000: 20 00 df ff 13 00 00 0c 00 32 00 00               ........2..
brcmfmac: brcmf_sdbrcm_read_control Enter

brcmfmac: brcmf_fil_cmd_int_set cmd=185, value=40
brcmfmac: brcmf_sdbrcm_bus_txctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmutil: TxHdr:
00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00  (...............
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
brcmutil: RxHdr:
00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00              .........2..
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_fweh_event_worker event FIFO_CREDIT_MAP (74) ifidx 0
bsscfg 0 addr 80:80:80:80:80:80
brcmfmac: brcmf_fweh_event_worker   version 2 flags 24 status 0 reason 0
brcmutil: event payload, len=6
00000000: 09 27 12 09 09 02                                .'....
brcmfmac: brcmf_fws_notify_credit_map enter: credits 09:27:12:09:09:02
brcmfmac: brcmf_fweh_event_worker event IF (54) ifidx 0 bsscfg 0 addr
00:90:4c:c5:12:38
brcmfmac: brcmf_fweh_event_worker   version 2 flags 0 status 0 reason 0
brcmutil: event payload, len=5
00000000: 00 01 00 00 00                                   .....
brcmfmac: brcmf_fweh_handle_if_event action: 1 idx: 0 bsscfg: 0 flags: 0 role: 0
brcmfmac: brcmf_fweh_handle_if_event adding wl0 (00:90:4c:c5:12:38)
brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
brcmfmac: brcmf_add_if: ignore IF event
brcmutil: RxHdr:
00000000: 20 00 df ff 17 00 00 0c 00 33 00 00               ........3..
brcmfmac: brcmf_sdbrcm_read_control Enter
brcmfmac: brcmf_fil_cmd_int_set cmd=187, value=40
brcmfmac: brcmf_sdbrcm_bus_txctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmutil: RxHdr:
00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmutil: TxHdr:
00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00  (...............
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdio_readframes Enter
brcmutil: RxHdr:
00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
.......
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdio_readframes Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
brcmfmac: brcmf_fil_cmd_data: Failed err=-110
brcmfmac: brcmf_dongle_scantime: Scan unassoc time error (-110)
brcmutil: RxHdr:
00000000: 20 00 df ff 18 00 00 0c 00 34 00 00               ........4..
brcmfmac: brcmf_sdbrcm_read_control Enter
brcmfmac: brcmf_fil_cmd_int_set cmd=86, value=2
brcmfmac: brcmf_sdbrcm_bus_txctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmutil: RxHdr:
00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmutil: TxHdr:
00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00  (...............
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
.................................
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdio_readframes Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
brcmfmac: brcmf_fil_cmd_data: Failed err=-110
brcmfmac: brcmf_netdev_open: failed to bring up cfg80211
brcmutil: RxHdr:
00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
brcmfmac: brcmf_sdbrcm_read_control Enter
ifconfig: SIOCSIFFLAGS: Operationbrcmfmac: brcmf_sdbrcm_bus_sleep Enter
 not permitted
root@freescale ~$ brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110

brcmfmac: brcmf_sdbrcm_rxfail: abort command, terminate frame, send NAK
root@freescale ~$
root@freescale ~$ brcmfmac: brcmf_sdioh_request_word: Failed to write
word, Err: 0xffffff92

root@freescale ~$
root@freescale ~$
root@freescale ~$ brcmfmac: brcmf_sdioh_request_word: Failed to write
word, Err: 0xffffff92

root@freescale ~$ brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
brcmfmac: brcmf_sdio_readframes Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmutil: RxHdr:
00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
F1:@0x1001f=01, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
F1:@0x1001f=01, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
F1:@0x1001f=01, Err: -110
brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
brcmfmac: brcmf_sdbrcm_isr Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_dpc Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_kso_control Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter
brcmfmac: brcmf_sdbrcm_bus_sleep Enter

Regards
Dong Aisheng

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-05  9:26                   ` Dong Aisheng
@ 2013-11-06  8:30                     ` Arend van Spriel
  2013-11-06  9:57                       ` Arend van Spriel
  2013-11-06 10:39                       ` Dong Aisheng
  0 siblings, 2 replies; 17+ messages in thread
From: Arend van Spriel @ 2013-11-06  8:30 UTC (permalink / raw)
  To: Dong Aisheng; +Cc: linux-wireless, frankyl, brcm80211-dev-list

On 11/05/2013 10:26 AM, Dong Aisheng wrote:
> On Tue, Nov 5, 2013 at 4:57 PM, Dong Aisheng <dongas86@gmail.com> wrote:
>> On Tue, Nov 5, 2013 at 4:36 PM, Arend van Spriel <arend@broadcom.com> wrote:
>>> On 11/05/2013 03:51 AM, Dong Aisheng wrote:
>>>>
>>>> On Mon, Nov 4, 2013 at 5:44 PM, Arend van Spriel <arend@broadcom.com>
>>>> wrote:
>>>>>
>>>>> On 11/04/2013 09:13 AM, Dong Aisheng wrote:
>>>>>>
>>>>>>
>>>>>> Hi Arend,
>>>>>>
>>>>>> On Mon, Nov 4, 2013 at 11:44 AM, Dong Aisheng <dongas86@gmail.com>
>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>> Hi Arend,
>>>>>>>
>>>>>>> On Fri, Nov 1, 2013 at 9:25 PM, Arend van Spriel <arend@broadcom.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>> On 11/01/2013 01:21 PM, Dong Aisheng wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hi Arend,
>>>>>>>>>
>>>>>>>>> On Fri, Nov 1, 2013 at 6:35 PM, Arend van Spriel <arend@broadcom.com>
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 11/01/2013 07:22 AM, Dong Aisheng wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Hi ALL,
>>>>>>>>>>>
>>>>>>>>>>> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
>>>>>>>>>>> The kernel i ran is latest from:
>>>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>>>>>>>>>>>
>>>>>>>>>>> The firmware is used is from:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>>>>>>>>>>>
>>>>>>>>>>> NVRAM file is got from the vendor which should work for the module.
>>>>>>>>>>>
>>>>>>>>>>> But i ran into the following issues, hope somebody can give me some
>>>>>>>>>>> hints.
>>>>>>>>>>>
>>>>>>>>>>> First, i met error when module is auto loaded, but seems the driver
>>>>>>>>>>> is
>>>>>>>>>>> still loaded successfully since i found the new WiFi interface with
>>>>>>>>>>> ifconfig.
>>>>>>>>>>> But it can not work after run rfkill unblock wlan and a lot error
>>>>>>>>>>> messages comes out.
>>>>>>>>>>>
>>>>>>>>>>> I'm wondering if this driver can support bcm4335 well, can anybody
>>>>>>>>>>> provide some help?
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I can try. I have used the bcm4335 with a SDIO3.0 controller on a
>>>>>>>>>> x86
>>>>>>>>>> PC.
>>>>>>>>>> Looking at an issue right now, but your log does not show that so
>>>>>>>>>> you
>>>>>>>>>> have a
>>>>>>>>>> different issue. Could you load the module with parameter
>>>>>>>>>> 'debug=0x146'.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks for the help.
>>>>>>>>> So that means the brcmfmac driver should support bcm4335 module well,
>>>>>>>>> right?
>>>>>>>>> The difference is that i'm using a ARM platform.
>>>>>>>>> Below is log with 'debug=0x146'.
>>>>>>>>> It only includes driver probe log.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> That log actually looks fine. Just not sure why software rfkill was
>>>>>>>> enabled.
>>>>>>>> Is that still the case? What distro is running on your platform?
>>>>>>>>
>>>>>>>
>>>>>>> Do you  mean the error message during probe is also fine?
>>>>>>> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>>>> mmc0: new high speed SDIO card at address 0001
>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>> 0xffffffac
>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>> 0xffffffac
>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>> 0xffffffac
>>>>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84     <--- error
>>>>>>> message
>>>>>>> brcmfmac: brcmf_sdio_chip_
>>>>>>> drivestrengthinit: No SDIO Drive strength
>>>>>>> init done for chip 4335 rev 1 pmurev 18
>>>>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>>>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23              <---- error
>>>>>>> message
>>>>>>>
>>>>>>> I'm using yocto rootfs, seems rfkill is always enabled by default.
>>>>>>> I could try another rootfs without rfkill.
>>>>>>> But i don't think rfkill should block WiFi driver to work properly.
>>>>>>>
>>>>>>
>>>>>> I tried another rootfs without rfkill, met the same issue when doing
>>>>>> ifconfig wlan0 up, just like 'rfkill unblock wlan'.
>>>>>>
>>>>>> root@freescale ~$ mmc0: mmc_rescan_try_freq: trying to init card at
>>>>>> 400000
>>>>>> Hz
>>>>>> mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>>> mmc0: new high speed SDIO card at address 0001
>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
>>>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>>>>>> brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
>>>>>> init done for chip 4335 rev 1 pmurev 18
>>>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>>>
>>>>>> root@freescale ~$
>>>>>> root@freescale ~$
>>>>>> root@freescale ~$ ifconfig -a
>>>>>> ......
>>>>>>
>>>>>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>>>>>              BROADCAST MULTICAST  MTU:1500  Metric:1
>>>>>>              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>>>              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>>>>              collisions:0 txqueuelen:1000
>>>>>>              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>>>>
>>>>>> root@freescale ~$ ifconfig wlan0 up
>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>>>
>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>>> root@freescale ~$
>>>>>> root@freescale ~$
>>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
>>>>>> byte F1:@0x1001f=01, Err: -110
>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>
>>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
>>>>>> byte F1:@0x1001f=01, Err: -110
>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>>> F1:@0x1001f=01, Err: -110
>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>
>>>>>> I looked into a bit more about the error and found there's CMD timeout
>>>>>> on the bus during SDIO
>>>>>> command transfer.
>>>>>> ---------------------------------------
>>>>>> brcmutil: RxHdr:
>>>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> mmc0: starting CMD52 arg 92001400 flags 00000195
>>>>>> sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00010000
>>>>>> mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>>> F1:@0x1000a=00, Err: -110
>>>>>> ------------------------------------------
>>>>>> I'm not sure how this happened, whether caused by host side or wifi
>>>>>> driver
>>>>>> side.
>>>>>> But for the host, i tried this host driver with another WiFi
>>>>>> card(Atheros AR6103) with same kernel,
>>>>>> and it worked well. So the host driver seems more like ok to me.
>>>>>>
>>>>>> Since i'm not familar with the WiFi driver, i wonder if you could
>>>>>> provide suggestion
>>>>>> from WiFi driver layer to see what the issue could be.
>>>>>>
>>>>>> Below is the detailed log when run 'ifconfig wlan0 up'
>>>>>>
>>>>>> root@freescale ~$ ifconfig wlan0 up
>>>>>> brcmfmac: brcmf_netdev_open Enter, idx=0
>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>> brcmutil: TxHdr:
>>>>>> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00
>>>>>> /...............
>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>
>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>>> brcmutil: RxHdr:
>>>>>> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00              '........&..
>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>> brcmutil: TxHdr:
>>>>>> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00
>>>>>> (...............
>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>> brcmutil: RxHdr:
>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>> brcmutil: RxHdr:
>>>>>> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00               ........2..
>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmutil: TxHdr:
>>>>>> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00
>>>>>> (...............
>>>>>> brcmutil: RxHdr:
>>>>>> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00              .........2..
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
>>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
>>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>>> brcmfmac: brcmf_fws_notify_credit_map enter: credits 09:27:12:09:09:02
>>>>>> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>>>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmutil: RxHdr:
>>>>>> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00               ........3..
>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>> brcmutil: TxHdr:
>>>>>> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00
>>>>>> (...............
>>>>>> brcmutil: RxHdr:
>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>> brcmutil: RxHdr:
>>>>>> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00               ........4..
>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmutil: TxHdr:
>>>>>> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00
>>>>>> (...............
>>>>>> brcmutil: RxHdr:
>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>> brcmutil: RxHdr:
>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>> brcmutil: RxHdr:
>>>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmutil: TxHdr:
>>>>>> 00000000: 28 00 d7 ff 15 00 00 14 00 00 00 00 00 00 00 00
>>>>>> (...............
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmutil: RxHdr:
>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>> brcmutil: RxHdr:
>>>>>> 00000000: 20 00 df ff 1a 00 00 0c 00 36 00 00               ........6..
>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>> brcmfmac: brcmf_config_dongle power save set to enabled
>>>>>> brcmfmac: brcmf_dongle_roam Internal Roaming = On
>>>>>
>>>>>
>>>>>
>>>>> It seem this is the last command being sent. Could you provide file
>>>>> contents
>>>>> in /sys/kernel/debug/brcmfmac/mmc*/
>>>>>
>>>>> Not sure if Yocto mounts debugfs on /sys/kernel/debug. Otherwise you can
>>>>> do:
>>>>>
>>>>> # mkdir /tmp/debugfs
>>>>> # mount -t debugfs none /tmp/debugfs
>>>>>
>>>>
>>>> Please see below:
>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls
>>>> counters  forensics  fws_stats
>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls -l
>>>> total 0
>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 counters
>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 forensics
>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 fws_stats
>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat counters
>>>> intrcount:    19
>>>> lastintrs:    0
>>>> pollcnt:      0
>>>> regfails:     0
>>>> tx_sderrs:    0
>>>> fcqueued:     0
>>>> rxrtx:        0
>>>> rx_toolong:   0
>>>> rxc_errors:   0
>>>> rx_hdrfail:   0
>>>> rx_badhdr:    0
>>>> rx_badseq:    0
>>>> fc_rcvd:      0
>>>> fc_xoff:      0
>>>> fc_xon:       0
>>>> rxglomfail:   0
>>>> rxglomframes: 0
>>>> rxglompkts:   0
>>>> f2rxhdrs:     36
>>>> f2rxdata:     3
>>>> f2txdata:     0
>>>> f1regdata:    42
>>>> tickcnt:      53
>>>> tx_ctlerrs:   0
>>>> tx_ctlpkts:   17
>>>> rx_ctlerrs:   0
>>>> rx_ctlpkts:   17
>>>> rx_readahead: 0
>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat forensics
>>>>
>>>> RTE (USB-SDIO-CDC) 6.30.171.24.20 (B0 Station/P2P) on BCM4335 r1 @
>>>> 37.4/161.3/161.3MHz
>>>> 000000.011 sdpcmdcdc0: Broadcom SDPCMD CDC driver
>>>> 000000.018 reclaim section 0: Returned 42772 bytes to the heap
>>>> 000000.061 wl0: Broadcom BCM4335 802.11 Wireless Controller
>>>> 6.30.171.24.20 (B0 Station/P2P)
>>>> 000000.070 reclaim section 1: Returned 62128 bytes to the heap
>>>> 000000.209 wl0: wlc_enable_probe_req: state down, deferring setting of
>>>> host flags
>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ring setting of
>>>> host flags
>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat fws_stats
>>>> header_pulls:      0
>>>> header_only_pkt:   0
>>>> tlv_parse_failed:  0
>>>> tlv_invalid_type:  0
>>>> mac_update_fails:  0
>>>> ps_update_fails:   0
>>>> if_update_fails:   0
>>>> pkt2bus:           0
>>>> generic_error:     0
>>>> rollback_success:  0
>>>> rollback_failed:   0
>>>> delayq_full:       0
>>>> supprq_full:       0
>>>> txs_indicate:      0
>>>> txs_discard:       0
>>>> txs_suppr_core:    0
>>>> txs_suppr_ps:      0
>>>> txs_tossed:        0
>>>> txs_host_tossed:   0
>>>> bus_flow_block:    0
>>>> fws_flow_block:    0
>>>> send_pkts:         BK:0 BE:0 VO:0 VI:0 BCMC:0
>>>> requested_sent:    BK:0 BE:0 VO:0 VI:0 BCMC:0
>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1#
>>>
>>>
>>> Nothing exciting there either. Let's take a step back. The rfkill seems an
>>> issue, but I first would like to know if you can get connectivity. Does the
>>> 'ifconfig wlan0 up' complete at all and is it successful.
>>>
>>
>> The second rootfs i tried does not have rfkill.
>> But shows the similar issue with 'ifconfig wlan0 up'.
>>
>>> As you noticed during the up sequence there is a timeout. I would like to
>>> know what command that is. Could you run it again with debug=1546?
>>>
>>
>> Will run the test now.
>> Thanks for the help.
>>
>
> Please see blow log:
> Note: there's no rfkill in this rootfs.
>
> root@freescale ~$ ifconfgi\b\big wlan0
> brcmfmac: brcmf_netdev_get_stats Enter, idx=0
> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>            BROADCAST MULTICAST  MTU:1500  Metric:1
>            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>            collisions:0 txqueuelen:1000
>            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>
> root@freescale ~$ ifconfig wlan0 up
> brcmfmac: brcmf_netdev_open Enter, idx=0
> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmutil: TxHdr:
> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00  /...............
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>
> <--------- I noticed a few seconds stall here
>
> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdio_readframes Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
> brcmfmac: brcmf_fil_iovar_data_get name=toe_ol, len=4
> brcmutil: data
> 00000000: 28 aa 49 80                                      (.I.
>
> brcmutil: RxHdr:
> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00              '........&..
> brcmfmac: brcmf_sdbrcm_read_control Enter
> brcmfmac: brcmf_fil_cmd_int_set cmd=2, value=0
> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmutil: TxHdr:
> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00  (...............
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmutil: RxHdr:
> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdio_readframes Enter
> brcmutil: RxHdr:
> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00               ........2..
> brcmfmac: brcmf_sdbrcm_read_control Enter
>
> brcmfmac: brcmf_fil_cmd_int_set cmd=185, value=40
> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmutil: TxHdr:
> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00  (...............
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> brcmutil: RxHdr:
> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00              .........2..
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_fweh_event_worker event FIFO_CREDIT_MAP (74) ifidx 0
> bsscfg 0 addr 80:80:80:80:80:80
> brcmfmac: brcmf_fweh_event_worker   version 2 flags 24 status 0 reason 0
> brcmutil: event payload, len=6
> 00000000: 09 27 12 09 09 02                                .'....
> brcmfmac: brcmf_fws_notify_credit_map enter: credits 09:27:12:09:09:02
> brcmfmac: brcmf_fweh_event_worker event IF (54) ifidx 0 bsscfg 0 addr
> 00:90:4c:c5:12:38
> brcmfmac: brcmf_fweh_event_worker   version 2 flags 0 status 0 reason 0
> brcmutil: event payload, len=5
> 00000000: 00 01 00 00 00                                   .....
> brcmfmac: brcmf_fweh_handle_if_event action: 1 idx: 0 bsscfg: 0 flags: 0 role: 0
> brcmfmac: brcmf_fweh_handle_if_event adding wl0 (00:90:4c:c5:12:38)
> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
> brcmfmac: brcmf_add_if: ignore IF event
> brcmutil: RxHdr:
> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00               ........3..
> brcmfmac: brcmf_sdbrcm_read_control Enter
> brcmfmac: brcmf_fil_cmd_int_set cmd=187, value=40
> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmutil: RxHdr:
> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmutil: TxHdr:
> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00  (...............
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdio_readframes Enter
> brcmutil: RxHdr:
> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> .......
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdio_readframes Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
> brcmfmac: brcmf_dongle_scantime: Scan unassoc time error (-110)
> brcmutil: RxHdr:
> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00               ........4..
> brcmfmac: brcmf_sdbrcm_read_control Enter
> brcmfmac: brcmf_fil_cmd_int_set cmd=86, value=2
> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmutil: RxHdr:
> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmutil: TxHdr:
> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00  (...............
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> .................................
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdio_readframes Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
> brcmfmac: brcmf_netdev_open: failed to bring up cfg80211
> brcmutil: RxHdr:
> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
> brcmfmac: brcmf_sdbrcm_read_control Enter
> ifconfig: SIOCSIFFLAGS: Operationbrcmfmac: brcmf_sdbrcm_bus_sleep Enter
>   not permitted
> root@freescale ~$ brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110
>
> brcmfmac: brcmf_sdbrcm_rxfail: abort command, terminate frame, send NAK
> root@freescale ~$
> root@freescale ~$ brcmfmac: brcmf_sdioh_request_word: Failed to write
> word, Err: 0xffffff92
>
> root@freescale ~$
> root@freescale ~$
> root@freescale ~$ brcmfmac: brcmf_sdioh_request_word: Failed to write
> word, Err: 0xffffff92
>
> root@freescale ~$ brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
> brcmfmac: brcmf_sdio_readframes Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmutil: RxHdr:
> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
> F1:@0x1001f=01, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
> F1:@0x1001f=01, Err: -110
> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
> F1:@0x1001f=01, Err: -110
> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
> brcmfmac: brcmf_sdbrcm_isr Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_dpc Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_kso_control Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
> brcmfmac: brcmf_sdbrcm_bus_sleep Enter

One more question. I looked up the board you mentioined. What I found 
has a dedicated SDIO slot for Wifi. Are you using that and do you know 
if that is an SDIO3.0 or not? Earlier in the thread i found this logging:

 > root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
 > mmc0: new high speed SDIO card at address 0001

I think it means it is a SDIO2, but I like to be sure.

Gr. AvS

> Regards
> Dong Aisheng
>



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-06  8:30                     ` Arend van Spriel
@ 2013-11-06  9:57                       ` Arend van Spriel
  2013-11-06 10:47                         ` Dong Aisheng
  2013-11-06 10:39                       ` Dong Aisheng
  1 sibling, 1 reply; 17+ messages in thread
From: Arend van Spriel @ 2013-11-06  9:57 UTC (permalink / raw)
  To: Dong Aisheng; +Cc: linux-wireless, frankyl, brcm80211-dev-list

On 11/06/2013 09:30 AM, Arend van Spriel wrote:
> On 11/05/2013 10:26 AM, Dong Aisheng wrote:
>> On Tue, Nov 5, 2013 at 4:57 PM, Dong Aisheng <dongas86@gmail.com> wrote:
>>> On Tue, Nov 5, 2013 at 4:36 PM, Arend van Spriel <arend@broadcom.com>
>>> wrote:
>>>> On 11/05/2013 03:51 AM, Dong Aisheng wrote:
>>>>>
>>>>> On Mon, Nov 4, 2013 at 5:44 PM, Arend van Spriel <arend@broadcom.com>
>>>>> wrote:
>>>>>>
>>>>>> On 11/04/2013 09:13 AM, Dong Aisheng wrote:
>>>>>>>
>>>>>>>
>>>>>>> Hi Arend,
>>>>>>>
>>>>>>> On Mon, Nov 4, 2013 at 11:44 AM, Dong Aisheng <dongas86@gmail.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>> Hi Arend,
>>>>>>>>
>>>>>>>> On Fri, Nov 1, 2013 at 9:25 PM, Arend van Spriel
>>>>>>>> <arend@broadcom.com>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 11/01/2013 01:21 PM, Dong Aisheng wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hi Arend,
>>>>>>>>>>
>>>>>>>>>> On Fri, Nov 1, 2013 at 6:35 PM, Arend van Spriel
>>>>>>>>>> <arend@broadcom.com>
>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 11/01/2013 07:22 AM, Dong Aisheng wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Hi ALL,
>>>>>>>>>>>>
>>>>>>>>>>>> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
>>>>>>>>>>>> The kernel i ran is latest from:
>>>>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> The firmware is used is from:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> NVRAM file is got from the vendor which should work for the
>>>>>>>>>>>> module.
>>>>>>>>>>>>
>>>>>>>>>>>> But i ran into the following issues, hope somebody can give
>>>>>>>>>>>> me some
>>>>>>>>>>>> hints.
>>>>>>>>>>>>
>>>>>>>>>>>> First, i met error when module is auto loaded, but seems the
>>>>>>>>>>>> driver
>>>>>>>>>>>> is
>>>>>>>>>>>> still loaded successfully since i found the new WiFi
>>>>>>>>>>>> interface with
>>>>>>>>>>>> ifconfig.
>>>>>>>>>>>> But it can not work after run rfkill unblock wlan and a lot
>>>>>>>>>>>> error
>>>>>>>>>>>> messages comes out.
>>>>>>>>>>>>
>>>>>>>>>>>> I'm wondering if this driver can support bcm4335 well, can
>>>>>>>>>>>> anybody
>>>>>>>>>>>> provide some help?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> I can try. I have used the bcm4335 with a SDIO3.0 controller
>>>>>>>>>>> on a
>>>>>>>>>>> x86
>>>>>>>>>>> PC.
>>>>>>>>>>> Looking at an issue right now, but your log does not show
>>>>>>>>>>> that so
>>>>>>>>>>> you
>>>>>>>>>>> have a
>>>>>>>>>>> different issue. Could you load the module with parameter
>>>>>>>>>>> 'debug=0x146'.
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Thanks for the help.
>>>>>>>>>> So that means the brcmfmac driver should support bcm4335
>>>>>>>>>> module well,
>>>>>>>>>> right?
>>>>>>>>>> The difference is that i'm using a ARM platform.
>>>>>>>>>> Below is log with 'debug=0x146'.
>>>>>>>>>> It only includes driver probe log.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> That log actually looks fine. Just not sure why software rfkill
>>>>>>>>> was
>>>>>>>>> enabled.
>>>>>>>>> Is that still the case? What distro is running on your platform?
>>>>>>>>>
>>>>>>>>
>>>>>>>> Do you  mean the error message during probe is also fine?
>>>>>>>> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>>>>> mmc0: new high speed SDIO card at address 0001
>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>> 0xffffffac
>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>> 0xffffffac
>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>> 0xffffffac
>>>>>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84     <--- error
>>>>>>>> message
>>>>>>>> brcmfmac: brcmf_sdio_chip_
>>>>>>>> drivestrengthinit: No SDIO Drive strength
>>>>>>>> init done for chip 4335 rev 1 pmurev 18
>>>>>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24
>>>>>>>> 2013
>>>>>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23              <----
>>>>>>>> error
>>>>>>>> message
>>>>>>>>
>>>>>>>> I'm using yocto rootfs, seems rfkill is always enabled by default.
>>>>>>>> I could try another rootfs without rfkill.
>>>>>>>> But i don't think rfkill should block WiFi driver to work properly.
>>>>>>>>
>>>>>>>
>>>>>>> I tried another rootfs without rfkill, met the same issue when doing
>>>>>>> ifconfig wlan0 up, just like 'rfkill unblock wlan'.
>>>>>>>
>>>>>>> root@freescale ~$ mmc0: mmc_rescan_try_freq: trying to init card at
>>>>>>> 400000
>>>>>>> Hz
>>>>>>> mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>>>> mmc0: new high speed SDIO card at address 0001
>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>> 0xffffffac
>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>> 0xffffffac
>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>> 0xffffffac
>>>>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>>>>>>> brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
>>>>>>> init done for chip 4335 rev 1 pmurev 18
>>>>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>>>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>>>>
>>>>>>> root@freescale ~$
>>>>>>> root@freescale ~$
>>>>>>> root@freescale ~$ ifconfig -a
>>>>>>> ......
>>>>>>>
>>>>>>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>>>>>>              BROADCAST MULTICAST  MTU:1500  Metric:1
>>>>>>>              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>>>>              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>>>>>              collisions:0 txqueuelen:1000
>>>>>>>              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>>>>>
>>>>>>> root@freescale ~$ ifconfig wlan0 up
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>>>>
>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>>>> root@freescale ~$
>>>>>>> root@freescale ~$
>>>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to
>>>>>>> write
>>>>>>> byte F1:@0x1001f=01, Err: -110
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>
>>>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to
>>>>>>> write
>>>>>>> byte F1:@0x1001f=01, Err: -110
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>>>> F1:@0x1001f=01, Err: -110
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>
>>>>>>> I looked into a bit more about the error and found there's CMD
>>>>>>> timeout
>>>>>>> on the bus during SDIO
>>>>>>> command transfer.
>>>>>>> ---------------------------------------
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00
>>>>>>> ........5..
>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> mmc0: starting CMD52 arg 92001400 flags 00000195
>>>>>>> sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00010000
>>>>>>> mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>>>> F1:@0x1000a=00, Err: -110
>>>>>>> ------------------------------------------
>>>>>>> I'm not sure how this happened, whether caused by host side or wifi
>>>>>>> driver
>>>>>>> side.
>>>>>>> But for the host, i tried this host driver with another WiFi
>>>>>>> card(Atheros AR6103) with same kernel,
>>>>>>> and it worked well. So the host driver seems more like ok to me.
>>>>>>>
>>>>>>> Since i'm not familar with the WiFi driver, i wonder if you could
>>>>>>> provide suggestion
>>>>>>> from WiFi driver layer to see what the issue could be.
>>>>>>>
>>>>>>> Below is the detailed log when run 'ifconfig wlan0 up'
>>>>>>>
>>>>>>> root@freescale ~$ ifconfig wlan0 up
>>>>>>> brcmfmac: brcmf_netdev_open Enter, idx=0
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmutil: TxHdr:
>>>>>>> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00
>>>>>>> /...............
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00
>>>>>>> '........&..
>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmutil: TxHdr:
>>>>>>> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00
>>>>>>> (...............
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>> ............
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00
>>>>>>> ........2..
>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmutil: TxHdr:
>>>>>>> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00
>>>>>>> (...............
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00
>>>>>>> .........2..
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
>>>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
>>>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>>>> brcmfmac: brcmf_fws_notify_credit_map enter: credits
>>>>>>> 09:27:12:09:09:02
>>>>>>> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>>>>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00
>>>>>>> ........3..
>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmutil: TxHdr:
>>>>>>> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00
>>>>>>> (...............
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>> ............
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00
>>>>>>> ........4..
>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmutil: TxHdr:
>>>>>>> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00
>>>>>>> (...............
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>> ............
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>> ............
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00
>>>>>>> ........5..
>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmutil: TxHdr:
>>>>>>> 00000000: 28 00 d7 ff 15 00 00 14 00 00 00 00 00 00 00 00
>>>>>>> (...............
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>> ............
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 20 00 df ff 1a 00 00 0c 00 36 00 00
>>>>>>> ........6..
>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>> brcmfmac: brcmf_config_dongle power save set to enabled
>>>>>>> brcmfmac: brcmf_dongle_roam Internal Roaming = On
>>>>>>
>>>>>>
>>>>>>
>>>>>> It seem this is the last command being sent. Could you provide file
>>>>>> contents
>>>>>> in /sys/kernel/debug/brcmfmac/mmc*/
>>>>>>
>>>>>> Not sure if Yocto mounts debugfs on /sys/kernel/debug. Otherwise
>>>>>> you can
>>>>>> do:
>>>>>>
>>>>>> # mkdir /tmp/debugfs
>>>>>> # mount -t debugfs none /tmp/debugfs
>>>>>>
>>>>>
>>>>> Please see below:
>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls
>>>>> counters  forensics  fws_stats
>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls -l
>>>>> total 0
>>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 counters
>>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 forensics
>>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 fws_stats
>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat counters
>>>>> intrcount:    19
>>>>> lastintrs:    0
>>>>> pollcnt:      0
>>>>> regfails:     0
>>>>> tx_sderrs:    0
>>>>> fcqueued:     0
>>>>> rxrtx:        0
>>>>> rx_toolong:   0
>>>>> rxc_errors:   0
>>>>> rx_hdrfail:   0
>>>>> rx_badhdr:    0
>>>>> rx_badseq:    0
>>>>> fc_rcvd:      0
>>>>> fc_xoff:      0
>>>>> fc_xon:       0
>>>>> rxglomfail:   0
>>>>> rxglomframes: 0
>>>>> rxglompkts:   0
>>>>> f2rxhdrs:     36
>>>>> f2rxdata:     3
>>>>> f2txdata:     0
>>>>> f1regdata:    42
>>>>> tickcnt:      53
>>>>> tx_ctlerrs:   0
>>>>> tx_ctlpkts:   17
>>>>> rx_ctlerrs:   0
>>>>> rx_ctlpkts:   17
>>>>> rx_readahead: 0
>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat forensics
>>>>>
>>>>> RTE (USB-SDIO-CDC) 6.30.171.24.20 (B0 Station/P2P) on BCM4335 r1 @
>>>>> 37.4/161.3/161.3MHz
>>>>> 000000.011 sdpcmdcdc0: Broadcom SDPCMD CDC driver
>>>>> 000000.018 reclaim section 0: Returned 42772 bytes to the heap
>>>>> 000000.061 wl0: Broadcom BCM4335 802.11 Wireless Controller
>>>>> 6.30.171.24.20 (B0 Station/P2P)
>>>>> 000000.070 reclaim section 1: Returned 62128 bytes to the heap
>>>>> 000000.209 wl0: wlc_enable_probe_req: state down, deferring setting of
>>>>> host flags
>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ring setting of
>>>>> host flags
>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat fws_stats
>>>>> header_pulls:      0
>>>>> header_only_pkt:   0
>>>>> tlv_parse_failed:  0
>>>>> tlv_invalid_type:  0
>>>>> mac_update_fails:  0
>>>>> ps_update_fails:   0
>>>>> if_update_fails:   0
>>>>> pkt2bus:           0
>>>>> generic_error:     0
>>>>> rollback_success:  0
>>>>> rollback_failed:   0
>>>>> delayq_full:       0
>>>>> supprq_full:       0
>>>>> txs_indicate:      0
>>>>> txs_discard:       0
>>>>> txs_suppr_core:    0
>>>>> txs_suppr_ps:      0
>>>>> txs_tossed:        0
>>>>> txs_host_tossed:   0
>>>>> bus_flow_block:    0
>>>>> fws_flow_block:    0
>>>>> send_pkts:         BK:0 BE:0 VO:0 VI:0 BCMC:0
>>>>> requested_sent:    BK:0 BE:0 VO:0 VI:0 BCMC:0
>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1#
>>>>
>>>>
>>>> Nothing exciting there either. Let's take a step back. The rfkill
>>>> seems an
>>>> issue, but I first would like to know if you can get connectivity.
>>>> Does the
>>>> 'ifconfig wlan0 up' complete at all and is it successful.
>>>>
>>>
>>> The second rootfs i tried does not have rfkill.
>>> But shows the similar issue with 'ifconfig wlan0 up'.
>>>
>>>> As you noticed during the up sequence there is a timeout. I would
>>>> like to
>>>> know what command that is. Could you run it again with debug=1546?
>>>>
>>>
>>> Will run the test now.
>>> Thanks for the help.
>>>
>>
>> Please see blow log:
>> Note: there's no rfkill in this rootfs.
>>
>> root@freescale ~$ ifconfgi\b\big wlan0
>> brcmfmac: brcmf_netdev_get_stats Enter, idx=0
>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>            BROADCAST MULTICAST  MTU:1500  Metric:1
>>            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>            collisions:0 txqueuelen:1000
>>            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>
>> root@freescale ~$ ifconfig wlan0 up
>> brcmfmac: brcmf_netdev_open Enter, idx=0
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: TxHdr:
>> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00
>> /...............
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>
>> <--------- I noticed a few seconds stall here
>>
>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>> brcmfmac: brcmf_fil_iovar_data_get name=toe_ol, len=4
>> brcmutil: data
>> 00000000: 28 aa 49 80                                      (.I.
>>
>> brcmutil: RxHdr:
>> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00              '........&..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>> brcmfmac: brcmf_fil_cmd_int_set cmd=2, value=0
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: TxHdr:
>> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00
>> (...............
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmutil: RxHdr:
>> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00               ........2..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>
>> brcmfmac: brcmf_fil_cmd_int_set cmd=185, value=40
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: TxHdr:
>> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00
>> (...............
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmutil: RxHdr:
>> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00              .........2..
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_fweh_event_worker event FIFO_CREDIT_MAP (74) ifidx 0
>> bsscfg 0 addr 80:80:80:80:80:80
>> brcmfmac: brcmf_fweh_event_worker   version 2 flags 24 status 0 reason 0
>> brcmutil: event payload, len=6
>> 00000000: 09 27 12 09 09 02                                .'....
>> brcmfmac: brcmf_fws_notify_credit_map enter: credits 09:27:12:09:09:02
>> brcmfmac: brcmf_fweh_event_worker event IF (54) ifidx 0 bsscfg 0 addr
>> 00:90:4c:c5:12:38
>> brcmfmac: brcmf_fweh_event_worker   version 2 flags 0 status 0 reason 0
>> brcmutil: event payload, len=5
>> 00000000: 00 01 00 00 00                                   .....
>> brcmfmac: brcmf_fweh_handle_if_event action: 1 idx: 0 bsscfg: 0 flags:
>> 0 role: 0
>> brcmfmac: brcmf_fweh_handle_if_event adding wl0 (00:90:4c:c5:12:38)
>> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>> brcmfmac: brcmf_add_if: ignore IF event
>> brcmutil: RxHdr:
>> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00               ........3..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>> brcmfmac: brcmf_fil_cmd_int_set cmd=187, value=40
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: TxHdr:
>> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00
>> (...............
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> .......
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>> brcmfmac: brcmf_dongle_scantime: Scan unassoc time error (-110)
>> brcmutil: RxHdr:
>> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00               ........4..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>> brcmfmac: brcmf_fil_cmd_int_set cmd=86, value=2
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: TxHdr:
>> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00
>> (...............
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> .................................
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>> brcmfmac: brcmf_netdev_open: failed to bring up cfg80211
>> brcmutil: RxHdr:
>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>> ifconfig: SIOCSIFFLAGS: Operationbrcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>   not permitted
>> root@freescale ~$ brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110
>>
>> brcmfmac: brcmf_sdbrcm_rxfail: abort command, terminate frame, send NAK
>> root@freescale ~$
>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_word: Failed to write
>> word, Err: 0xffffff92
>>
>> root@freescale ~$
>> root@freescale ~$
>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_word: Failed to write
>> word, Err: 0xffffff92
>>
>> root@freescale ~$ brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>> F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>> F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>> F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>
> One more question. I looked up the board you mentioined. What I found
> has a dedicated SDIO slot for Wifi. Are you using that and do you know
> if that is an SDIO3.0 or not? Earlier in the thread i found this logging:
>
>  > root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>  > mmc0: new high speed SDIO card at address 0001
>
> I think it means it is a SDIO2, but I like to be sure.

And just for the hack of it. Can you send your .config and a full kernel 
log (as attachments).

> Gr. AvS
>
>> Regards
>> Dong Aisheng
>>
>



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-06  8:30                     ` Arend van Spriel
  2013-11-06  9:57                       ` Arend van Spriel
@ 2013-11-06 10:39                       ` Dong Aisheng
  1 sibling, 0 replies; 17+ messages in thread
From: Dong Aisheng @ 2013-11-06 10:39 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: linux-wireless, frankyl, brcm80211-dev-list

On Wed, Nov 6, 2013 at 4:30 PM, Arend van Spriel <arend@broadcom.com> wrote:
> On 11/05/2013 10:26 AM, Dong Aisheng wrote:
>>
>> On Tue, Nov 5, 2013 at 4:57 PM, Dong Aisheng <dongas86@gmail.com> wrote:
>>>
>>> On Tue, Nov 5, 2013 at 4:36 PM, Arend van Spriel <arend@broadcom.com>
>>> wrote:
>>>>
>>>> On 11/05/2013 03:51 AM, Dong Aisheng wrote:
>>>>>
>>>>>
>>>>> On Mon, Nov 4, 2013 at 5:44 PM, Arend van Spriel <arend@broadcom.com>
>>>>> wrote:
>>>>>>
>>>>>>
>>>>>> On 11/04/2013 09:13 AM, Dong Aisheng wrote:
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Hi Arend,
>>>>>>>
>>>>>>> On Mon, Nov 4, 2013 at 11:44 AM, Dong Aisheng <dongas86@gmail.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Hi Arend,
>>>>>>>>
>>>>>>>> On Fri, Nov 1, 2013 at 9:25 PM, Arend van Spriel
>>>>>>>> <arend@broadcom.com>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 11/01/2013 01:21 PM, Dong Aisheng wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hi Arend,
>>>>>>>>>>
>>>>>>>>>> On Fri, Nov 1, 2013 at 6:35 PM, Arend van Spriel
>>>>>>>>>> <arend@broadcom.com>
>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 11/01/2013 07:22 AM, Dong Aisheng wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Hi ALL,
>>>>>>>>>>>>
>>>>>>>>>>>> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
>>>>>>>>>>>> The kernel i ran is latest from:
>>>>>>>>>>>>
>>>>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>>>>>>>>>>>>
>>>>>>>>>>>> The firmware is used is from:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>>>>>>>>>>>>
>>>>>>>>>>>> NVRAM file is got from the vendor which should work for the
>>>>>>>>>>>> module.
>>>>>>>>>>>>
>>>>>>>>>>>> But i ran into the following issues, hope somebody can give me
>>>>>>>>>>>> some
>>>>>>>>>>>> hints.
>>>>>>>>>>>>
>>>>>>>>>>>> First, i met error when module is auto loaded, but seems the
>>>>>>>>>>>> driver
>>>>>>>>>>>> is
>>>>>>>>>>>> still loaded successfully since i found the new WiFi interface
>>>>>>>>>>>> with
>>>>>>>>>>>> ifconfig.
>>>>>>>>>>>> But it can not work after run rfkill unblock wlan and a lot
>>>>>>>>>>>> error
>>>>>>>>>>>> messages comes out.
>>>>>>>>>>>>
>>>>>>>>>>>> I'm wondering if this driver can support bcm4335 well, can
>>>>>>>>>>>> anybody
>>>>>>>>>>>> provide some help?
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> I can try. I have used the bcm4335 with a SDIO3.0 controller on a
>>>>>>>>>>> x86
>>>>>>>>>>> PC.
>>>>>>>>>>> Looking at an issue right now, but your log does not show that so
>>>>>>>>>>> you
>>>>>>>>>>> have a
>>>>>>>>>>> different issue. Could you load the module with parameter
>>>>>>>>>>> 'debug=0x146'.
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Thanks for the help.
>>>>>>>>>> So that means the brcmfmac driver should support bcm4335 module
>>>>>>>>>> well,
>>>>>>>>>> right?
>>>>>>>>>> The difference is that i'm using a ARM platform.
>>>>>>>>>> Below is log with 'debug=0x146'.
>>>>>>>>>> It only includes driver probe log.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> That log actually looks fine. Just not sure why software rfkill was
>>>>>>>>> enabled.
>>>>>>>>> Is that still the case? What distro is running on your platform?
>>>>>>>>>
>>>>>>>>
>>>>>>>> Do you  mean the error message during probe is also fine?
>>>>>>>> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>>>>> mmc0: new high speed SDIO card at address 0001
>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>> 0xffffffac
>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>> 0xffffffac
>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>> 0xffffffac
>>>>>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84     <--- error
>>>>>>>> message
>>>>>>>> brcmfmac: brcmf_sdio_chip_
>>>>>>>> drivestrengthinit: No SDIO Drive strength
>>>>>>>> init done for chip 4335 rev 1 pmurev 18
>>>>>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>>>>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23              <----
>>>>>>>> error
>>>>>>>> message
>>>>>>>>
>>>>>>>> I'm using yocto rootfs, seems rfkill is always enabled by default.
>>>>>>>> I could try another rootfs without rfkill.
>>>>>>>> But i don't think rfkill should block WiFi driver to work properly.
>>>>>>>>
>>>>>>>
>>>>>>> I tried another rootfs without rfkill, met the same issue when doing
>>>>>>> ifconfig wlan0 up, just like 'rfkill unblock wlan'.
>>>>>>>
>>>>>>> root@freescale ~$ mmc0: mmc_rescan_try_freq: trying to init card at
>>>>>>> 400000
>>>>>>> Hz
>>>>>>> mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>>>> mmc0: new high speed SDIO card at address 0001
>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>> 0xffffffac
>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>> 0xffffffac
>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>> 0xffffffac
>>>>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>>>>>>> brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
>>>>>>> init done for chip 4335 rev 1 pmurev 18
>>>>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>>>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>>>>
>>>>>>> root@freescale ~$
>>>>>>> root@freescale ~$
>>>>>>> root@freescale ~$ ifconfig -a
>>>>>>> ......
>>>>>>>
>>>>>>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>>>>>>              BROADCAST MULTICAST  MTU:1500  Metric:1
>>>>>>>              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>>>>              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>>>>>              collisions:0 txqueuelen:1000
>>>>>>>              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>>>>>
>>>>>>> root@freescale ~$ ifconfig wlan0 up
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>>>>
>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>>>> root@freescale ~$
>>>>>>> root@freescale ~$
>>>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
>>>>>>> byte F1:@0x1001f=01, Err: -110
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>
>>>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write
>>>>>>> byte F1:@0x1001f=01, Err: -110
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>>>> F1:@0x1001f=01, Err: -110
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>
>>>>>>> I looked into a bit more about the error and found there's CMD
>>>>>>> timeout
>>>>>>> on the bus during SDIO
>>>>>>> command transfer.
>>>>>>> ---------------------------------------
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00
>>>>>>> ........5..
>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> mmc0: starting CMD52 arg 92001400 flags 00000195
>>>>>>> sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00010000
>>>>>>> mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>>>> F1:@0x1000a=00, Err: -110
>>>>>>> ------------------------------------------
>>>>>>> I'm not sure how this happened, whether caused by host side or wifi
>>>>>>> driver
>>>>>>> side.
>>>>>>> But for the host, i tried this host driver with another WiFi
>>>>>>> card(Atheros AR6103) with same kernel,
>>>>>>> and it worked well. So the host driver seems more like ok to me.
>>>>>>>
>>>>>>> Since i'm not familar with the WiFi driver, i wonder if you could
>>>>>>> provide suggestion
>>>>>>> from WiFi driver layer to see what the issue could be.
>>>>>>>
>>>>>>> Below is the detailed log when run 'ifconfig wlan0 up'
>>>>>>>
>>>>>>> root@freescale ~$ ifconfig wlan0 up
>>>>>>> brcmfmac: brcmf_netdev_open Enter, idx=0
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmutil: TxHdr:
>>>>>>> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00
>>>>>>> /...............
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00
>>>>>>> '........&..
>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmutil: TxHdr:
>>>>>>> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00
>>>>>>> (...............
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>> ............
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00
>>>>>>> ........2..
>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmutil: TxHdr:
>>>>>>> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00
>>>>>>> (...............
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00
>>>>>>> .........2..
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
>>>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
>>>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>>>> brcmfmac: brcmf_fws_notify_credit_map enter: credits
>>>>>>> 09:27:12:09:09:02
>>>>>>> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>>>>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00
>>>>>>> ........3..
>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmutil: TxHdr:
>>>>>>> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00
>>>>>>> (...............
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>> ............
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00
>>>>>>> ........4..
>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmutil: TxHdr:
>>>>>>> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00
>>>>>>> (...............
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>> ............
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>> ............
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00
>>>>>>> ........5..
>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmutil: TxHdr:
>>>>>>> 00000000: 28 00 d7 ff 15 00 00 14 00 00 00 00 00 00 00 00
>>>>>>> (...............
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>> ............
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>> brcmutil: RxHdr:
>>>>>>> 00000000: 20 00 df ff 1a 00 00 0c 00 36 00 00
>>>>>>> ........6..
>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>> brcmfmac: brcmf_config_dongle power save set to enabled
>>>>>>> brcmfmac: brcmf_dongle_roam Internal Roaming = On
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> It seem this is the last command being sent. Could you provide file
>>>>>> contents
>>>>>> in /sys/kernel/debug/brcmfmac/mmc*/
>>>>>>
>>>>>> Not sure if Yocto mounts debugfs on /sys/kernel/debug. Otherwise you
>>>>>> can
>>>>>> do:
>>>>>>
>>>>>> # mkdir /tmp/debugfs
>>>>>> # mount -t debugfs none /tmp/debugfs
>>>>>>
>>>>>
>>>>> Please see below:
>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls
>>>>> counters  forensics  fws_stats
>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls -l
>>>>> total 0
>>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 counters
>>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 forensics
>>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 fws_stats
>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat counters
>>>>> intrcount:    19
>>>>> lastintrs:    0
>>>>> pollcnt:      0
>>>>> regfails:     0
>>>>> tx_sderrs:    0
>>>>> fcqueued:     0
>>>>> rxrtx:        0
>>>>> rx_toolong:   0
>>>>> rxc_errors:   0
>>>>> rx_hdrfail:   0
>>>>> rx_badhdr:    0
>>>>> rx_badseq:    0
>>>>> fc_rcvd:      0
>>>>> fc_xoff:      0
>>>>> fc_xon:       0
>>>>> rxglomfail:   0
>>>>> rxglomframes: 0
>>>>> rxglompkts:   0
>>>>> f2rxhdrs:     36
>>>>> f2rxdata:     3
>>>>> f2txdata:     0
>>>>> f1regdata:    42
>>>>> tickcnt:      53
>>>>> tx_ctlerrs:   0
>>>>> tx_ctlpkts:   17
>>>>> rx_ctlerrs:   0
>>>>> rx_ctlpkts:   17
>>>>> rx_readahead: 0
>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat forensics
>>>>>
>>>>> RTE (USB-SDIO-CDC) 6.30.171.24.20 (B0 Station/P2P) on BCM4335 r1 @
>>>>> 37.4/161.3/161.3MHz
>>>>> 000000.011 sdpcmdcdc0: Broadcom SDPCMD CDC driver
>>>>> 000000.018 reclaim section 0: Returned 42772 bytes to the heap
>>>>> 000000.061 wl0: Broadcom BCM4335 802.11 Wireless Controller
>>>>> 6.30.171.24.20 (B0 Station/P2P)
>>>>> 000000.070 reclaim section 1: Returned 62128 bytes to the heap
>>>>> 000000.209 wl0: wlc_enable_probe_req: state down, deferring setting of
>>>>> host flags
>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ring setting of
>>>>> host flags
>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat fws_stats
>>>>> header_pulls:      0
>>>>> header_only_pkt:   0
>>>>> tlv_parse_failed:  0
>>>>> tlv_invalid_type:  0
>>>>> mac_update_fails:  0
>>>>> ps_update_fails:   0
>>>>> if_update_fails:   0
>>>>> pkt2bus:           0
>>>>> generic_error:     0
>>>>> rollback_success:  0
>>>>> rollback_failed:   0
>>>>> delayq_full:       0
>>>>> supprq_full:       0
>>>>> txs_indicate:      0
>>>>> txs_discard:       0
>>>>> txs_suppr_core:    0
>>>>> txs_suppr_ps:      0
>>>>> txs_tossed:        0
>>>>> txs_host_tossed:   0
>>>>> bus_flow_block:    0
>>>>> fws_flow_block:    0
>>>>> send_pkts:         BK:0 BE:0 VO:0 VI:0 BCMC:0
>>>>> requested_sent:    BK:0 BE:0 VO:0 VI:0 BCMC:0
>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1#
>>>>
>>>>
>>>>
>>>> Nothing exciting there either. Let's take a step back. The rfkill seems
>>>> an
>>>> issue, but I first would like to know if you can get connectivity. Does
>>>> the
>>>> 'ifconfig wlan0 up' complete at all and is it successful.
>>>>
>>>
>>> The second rootfs i tried does not have rfkill.
>>> But shows the similar issue with 'ifconfig wlan0 up'.
>>>
>>>> As you noticed during the up sequence there is a timeout. I would like
>>>> to
>>>> know what command that is. Could you run it again with debug=1546?
>>>>
>>>
>>> Will run the test now.
>>> Thanks for the help.
>>>
>>
>> Please see blow log:
>> Note: there's no rfkill in this rootfs.
>>
>> root@freescale ~$ ifconfgi  ig wlan0
>> brcmfmac: brcmf_netdev_get_stats Enter, idx=0
>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>            BROADCAST MULTICAST  MTU:1500  Metric:1
>>            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>            collisions:0 txqueuelen:1000
>>            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>
>> root@freescale ~$ ifconfig wlan0 up
>> brcmfmac: brcmf_netdev_open Enter, idx=0
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: TxHdr:
>> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00
>> /...............
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>
>> <--------- I noticed a few seconds stall here
>>
>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>> brcmfmac: brcmf_fil_iovar_data_get name=toe_ol, len=4
>> brcmutil: data
>> 00000000: 28 aa 49 80                                      (.I.
>>
>> brcmutil: RxHdr:
>> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00              '........&..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>> brcmfmac: brcmf_fil_cmd_int_set cmd=2, value=0
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: TxHdr:
>> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00
>> (...............
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmutil: RxHdr:
>> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00               ........2..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>
>> brcmfmac: brcmf_fil_cmd_int_set cmd=185, value=40
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: TxHdr:
>> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00
>> (...............
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmutil: RxHdr:
>> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00              .........2..
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_fweh_event_worker event FIFO_CREDIT_MAP (74) ifidx 0
>> bsscfg 0 addr 80:80:80:80:80:80
>> brcmfmac: brcmf_fweh_event_worker   version 2 flags 24 status 0 reason 0
>> brcmutil: event payload, len=6
>> 00000000: 09 27 12 09 09 02                                .'....
>> brcmfmac: brcmf_fws_notify_credit_map enter: credits 09:27:12:09:09:02
>> brcmfmac: brcmf_fweh_event_worker event IF (54) ifidx 0 bsscfg 0 addr
>> 00:90:4c:c5:12:38
>> brcmfmac: brcmf_fweh_event_worker   version 2 flags 0 status 0 reason 0
>> brcmutil: event payload, len=5
>> 00000000: 00 01 00 00 00                                   .....
>> brcmfmac: brcmf_fweh_handle_if_event action: 1 idx: 0 bsscfg: 0 flags: 0
>> role: 0
>> brcmfmac: brcmf_fweh_handle_if_event adding wl0 (00:90:4c:c5:12:38)
>> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>> brcmfmac: brcmf_add_if: ignore IF event
>> brcmutil: RxHdr:
>> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00               ........3..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>> brcmfmac: brcmf_fil_cmd_int_set cmd=187, value=40
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: TxHdr:
>> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00
>> (...............
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> .......
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>> brcmfmac: brcmf_dongle_scantime: Scan unassoc time error (-110)
>> brcmutil: RxHdr:
>> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00               ........4..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>> brcmfmac: brcmf_fil_cmd_int_set cmd=86, value=2
>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: TxHdr:
>> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00
>> (...............
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> .................................
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>> brcmfmac: brcmf_netdev_open: failed to bring up cfg80211
>> brcmutil: RxHdr:
>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
>> brcmfmac: brcmf_sdbrcm_read_control Enter
>> ifconfig: SIOCSIFFLAGS: Operationbrcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>   not permitted
>> root@freescale ~$ brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110
>>
>> brcmfmac: brcmf_sdbrcm_rxfail: abort command, terminate frame, send NAK
>> root@freescale ~$
>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_word: Failed to write
>> word, Err: 0xffffff92
>>
>> root@freescale ~$
>> root@freescale ~$
>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_word: Failed to write
>> word, Err: 0xffffff92
>>
>> root@freescale ~$ brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>> brcmfmac: brcmf_sdio_readframes Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmutil: RxHdr:
>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>> F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>> F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>> F1:@0x1001f=01, Err: -110
>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>> brcmfmac: brcmf_sdbrcm_isr Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_dpc Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>
>
> One more question. I looked up the board you mentioined. What I found has a
> dedicated SDIO slot for Wifi. Are you using that and do you know if that is
> an SDIO3.0 or not? Earlier in the thread i found this logging:
>

I'm not using that one, i'm using SD1.
All the slots can work on SDIO3.0 mode, the uSDHC IP supports it.

>
>> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>> mmc0: new high speed SDIO card at address 0001
>
> I think it means it is a SDIO2, but I like to be sure.
>

I manually hack it to work on SDIO2 mode to narrow down the issues.
I guess the card should be capable of working SDIO2.0 mode, right?

Regards
Dong Aisheng

>
> Gr. AvS
>
>> Regards
>> Dong Aisheng
>>
>
>

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-06  9:57                       ` Arend van Spriel
@ 2013-11-06 10:47                         ` Dong Aisheng
  2013-11-07 16:05                           ` Arend van Spriel
  0 siblings, 1 reply; 17+ messages in thread
From: Dong Aisheng @ 2013-11-06 10:47 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: linux-wireless, frankyl, brcm80211-dev-list

[-- Attachment #1: Type: text/plain, Size: 34337 bytes --]

On Wed, Nov 6, 2013 at 5:57 PM, Arend van Spriel <arend@broadcom.com> wrote:
> On 11/06/2013 09:30 AM, Arend van Spriel wrote:
>>
>> On 11/05/2013 10:26 AM, Dong Aisheng wrote:
>>>
>>> On Tue, Nov 5, 2013 at 4:57 PM, Dong Aisheng <dongas86@gmail.com> wrote:
>>>>
>>>> On Tue, Nov 5, 2013 at 4:36 PM, Arend van Spriel <arend@broadcom.com>
>>>> wrote:
>>>>>
>>>>> On 11/05/2013 03:51 AM, Dong Aisheng wrote:
>>>>>>
>>>>>>
>>>>>> On Mon, Nov 4, 2013 at 5:44 PM, Arend van Spriel <arend@broadcom.com>
>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>> On 11/04/2013 09:13 AM, Dong Aisheng wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Hi Arend,
>>>>>>>>
>>>>>>>> On Mon, Nov 4, 2013 at 11:44 AM, Dong Aisheng <dongas86@gmail.com>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hi Arend,
>>>>>>>>>
>>>>>>>>> On Fri, Nov 1, 2013 at 9:25 PM, Arend van Spriel
>>>>>>>>> <arend@broadcom.com>
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On 11/01/2013 01:21 PM, Dong Aisheng wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Hi Arend,
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Nov 1, 2013 at 6:35 PM, Arend van Spriel
>>>>>>>>>>> <arend@broadcom.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 11/01/2013 07:22 AM, Dong Aisheng wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Hi ALL,
>>>>>>>>>>>>>
>>>>>>>>>>>>> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
>>>>>>>>>>>>> The kernel i ran is latest from:
>>>>>>>>>>>>>
>>>>>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> The firmware is used is from:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> NVRAM file is got from the vendor which should work for the
>>>>>>>>>>>>> module.
>>>>>>>>>>>>>
>>>>>>>>>>>>> But i ran into the following issues, hope somebody can give
>>>>>>>>>>>>> me some
>>>>>>>>>>>>> hints.
>>>>>>>>>>>>>
>>>>>>>>>>>>> First, i met error when module is auto loaded, but seems the
>>>>>>>>>>>>> driver
>>>>>>>>>>>>> is
>>>>>>>>>>>>> still loaded successfully since i found the new WiFi
>>>>>>>>>>>>> interface with
>>>>>>>>>>>>> ifconfig.
>>>>>>>>>>>>> But it can not work after run rfkill unblock wlan and a lot
>>>>>>>>>>>>> error
>>>>>>>>>>>>> messages comes out.
>>>>>>>>>>>>>
>>>>>>>>>>>>> I'm wondering if this driver can support bcm4335 well, can
>>>>>>>>>>>>> anybody
>>>>>>>>>>>>> provide some help?
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> I can try. I have used the bcm4335 with a SDIO3.0 controller
>>>>>>>>>>>> on a
>>>>>>>>>>>> x86
>>>>>>>>>>>> PC.
>>>>>>>>>>>> Looking at an issue right now, but your log does not show
>>>>>>>>>>>> that so
>>>>>>>>>>>> you
>>>>>>>>>>>> have a
>>>>>>>>>>>> different issue. Could you load the module with parameter
>>>>>>>>>>>> 'debug=0x146'.
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Thanks for the help.
>>>>>>>>>>> So that means the brcmfmac driver should support bcm4335
>>>>>>>>>>> module well,
>>>>>>>>>>> right?
>>>>>>>>>>> The difference is that i'm using a ARM platform.
>>>>>>>>>>> Below is log with 'debug=0x146'.
>>>>>>>>>>> It only includes driver probe log.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> That log actually looks fine. Just not sure why software rfkill
>>>>>>>>>> was
>>>>>>>>>> enabled.
>>>>>>>>>> Is that still the case? What distro is running on your platform?
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Do you  mean the error message during probe is also fine?
>>>>>>>>> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>>>>>> mmc0: new high speed SDIO card at address 0001
>>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>>> 0xffffffac
>>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>>> 0xffffffac
>>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>>> 0xffffffac
>>>>>>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84     <--- error
>>>>>>>>> message
>>>>>>>>> brcmfmac: brcmf_sdio_chip_
>>>>>>>>> drivestrengthinit: No SDIO Drive strength
>>>>>>>>> init done for chip 4335 rev 1 pmurev 18
>>>>>>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24
>>>>>>>>> 2013
>>>>>>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23              <----
>>>>>>>>> error
>>>>>>>>> message
>>>>>>>>>
>>>>>>>>> I'm using yocto rootfs, seems rfkill is always enabled by default.
>>>>>>>>> I could try another rootfs without rfkill.
>>>>>>>>> But i don't think rfkill should block WiFi driver to work properly.
>>>>>>>>>
>>>>>>>>
>>>>>>>> I tried another rootfs without rfkill, met the same issue when doing
>>>>>>>> ifconfig wlan0 up, just like 'rfkill unblock wlan'.
>>>>>>>>
>>>>>>>> root@freescale ~$ mmc0: mmc_rescan_try_freq: trying to init card at
>>>>>>>> 400000
>>>>>>>> Hz
>>>>>>>> mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>>>>> mmc0: new high speed SDIO card at address 0001
>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>> 0xffffffac
>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>> 0xffffffac
>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>> 0xffffffac
>>>>>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>>>>>>>> brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
>>>>>>>> init done for chip 4335 rev 1 pmurev 18
>>>>>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>>>>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>>>>>
>>>>>>>> root@freescale ~$
>>>>>>>> root@freescale ~$
>>>>>>>> root@freescale ~$ ifconfig -a
>>>>>>>> ......
>>>>>>>>
>>>>>>>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>>>>>>>              BROADCAST MULTICAST  MTU:1500  Metric:1
>>>>>>>>              RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>>>>>              TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>>>>>>              collisions:0 txqueuelen:1000
>>>>>>>>              RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>>>>>>
>>>>>>>> root@freescale ~$ ifconfig wlan0 up
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>>>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>>>>>
>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>>>>> root@freescale ~$
>>>>>>>> root@freescale ~$
>>>>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to
>>>>>>>> write
>>>>>>>> byte F1:@0x1001f=01, Err: -110
>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>>
>>>>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to
>>>>>>>> write
>>>>>>>> byte F1:@0x1001f=01, Err: -110
>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>>>>> F1:@0x1001f=01, Err: -110
>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>>
>>>>>>>> I looked into a bit more about the error and found there's CMD
>>>>>>>> timeout
>>>>>>>> on the bus during SDIO
>>>>>>>> command transfer.
>>>>>>>> ---------------------------------------
>>>>>>>> brcmutil: RxHdr:
>>>>>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00
>>>>>>>> ........5..
>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> mmc0: starting CMD52 arg 92001400 flags 00000195
>>>>>>>> sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00010000
>>>>>>>> mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>>>>> F1:@0x1000a=00, Err: -110
>>>>>>>> ------------------------------------------
>>>>>>>> I'm not sure how this happened, whether caused by host side or wifi
>>>>>>>> driver
>>>>>>>> side.
>>>>>>>> But for the host, i tried this host driver with another WiFi
>>>>>>>> card(Atheros AR6103) with same kernel,
>>>>>>>> and it worked well. So the host driver seems more like ok to me.
>>>>>>>>
>>>>>>>> Since i'm not familar with the WiFi driver, i wonder if you could
>>>>>>>> provide suggestion
>>>>>>>> from WiFi driver layer to see what the issue could be.
>>>>>>>>
>>>>>>>> Below is the detailed log when run 'ifconfig wlan0 up'
>>>>>>>>
>>>>>>>> root@freescale ~$ ifconfig wlan0 up
>>>>>>>> brcmfmac: brcmf_netdev_open Enter, idx=0
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>> brcmutil: TxHdr:
>>>>>>>> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>> /...............
>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>>
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>>>>> brcmutil: RxHdr:
>>>>>>>> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00
>>>>>>>> '........&..
>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>> brcmutil: TxHdr:
>>>>>>>> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>> (...............
>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>> brcmutil: RxHdr:
>>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>>> ............
>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>> brcmutil: RxHdr:
>>>>>>>> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00
>>>>>>>> ........2..
>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmutil: TxHdr:
>>>>>>>> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>> (...............
>>>>>>>> brcmutil: RxHdr:
>>>>>>>> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00
>>>>>>>> .........2..
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
>>>>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
>>>>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>>>>> brcmfmac: brcmf_fws_notify_credit_map enter: credits
>>>>>>>> 09:27:12:09:09:02
>>>>>>>> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>>>>>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>>>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmutil: RxHdr:
>>>>>>>> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00
>>>>>>>> ........3..
>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>> brcmutil: TxHdr:
>>>>>>>> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>> (...............
>>>>>>>> brcmutil: RxHdr:
>>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>>> ............
>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>> brcmutil: RxHdr:
>>>>>>>> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00
>>>>>>>> ........4..
>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmutil: TxHdr:
>>>>>>>> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>> (...............
>>>>>>>> brcmutil: RxHdr:
>>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>>> ............
>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>> brcmutil: RxHdr:
>>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>>> ............
>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>> brcmutil: RxHdr:
>>>>>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00
>>>>>>>> ........5..
>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmutil: TxHdr:
>>>>>>>> 00000000: 28 00 d7 ff 15 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>> (...............
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmutil: RxHdr:
>>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>>> ............
>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>> brcmutil: RxHdr:
>>>>>>>> 00000000: 20 00 df ff 1a 00 00 0c 00 36 00 00
>>>>>>>> ........6..
>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>> brcmfmac: brcmf_config_dongle power save set to enabled
>>>>>>>> brcmfmac: brcmf_dongle_roam Internal Roaming = On
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> It seem this is the last command being sent. Could you provide file
>>>>>>> contents
>>>>>>> in /sys/kernel/debug/brcmfmac/mmc*/
>>>>>>>
>>>>>>> Not sure if Yocto mounts debugfs on /sys/kernel/debug. Otherwise
>>>>>>> you can
>>>>>>> do:
>>>>>>>
>>>>>>> # mkdir /tmp/debugfs
>>>>>>> # mount -t debugfs none /tmp/debugfs
>>>>>>>
>>>>>>
>>>>>> Please see below:
>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls
>>>>>> counters  forensics  fws_stats
>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls -l
>>>>>> total 0
>>>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 counters
>>>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 forensics
>>>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 fws_stats
>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat counters
>>>>>> intrcount:    19
>>>>>> lastintrs:    0
>>>>>> pollcnt:      0
>>>>>> regfails:     0
>>>>>> tx_sderrs:    0
>>>>>> fcqueued:     0
>>>>>> rxrtx:        0
>>>>>> rx_toolong:   0
>>>>>> rxc_errors:   0
>>>>>> rx_hdrfail:   0
>>>>>> rx_badhdr:    0
>>>>>> rx_badseq:    0
>>>>>> fc_rcvd:      0
>>>>>> fc_xoff:      0
>>>>>> fc_xon:       0
>>>>>> rxglomfail:   0
>>>>>> rxglomframes: 0
>>>>>> rxglompkts:   0
>>>>>> f2rxhdrs:     36
>>>>>> f2rxdata:     3
>>>>>> f2txdata:     0
>>>>>> f1regdata:    42
>>>>>> tickcnt:      53
>>>>>> tx_ctlerrs:   0
>>>>>> tx_ctlpkts:   17
>>>>>> rx_ctlerrs:   0
>>>>>> rx_ctlpkts:   17
>>>>>> rx_readahead: 0
>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat forensics
>>>>>>
>>>>>> RTE (USB-SDIO-CDC) 6.30.171.24.20 (B0 Station/P2P) on BCM4335 r1 @
>>>>>> 37.4/161.3/161.3MHz
>>>>>> 000000.011 sdpcmdcdc0: Broadcom SDPCMD CDC driver
>>>>>> 000000.018 reclaim section 0: Returned 42772 bytes to the heap
>>>>>> 000000.061 wl0: Broadcom BCM4335 802.11 Wireless Controller
>>>>>> 6.30.171.24.20 (B0 Station/P2P)
>>>>>> 000000.070 reclaim section 1: Returned 62128 bytes to the heap
>>>>>> 000000.209 wl0: wlc_enable_probe_req: state down, deferring setting of
>>>>>> host flags
>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ring setting of
>>>>>> host flags
>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat fws_stats
>>>>>> header_pulls:      0
>>>>>> header_only_pkt:   0
>>>>>> tlv_parse_failed:  0
>>>>>> tlv_invalid_type:  0
>>>>>> mac_update_fails:  0
>>>>>> ps_update_fails:   0
>>>>>> if_update_fails:   0
>>>>>> pkt2bus:           0
>>>>>> generic_error:     0
>>>>>> rollback_success:  0
>>>>>> rollback_failed:   0
>>>>>> delayq_full:       0
>>>>>> supprq_full:       0
>>>>>> txs_indicate:      0
>>>>>> txs_discard:       0
>>>>>> txs_suppr_core:    0
>>>>>> txs_suppr_ps:      0
>>>>>> txs_tossed:        0
>>>>>> txs_host_tossed:   0
>>>>>> bus_flow_block:    0
>>>>>> fws_flow_block:    0
>>>>>> send_pkts:         BK:0 BE:0 VO:0 VI:0 BCMC:0
>>>>>> requested_sent:    BK:0 BE:0 VO:0 VI:0 BCMC:0
>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1#
>>>>>
>>>>>
>>>>>
>>>>> Nothing exciting there either. Let's take a step back. The rfkill
>>>>> seems an
>>>>> issue, but I first would like to know if you can get connectivity.
>>>>> Does the
>>>>> 'ifconfig wlan0 up' complete at all and is it successful.
>>>>>
>>>>
>>>> The second rootfs i tried does not have rfkill.
>>>> But shows the similar issue with 'ifconfig wlan0 up'.
>>>>
>>>>> As you noticed during the up sequence there is a timeout. I would
>>>>> like to
>>>>> know what command that is. Could you run it again with debug=1546?
>>>>>
>>>>
>>>> Will run the test now.
>>>> Thanks for the help.
>>>>
>>>
>>> Please see blow log:
>>> Note: there's no rfkill in this rootfs.
>>>
>>> root@freescale ~$ ifconfgi  ig wlan0
>>> brcmfmac: brcmf_netdev_get_stats Enter, idx=0
>>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>>            BROADCAST MULTICAST  MTU:1500  Metric:1
>>>            RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>            TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>            collisions:0 txqueuelen:1000
>>>            RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>
>>> root@freescale ~$ ifconfig wlan0 up
>>> brcmfmac: brcmf_netdev_open Enter, idx=0
>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmutil: TxHdr:
>>> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00
>>> /...............
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>
>>> <--------- I noticed a few seconds stall here
>>>
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdio_readframes Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>> brcmfmac: brcmf_fil_iovar_data_get name=toe_ol, len=4
>>> brcmutil: data
>>> 00000000: 28 aa 49 80                                      (.I.
>>>
>>> brcmutil: RxHdr:
>>> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00              '........&..
>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>> brcmfmac: brcmf_fil_cmd_int_set cmd=2, value=0
>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmutil: TxHdr:
>>> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00
>>> (...............
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmutil: RxHdr:
>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdio_readframes Enter
>>> brcmutil: RxHdr:
>>> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00               ........2..
>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>
>>> brcmfmac: brcmf_fil_cmd_int_set cmd=185, value=40
>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmutil: TxHdr:
>>> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00
>>> (...............
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> brcmutil: RxHdr:
>>> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00              .........2..
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_fweh_event_worker event FIFO_CREDIT_MAP (74) ifidx 0
>>> bsscfg 0 addr 80:80:80:80:80:80
>>> brcmfmac: brcmf_fweh_event_worker   version 2 flags 24 status 0 reason 0
>>> brcmutil: event payload, len=6
>>> 00000000: 09 27 12 09 09 02                                .'....
>>> brcmfmac: brcmf_fws_notify_credit_map enter: credits 09:27:12:09:09:02
>>> brcmfmac: brcmf_fweh_event_worker event IF (54) ifidx 0 bsscfg 0 addr
>>> 00:90:4c:c5:12:38
>>> brcmfmac: brcmf_fweh_event_worker   version 2 flags 0 status 0 reason 0
>>> brcmutil: event payload, len=5
>>> 00000000: 00 01 00 00 00                                   .....
>>> brcmfmac: brcmf_fweh_handle_if_event action: 1 idx: 0 bsscfg: 0 flags:
>>> 0 role: 0
>>> brcmfmac: brcmf_fweh_handle_if_event adding wl0 (00:90:4c:c5:12:38)
>>> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>> brcmfmac: brcmf_add_if: ignore IF event
>>> brcmutil: RxHdr:
>>> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00               ........3..
>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>> brcmfmac: brcmf_fil_cmd_int_set cmd=187, value=40
>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmutil: RxHdr:
>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmutil: TxHdr:
>>> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00
>>> (...............
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdio_readframes Enter
>>> brcmutil: RxHdr:
>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> .......
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdio_readframes Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>> brcmfmac: brcmf_dongle_scantime: Scan unassoc time error (-110)
>>> brcmutil: RxHdr:
>>> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00               ........4..
>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>> brcmfmac: brcmf_fil_cmd_int_set cmd=86, value=2
>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmutil: RxHdr:
>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmutil: TxHdr:
>>> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00
>>> (...............
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> .................................
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdio_readframes Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>> brcmfmac: brcmf_netdev_open: failed to bring up cfg80211
>>> brcmutil: RxHdr:
>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>> ifconfig: SIOCSIFFLAGS: Operationbrcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>   not permitted
>>> root@freescale ~$ brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110
>>>
>>> brcmfmac: brcmf_sdbrcm_rxfail: abort command, terminate frame, send NAK
>>> root@freescale ~$
>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_word: Failed to write
>>> word, Err: 0xffffff92
>>>
>>> root@freescale ~$
>>> root@freescale ~$
>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_word: Failed to write
>>> word, Err: 0xffffff92
>>>
>>> root@freescale ~$ brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>> brcmfmac: brcmf_sdio_readframes Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmutil: RxHdr:
>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>> F1:@0x1001f=01, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>> F1:@0x1001f=01, Err: -110
>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>> F1:@0x1001f=01, Err: -110
>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>
>>
>> One more question. I looked up the board you mentioined. What I found
>> has a dedicated SDIO slot for Wifi. Are you using that and do you know
>> if that is an SDIO3.0 or not? Earlier in the thread i found this logging:
>>
>>  > root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>  > mmc0: new high speed SDIO card at address 0001
>>
>> I think it means it is a SDIO2, but I like to be sure.
>
>
> And just for the hack of it. Can you send your .config and a full kernel log
> (as attachments).
>
>

Please see attachment.

Regards
Dong Aisheng

>> Gr. AvS
>>
>>> Regards
>>> Dong Aisheng
>>>
>>
>
>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: minicom-1106-sl-1.log --]
[-- Type: text/x-log; charset=US-ASCII; name="minicom-1106-sl-1.log", Size: 13227 bytes --]



U-Boot 2013.04 (Sep 06 2013 - 12:07:05)

CPU:   Freescale i.MX6SL rev1.2 at 396 MHz
CPU:   Temperature 43 C, calibration data: 0x5955125f
Reset cause: POR
Board: MX6SLEVK
I2C:   ready
DRAM:  1 GiB
MMC:   FSL_SDHC: 0
In:    serial
Out:   serial
Err:   serial
Found PFUZE100! deviceid=10,revid=11
Net:   FEC [PRIME]
Normal Boot
Hit any key to stop autoboot:  3 \b\b\b 2 \b\b\b 1 \b\b\b 0 
Booting from net ...
Using FEC device
TFTP from server 10.192.224.44; our IP address is 10.192.242.153; sending through gateway 10.192.242.254
Filename 'zImage.as.imx'.
Load address: 0x80800000
Loading: *\b#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ######################################################
	 881.8 KiB/s
done
Bytes transferred = 4601736 (463788 hex)
Using FEC device
TFTP from server 10.192.224.44; our IP address is 10.192.242.153; sending through gateway 10.192.242.254
Filename 'imx6sl-evk.dtb'.
Load address: 0x82800000
Loading: *\b####
	 655.3 KiB/s
done
Bytes transferred = 16118 (3ef6 hex)
## Flattened Device Tree blob at 82800000
   Booting using the fdt blob at 0x82800000
   Using Device Tree in place at 82800000, end 82806ef5

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 3.12.0-rc3+ (b29396@shlinux2) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #240 SMP Tue Nov 5 16:42:05 CST 2013
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Freescale i.MX6 SoloLite (Device Tree), model: Freescale i.MX6 SoloLite EVK Board
Memory policy: ECC disabled, Data cache writealloc
PERCPU: Embedded 7 pages/cpu @81098000 s7488 r8192 d12992 u32768
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
Kernel command line: console=ttymxc0,115200 root=/dev/nfs ip=dhcp nfsroot=10.192.224.44:/data/rootfs_home/b29396/rootfs-mx6x-up,v3,tcp brcmfmac.debug=0x1546
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1030740K/1048576K available (5919K kernel code, 287K rwdata, 1808K rodata, 323K init, 375K bss, 17836K reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc0800000 - 0xff000000   (1000 MB)
    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x80793f24   (7728 kB)
      .init : 0x80794000 - 0x807e4d40   ( 324 kB)
      .data : 0x807e6000 - 0x8082dc60   ( 288 kB)
       .bss : 0x8082dc68 - 0x8088baec   ( 376 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
NR_IRQS:16 nr_irqs:16 16
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410000c8, AUX_CTRL 0x32030000, Cache size: 256 kB
sched_clock: 32 bits at 49MHz, resolution 20ns, wraps every 86767ms
Console: colour dummy device 80x30
Calibrating delay loop... 789.70 BogoMIPS (lpj=3948544)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x805ce070 - 0x805ce0e0
Brought up 1 CPUs
SMP: Total of 1 processors activated.
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
pinctrl core: initialized pinctrl subsystem
regulator-dummy: no parameters
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
syscon 20c8000.anatop: regmap [mem 0x020c8000-0x020c8fff] registered
vdd1p1: 800 <--> 1375 mV at 1100 mV 
vdd3p0: 2800 <--> 3150 mV at 3000 mV 
vdd2p5: 2100 <--> 2850 mV at 2500 mV 
cpu: 725 <--> 1450 mV at 1100 mV 
vddpu: 725 <--> 1450 mV 
vddsoc: 725 <--> 1450 mV at 1200 mV 
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
imx6sl-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
Advanced Linux Sound Architecture Driver Initialized.
Switched to clocksource mxc_timer1
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP: reno registered
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
hw perfevents: enabled with ARMv7 Cortex-A9 PMU driver, 7 counters available
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NFS: Registering the id_resolver key type
Key type id_resolver registered
Key type id_legacy registered
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.22)
msgmni has been set to 2013
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
imx-sdma 20ec000.sdma: initialized
Serial: IMX driver
2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58, base_baud = 5000000) is a IMX
console [ttymxc0] enabled
serial: Freescale lpuart driver
[drm] Initialized drm 1.1.0 20060810
brd: module loaded
loop: module loaded
libphy: fec_enet_mii_bus: probed
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-mxc: Freescale On-Chip EHCI Host driver
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0
i2c /dev entries driver
imx2-wdt 20bc000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: no vqmmc regulator found
mmc0: no vmmc regulator found
mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
mmc1: no vqmmc regulator found
mmc1: no vmmc regulator found
mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
mmc2: no vqmmc regulator found
mmc2: no vmmc regulator found
mmc2: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
[drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[drm] No driver support for vblank timestamp query.
[drm] Initialized imx-drm 1.0.0 20120507 on minor 0
TCP: cubic registered
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
Key type dns_resolver registered
snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 1970-01-01 00:00:00 UTC (0)
imx-drm imx-drm: No connectors reported connected with modes
[drm] Cannot find any crtc or sizes - going 1024x768
Console: switching to colour frame buffer device 128x48
imx-drm imx-drm: fb0:  frame buffer device
imx-drm imx-drm: registered panic notifier
mmc1: new high speed SDHC card at address aaaa
fec 2188000.ethernet eth0: Freescale FEC PHY driver [Generic PHY] (mii_bus:phy_addr=2188000.ethernet:00, irq=-1)
mmcblk0: mmc1:aaaa SU08G 7.40 GiB 
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
 mmcblk0: p1 p2
libphy: 2188000.ethernet:00 - Link is Up - 100/Full
IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 10.192.242.252, my address is 10.192.242.69
IP-Config: Complete:
     device=eth0, hwaddr=00:04:9f:02:76:e5, ipaddr=10.192.242.69, mask=255.255.255.0, gw=10.192.242.254
     host=10.192.242.69, domain=ap.freescale.net, nis-domain=(none)
     bootserver=0.0.0.0, rootserver=10.192.224.44, rootpath=
     nameserver0=10.192.130.201, nameserver1=10.211.0.3, nameserver2=10.196.51.200
ALSA device list:
  No soundcards found.
VFS: Mounted root (nfs filesystem) readonly on device 0:11.
devtmpfs: mounted
Freeing unused kernel memory: 320K (80794000 - 807e4000)
starting pid 50, tty '': '/etc/rc.d/rcS'
Mounting /proc and /sys 
Starting the hotplug events dispatcher udevd
Synthesizing initial hotplug evenudevd (59): /proc/59/oom_adj is deprecated, please use /proc/59/oom_score_adj instead.
ts
imx-sdma 20ec000.sdma: firmware not found
Setting the hostname to freescale
Mounting filesystems
mount: mounting usbfs on /proc/bus/usb failed: No such file or directory
Generating keys for the dropbear ssh server: 
/etc/rc.d/init.d/dropbear: line 24: dropbearkey: not found
Starting the dropbear ssh server: 
/usr/sbin/dropbear: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory
gtk: creating gdk-pixbuf.loaders
pango: creating module list
starting pid 532, tty '': '/etc/rc.d/rc_mxc.S'

arm-none-linux-gnueabi-gcc (4.4.4_09.06.2010) 4.4.4
root filesystem built on Sun, 18 Sep 2011 05:49:56 -0500
Freescale Semiconductor, Inc.

freescale login: root
login[534]: root login on 'ttymxc0'


BusyBox v1.18.5 () built-in shell (ash)
Enter 'help' for a list of built-in commands.

root@freescale ~$ 
root@freescale ~$ 
root@freescale ~$ 
root@freescale ~$ 
root@freescale ~$ 
root@freescale ~$ 
root@freescale ~$ 
root@freescale ~$ 
root@freescale ~$ mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
mmc0: new high speed SDIO card at address 0001
brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err: 0xffffffac
brcmfmac: brcmf_sdio_regrw_helper: failed with -84
brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength init done for chip 4335 rev 1 pmurev 18
brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
brcmfmac: brcmf_fil_cmd_data: Failed err=-23

root@freescale ~$ 
root@freescale ~$ 
root@freescale ~$ wlan\b\b\b\bifon\b\bconfig -\bwlan0
wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38  
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@freescale ~$ 
root@freescale ~$ 
root@freescale ~$ ifconfig wlan0 up
brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
brcmfmac: brcmf_add_if: ignore IF event
brcmfmac: brcmf_fil_cmd_data: Failed err=-110
brcmfmac: brcmf_fil_cmd_data: Failed err=-23
root@freescale ~$ 
root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1001f=01, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte F1:@0x1001f=ff, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte F1:@0x1001f=ff, Err: -110

root@freescale ~$ 
root@freescale ~$ 
root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to write byte F1:@0x1001f=01, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte F1:@0x1001f=ff, Err: -110
brcmfmac: brcmf_sdioh_request_byte: Failed to read byte F1:@0x1001f=ff, Err: -110

root@freescale ~$ 
root@freescale ~$ 
root@freescale ~$ 
root@freescale ~$ 

U-Boot 2013.04 (Sep 06 2013 - 12:07:05)

CPU:   Freescale i.MX6SL rev1.2 at 396 MHz
CPU:   Temperature 42 C, calibration data: 0x5955125f
Reset cause: POR
Board: MX6SLEVK
I2C:   ready
DRAM:  1 GiB
MMC:   FSL_SDHC: 0
In:    serial
Out:   serial
Err:   serial
Found PFUZE100! deviceid=10,revid=11
Net:   FEC [PRIME]
Normal Boot
Hit any key to stop autoboot:  3 \b\b\b 0 
=> 
=> 
=> 
=> 
=> 
=> 

[-- Attachment #3: .config --]
[-- Type: application/octet-stream, Size: 73775 bytes --]

#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.12.0-rc3 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_STACKTRACE_SUPPORT=y
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_RWSEM_GENERIC_SPINLOCK=y
CONFIG_ARCH_HAS_CPUFREQ=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_NEED_DMA_MAP_STATE=y
CONFIG_FIQ=y
CONFIG_VECTORS_BASE=0xffff0000
CONFIG_ARM_PATCH_PHYS_VIRT=y
CONFIG_GENERIC_BUG=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
CONFIG_IRQ_WORK=y
CONFIG_BUILDTIME_EXTABLE_SORT=y

#
# General setup
#
CONFIG_INIT_ENV_ARG_LIMIT=32
CONFIG_CROSS_COMPILE=""
# CONFIG_COMPILE_TEST is not set
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
CONFIG_HAVE_KERNEL_GZIP=y
CONFIG_HAVE_KERNEL_LZMA=y
CONFIG_HAVE_KERNEL_XZ=y
CONFIG_HAVE_KERNEL_LZO=y
CONFIG_HAVE_KERNEL_LZ4=y
# CONFIG_KERNEL_GZIP is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
CONFIG_KERNEL_LZO=y
# CONFIG_KERNEL_LZ4 is not set
CONFIG_DEFAULT_HOSTNAME="(none)"
CONFIG_SWAP=y
CONFIG_SYSVIPC=y
CONFIG_SYSVIPC_SYSCTL=y
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_FHANDLE is not set
# CONFIG_AUDIT is not set

#
# IRQ subsystem
#
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_HARDIRQS_SW_RESEND=y
CONFIG_GENERIC_IRQ_CHIP=y
CONFIG_IRQ_DOMAIN=y
# CONFIG_IRQ_DOMAIN_DEBUG is not set
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
CONFIG_KTIME_SCALAR=y
CONFIG_GENERIC_CLOCKEVENTS=y
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
CONFIG_ARCH_HAS_TICK_BROADCAST=y
CONFIG_GENERIC_CLOCKEVENTS_BROADCAST=y

#
# Timers subsystem
#
CONFIG_TICK_ONESHOT=y
CONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not set
CONFIG_NO_HZ_IDLE=y
CONFIG_NO_HZ=y
CONFIG_HIGH_RES_TIMERS=y

#
# CPU/Task time and stats accounting
#
CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_IRQ_TIME_ACCOUNTING is not set
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set

#
# RCU Subsystem
#
CONFIG_TREE_RCU=y
# CONFIG_PREEMPT_RCU is not set
CONFIG_RCU_STALL_COMMON=y
# CONFIG_RCU_USER_QS is not set
CONFIG_RCU_FANOUT=32
CONFIG_RCU_FANOUT_LEAF=16
# CONFIG_RCU_FANOUT_EXACT is not set
# CONFIG_RCU_FAST_NO_HZ is not set
# CONFIG_TREE_RCU_TRACE is not set
# CONFIG_RCU_NOCB_CPU is not set
# CONFIG_IKCONFIG is not set
CONFIG_LOG_BUF_SHIFT=18
CONFIG_GENERIC_SCHED_CLOCK=y
CONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not set
# CONFIG_CGROUP_FREEZER is not set
# CONFIG_CGROUP_DEVICE is not set
# CONFIG_CPUSETS is not set
# CONFIG_CGROUP_CPUACCT is not set
# CONFIG_RESOURCE_COUNTERS is not set
# CONFIG_CGROUP_PERF is not set
# CONFIG_CGROUP_SCHED is not set
# CONFIG_BLK_CGROUP is not set
# CONFIG_CHECKPOINT_RESTORE is not set
# CONFIG_NAMESPACES is not set
# CONFIG_UIDGID_STRICT_TYPE_CHECKS is not set
# CONFIG_SCHED_AUTOGROUP is not set
# CONFIG_SYSFS_DEPRECATED is not set
CONFIG_RELAY=y
CONFIG_BLK_DEV_INITRD=y
CONFIG_INITRAMFS_SOURCE=""
CONFIG_RD_GZIP=y
# CONFIG_RD_BZIP2 is not set
# CONFIG_RD_LZMA is not set
# CONFIG_RD_XZ is not set
# CONFIG_RD_LZO is not set
# CONFIG_RD_LZ4 is not set
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
CONFIG_SYSCTL=y
CONFIG_ANON_INODES=y
CONFIG_HAVE_UID16=y
CONFIG_EXPERT=y
CONFIG_UID16=y
# CONFIG_SYSCTL_SYSCALL is not set
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SIGNALFD=y
CONFIG_TIMERFD=y
CONFIG_EVENTFD=y
CONFIG_SHMEM=y
CONFIG_AIO=y
# CONFIG_EMBEDDED is not set
CONFIG_HAVE_PERF_EVENTS=y
CONFIG_PERF_USE_VMALLOC=y

#
# Kernel Performance Events And Counters
#
CONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
CONFIG_VM_EVENT_COUNTERS=y
# CONFIG_SLUB_DEBUG is not set
# CONFIG_COMPAT_BRK is not set
# CONFIG_SLAB is not set
CONFIG_SLUB=y
# CONFIG_SLOB is not set
CONFIG_SLUB_CPU_PARTIAL=y
# CONFIG_PROFILING is not set
CONFIG_HAVE_OPROFILE=y
# CONFIG_KPROBES is not set
# CONFIG_JUMP_LABEL is not set
# CONFIG_HAVE_64BIT_ALIGNED_ACCESS is not set
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KRETPROBES=y
CONFIG_HAVE_ARCH_TRACEHOOK=y
CONFIG_HAVE_DMA_ATTRS=y
CONFIG_HAVE_DMA_CONTIGUOUS=y
CONFIG_USE_GENERIC_SMP_HELPERS=y
CONFIG_GENERIC_SMP_IDLE_THREAD=y
CONFIG_GENERIC_IDLE_POLL_SETUP=y
CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y
CONFIG_HAVE_CLK=y
CONFIG_HAVE_DMA_API_DEBUG=y
CONFIG_HAVE_HW_BREAKPOINT=y
CONFIG_HAVE_ARCH_JUMP_LABEL=y
CONFIG_ARCH_WANT_IPC_PARSE_VERSION=y
CONFIG_HAVE_ARCH_SECCOMP_FILTER=y
CONFIG_HAVE_CONTEXT_TRACKING=y
CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
CONFIG_MODULES_USE_ELF_REL=y
CONFIG_CLONE_BACKWARDS=y
CONFIG_OLD_SIGSUSPEND3=y
CONFIG_OLD_SIGACTION=y

#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not set
CONFIG_HAVE_GENERIC_DMA_COHERENT=y
CONFIG_RT_MUTEXES=y
CONFIG_BASE_SMALL=0
CONFIG_MODULES=y
# CONFIG_MODULE_FORCE_LOAD is not set
CONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
CONFIG_MODVERSIONS=y
CONFIG_MODULE_SRCVERSION_ALL=y
# CONFIG_MODULE_SIG is not set
CONFIG_STOP_MACHINE=y
CONFIG_BLOCK=y
CONFIG_LBDAF=y
# CONFIG_BLK_DEV_BSG is not set
# CONFIG_BLK_DEV_BSGLIB is not set
# CONFIG_BLK_DEV_INTEGRITY is not set
# CONFIG_BLK_CMDLINE_PARSER is not set

#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not set
CONFIG_MSDOS_PARTITION=y
CONFIG_EFI_PARTITION=y

#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
CONFIG_IOSCHED_DEADLINE=y
CONFIG_IOSCHED_CFQ=y
# CONFIG_DEFAULT_DEADLINE is not set
CONFIG_DEFAULT_CFQ=y
# CONFIG_DEFAULT_NOOP is not set
CONFIG_DEFAULT_IOSCHED="cfq"
CONFIG_INLINE_SPIN_UNLOCK_IRQ=y
CONFIG_INLINE_READ_UNLOCK=y
CONFIG_INLINE_READ_UNLOCK_IRQ=y
CONFIG_INLINE_WRITE_UNLOCK=y
CONFIG_INLINE_WRITE_UNLOCK_IRQ=y
CONFIG_MUTEX_SPIN_ON_OWNER=y
CONFIG_FREEZER=y

#
# System Type
#
CONFIG_MMU=y
CONFIG_ARCH_MULTIPLATFORM=y
# CONFIG_ARCH_INTEGRATOR is not set
# CONFIG_ARCH_REALVIEW is not set
# CONFIG_ARCH_VERSATILE is not set
# CONFIG_ARCH_AT91 is not set
# CONFIG_ARCH_CLPS711X is not set
# CONFIG_ARCH_GEMINI is not set
# CONFIG_ARCH_EBSA110 is not set
# CONFIG_ARCH_EP93XX is not set
# CONFIG_ARCH_FOOTBRIDGE is not set
# CONFIG_ARCH_NETX is not set
# CONFIG_ARCH_IOP13XX is not set
# CONFIG_ARCH_IOP32X is not set
# CONFIG_ARCH_IOP33X is not set
# CONFIG_ARCH_IXP4XX is not set
# CONFIG_ARCH_DOVE is not set
# CONFIG_ARCH_KIRKWOOD is not set
# CONFIG_ARCH_MV78XX0 is not set
# CONFIG_ARCH_ORION5X is not set
# CONFIG_ARCH_MMP is not set
# CONFIG_ARCH_KS8695 is not set
# CONFIG_ARCH_W90X900 is not set
# CONFIG_ARCH_LPC32XX is not set
# CONFIG_ARCH_PXA is not set
# CONFIG_ARCH_MSM is not set
# CONFIG_ARCH_SHMOBILE is not set
# CONFIG_ARCH_RPC is not set
# CONFIG_ARCH_SA1100 is not set
# CONFIG_ARCH_S3C24XX is not set
# CONFIG_ARCH_S3C64XX is not set
# CONFIG_ARCH_S5P64X0 is not set
# CONFIG_ARCH_S5PC100 is not set
# CONFIG_ARCH_S5PV210 is not set
# CONFIG_ARCH_EXYNOS is not set
# CONFIG_ARCH_SHARK is not set
# CONFIG_ARCH_DAVINCI is not set
# CONFIG_ARCH_OMAP1 is not set

#
# Multiple platform selection
#

#
# CPU Core family selection
#
CONFIG_ARCH_MULTI_V6=y
CONFIG_ARCH_MULTI_V7=y
CONFIG_ARCH_MULTI_V6_V7=y
# CONFIG_ARCH_MULTI_CPU_AUTO is not set
# CONFIG_ARCH_MVEBU is not set
# CONFIG_ARCH_BCM is not set
# CONFIG_ARCH_BCM2835 is not set
# CONFIG_ARCH_CNS3XXX is not set
# CONFIG_GPIO_PCA953X is not set
# CONFIG_KEYBOARD_GPIO_POLLED is not set
# CONFIG_ARCH_HIGHBANK is not set
# CONFIG_ARCH_KEYSTONE is not set
CONFIG_ARCH_MXC=y

#
# Freescale i.MX support
#
# CONFIG_MXC_IRQ_PRIOR is not set
CONFIG_MXC_TZIC=y
CONFIG_MXC_AVIC=y
CONFIG_MXC_DEBUG_BOARD=y
CONFIG_HAVE_EPIT=y
# CONFIG_MXC_USE_EPIT is not set
CONFIG_ARCH_HAS_RNGA=y
CONFIG_HAVE_IMX_ANATOP=y
CONFIG_HAVE_IMX_GPC=y
CONFIG_HAVE_IMX_MMDC=y
CONFIG_HAVE_IMX_SRC=y
CONFIG_ARCH_MXC_IOMUX_V3=y
CONFIG_SOC_IMX31=y
CONFIG_SOC_IMX35=y
CONFIG_SOC_IMX5=y
CONFIG_SOC_IMX51=y

#
# MX31 platforms:
#
CONFIG_MACH_MX31ADS=y
CONFIG_MACH_MX31LILLY=y
CONFIG_MACH_MX31LITE=y
CONFIG_MACH_PCM037=y
CONFIG_MACH_PCM037_EET=y
CONFIG_MACH_MX31_3DS=y
# CONFIG_MACH_MX31_3DS_MXC_NAND_USE_BBT is not set
CONFIG_MACH_MX31MOBOARD=y
CONFIG_MACH_QONG=y
CONFIG_MACH_ARMADILLO5X0=y
CONFIG_MACH_KZM_ARM11_01=y
CONFIG_MACH_BUG=y
CONFIG_MACH_IMX31_DT=y

#
# MX35 platforms:
#
CONFIG_MACH_PCM043=y
CONFIG_MACH_MX35_3DS=y
# CONFIG_MACH_EUKREA_CPUIMX35SD is not set
CONFIG_MACH_VPR200=y

#
# i.MX51 machines:
#
CONFIG_MACH_IMX51_DT=y
# CONFIG_MACH_MX51_BABBAGE is not set
CONFIG_MACH_EUKREA_CPUIMX51SD=y
CONFIG_MACH_EUKREA_MBIMXSD51_BASEBOARD=y

#
# Device tree only
#
CONFIG_SOC_IMX53=y
CONFIG_SOC_IMX6Q=y
CONFIG_SOC_IMX6SL=y
CONFIG_SOC_VF610=y
CONFIG_IMX_HAVE_PLATFORM_FEC=y
CONFIG_IMX_HAVE_PLATFORM_FLEXCAN=y
CONFIG_IMX_HAVE_PLATFORM_FSL_USB2_UDC=y
CONFIG_IMX_HAVE_PLATFORM_GPIO_KEYS=y
CONFIG_IMX_HAVE_PLATFORM_IMX2_WDT=y
CONFIG_IMX_HAVE_PLATFORM_IMX_FB=y
CONFIG_IMX_HAVE_PLATFORM_IMX_I2C=y
CONFIG_IMX_HAVE_PLATFORM_IMX_KEYPAD=y
CONFIG_IMX_HAVE_PLATFORM_IMX_SSI=y
CONFIG_IMX_HAVE_PLATFORM_IMX_UART=y
CONFIG_IMX_HAVE_PLATFORM_IPU_CORE=y
CONFIG_IMX_HAVE_PLATFORM_MXC_EHCI=y
CONFIG_IMX_HAVE_PLATFORM_MXC_MMC=y
CONFIG_IMX_HAVE_PLATFORM_MXC_NAND=y
CONFIG_IMX_HAVE_PLATFORM_MXC_RNGA=y
CONFIG_IMX_HAVE_PLATFORM_MXC_RTC=y
CONFIG_IMX_HAVE_PLATFORM_MXC_W1=y
CONFIG_IMX_HAVE_PLATFORM_SDHCI_ESDHC_IMX=y
CONFIG_IMX_HAVE_PLATFORM_SPI_IMX=y
# CONFIG_ARCH_OMAP2 is not set
# CONFIG_ARCH_OMAP3 is not set
# CONFIG_ARCH_OMAP4 is not set
# CONFIG_SOC_OMAP5 is not set
# CONFIG_SOC_AM33XX is not set
# CONFIG_SOC_AM43XX is not set
# CONFIG_ARCH_PICOXCELL is not set
# CONFIG_ARCH_ROCKCHIP is not set
# CONFIG_ARCH_SOCFPGA is not set
# CONFIG_PLAT_SPEAR is not set
# CONFIG_ARCH_STI is not set
# CONFIG_ARCH_SHMOBILE_MULTI is not set
# CONFIG_ARCH_SUNXI is not set
# CONFIG_ARCH_SIRF is not set
# CONFIG_ARCH_TEGRA is not set
# CONFIG_ARCH_U8500 is not set
# CONFIG_ARCH_VEXPRESS is not set
# CONFIG_ARCH_VIRT is not set
# CONFIG_ARCH_WM8750 is not set
# CONFIG_ARCH_WM8850 is not set
# CONFIG_ARCH_ZYNQ is not set

#
# Processor Type
#
CONFIG_CPU_V6=y
CONFIG_CPU_V6K=y
CONFIG_CPU_V7=y
CONFIG_CPU_32v6=y
CONFIG_CPU_32v6K=y
CONFIG_CPU_32v7=y
CONFIG_CPU_ABRT_EV6=y
CONFIG_CPU_ABRT_EV7=y
CONFIG_CPU_PABRT_V6=y
CONFIG_CPU_PABRT_V7=y
CONFIG_CPU_CACHE_V6=y
CONFIG_CPU_CACHE_V7=y
CONFIG_CPU_CACHE_VIPT=y
CONFIG_CPU_COPY_V6=y
CONFIG_CPU_TLB_V6=y
CONFIG_CPU_TLB_V7=y
CONFIG_CPU_HAS_ASID=y
CONFIG_CPU_CP15=y
CONFIG_CPU_CP15_MMU=y
CONFIG_CPU_USE_DOMAINS=y

#
# Processor Features
#
# CONFIG_ARCH_PHYS_ADDR_T_64BIT is not set
CONFIG_ARM_THUMB=y
# CONFIG_ARM_THUMBEE is not set
CONFIG_ARM_VIRT_EXT=y
# CONFIG_CPU_ICACHE_DISABLE is not set
# CONFIG_CPU_DCACHE_DISABLE is not set
# CONFIG_CPU_BPREDICT_DISABLE is not set
CONFIG_KUSER_HELPERS=y
CONFIG_DMA_CACHE_RWFO=y
CONFIG_OUTER_CACHE=y
CONFIG_OUTER_CACHE_SYNC=y
CONFIG_MIGHT_HAVE_CACHE_L2X0=y
CONFIG_CACHE_L2X0=y
CONFIG_ARM_L1_CACHE_SHIFT_6=y
CONFIG_ARM_L1_CACHE_SHIFT=6
CONFIG_ARM_DMA_MEM_BUFFERABLE=y
CONFIG_ARM_NR_BANKS=8
CONFIG_MULTI_IRQ_HANDLER=y
# CONFIG_ARM_ERRATA_326103 is not set
# CONFIG_ARM_ERRATA_411920 is not set
# CONFIG_ARM_ERRATA_430973 is not set
# CONFIG_PL310_ERRATA_588369 is not set
# CONFIG_ARM_ERRATA_643719 is not set
# CONFIG_ARM_ERRATA_720789 is not set
# CONFIG_PL310_ERRATA_727915 is not set
CONFIG_ARM_ERRATA_754322=y
# CONFIG_ARM_ERRATA_754327 is not set
# CONFIG_ARM_ERRATA_364296 is not set
CONFIG_ARM_ERRATA_764369=y
# CONFIG_PL310_ERRATA_769419 is not set
CONFIG_ARM_ERRATA_775420=y
# CONFIG_ARM_ERRATA_798181 is not set
# CONFIG_ARM_ERRATA_773022 is not set

#
# Bus support
#
# CONFIG_PCI_SYSCALL is not set
# CONFIG_PCCARD is not set

#
# Kernel Features
#
CONFIG_HAVE_SMP=y
CONFIG_SMP=y
CONFIG_SMP_ON_UP=y
CONFIG_ARM_CPU_TOPOLOGY=y
# CONFIG_SCHED_MC is not set
# CONFIG_SCHED_SMT is not set
CONFIG_HAVE_ARM_SCU=y
# CONFIG_HAVE_ARM_ARCH_TIMER is not set
CONFIG_HAVE_ARM_TWD=y
# CONFIG_MCPM is not set
# CONFIG_VMSPLIT_3G is not set
CONFIG_VMSPLIT_2G=y
# CONFIG_VMSPLIT_1G is not set
CONFIG_PAGE_OFFSET=0x80000000
CONFIG_NR_CPUS=4
CONFIG_HOTPLUG_CPU=y
# CONFIG_ARM_PSCI is not set
CONFIG_ARCH_NR_GPIO=0
# CONFIG_PREEMPT_NONE is not set
CONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set
CONFIG_HZ_FIXED=0
CONFIG_HZ_100=y
# CONFIG_HZ_200 is not set
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not set
# CONFIG_HZ_500 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=100
CONFIG_SCHED_HRTICK=y
CONFIG_AEABI=y
# CONFIG_OABI_COMPAT is not set
# CONFIG_ARCH_SPARSEMEM_DEFAULT is not set
# CONFIG_ARCH_SELECT_MEMORY_MODEL is not set
CONFIG_HAVE_ARCH_PFN_VALID=y
# CONFIG_HIGHMEM is not set
CONFIG_HW_PERF_EVENTS=y
CONFIG_ARCH_WANT_GENERAL_HUGETLB=y
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
CONFIG_HAVE_MEMBLOCK=y
# CONFIG_HAVE_BOOTMEM_INFO_NODE is not set
CONFIG_PAGEFLAGS_EXTENDED=y
CONFIG_SPLIT_PTLOCK_CPUS=4
CONFIG_COMPACTION=y
CONFIG_MIGRATION=y
# CONFIG_PHYS_ADDR_T_64BIT is not set
CONFIG_ZONE_DMA_FLAG=0
# CONFIG_KSM is not set
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
CONFIG_CROSS_MEMORY_ATTACH=y
# CONFIG_CLEANCACHE is not set
# CONFIG_FRONTSWAP is not set
# CONFIG_CMA is not set
# CONFIG_ZBUD is not set
CONFIG_FORCE_MAX_ZONEORDER=11
CONFIG_ALIGNMENT_TRAP=y
# CONFIG_UACCESS_WITH_MEMCPY is not set
# CONFIG_SECCOMP is not set
# CONFIG_CC_STACKPROTECTOR is not set

#
# Boot options
#
CONFIG_USE_OF=y
CONFIG_ATAGS=y
# CONFIG_DEPRECATED_PARAM_STRUCT is not set
CONFIG_ZBOOT_ROM_TEXT=0
CONFIG_ZBOOT_ROM_BSS=0
# CONFIG_ARM_APPENDED_DTB is not set
CONFIG_CMDLINE="noinitrd console=ttymxc0,115200"
CONFIG_CMDLINE_FROM_BOOTLOADER=y
# CONFIG_CMDLINE_EXTEND is not set
# CONFIG_CMDLINE_FORCE is not set
# CONFIG_KEXEC is not set
# CONFIG_CRASH_DUMP is not set
CONFIG_AUTO_ZRELADDR=y

#
# CPU Power Management
#

#
# CPU Frequency scaling
#
# CONFIG_CPU_FREQ is not set

#
# CPU Idle
#
# CONFIG_CPU_IDLE is not set
# CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is not set

#
# Floating point emulation
#

#
# At least one emulation must be selected
#
CONFIG_VFP=y
CONFIG_VFPv3=y
CONFIG_NEON=y
# CONFIG_KERNEL_MODE_NEON is not set

#
# Userspace binary formats
#
CONFIG_BINFMT_ELF=y
CONFIG_ARCH_BINFMT_ELF_RANDOMIZE_PIE=y
CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=y
CONFIG_BINFMT_SCRIPT=y
# CONFIG_HAVE_AOUT is not set
CONFIG_BINFMT_MISC=m
CONFIG_COREDUMP=y

#
# Power management options
#
CONFIG_SUSPEND=y
CONFIG_SUSPEND_FREEZER=y
CONFIG_PM_SLEEP=y
CONFIG_PM_SLEEP_SMP=y
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_PM_WAKELOCKS is not set
CONFIG_PM_RUNTIME=y
CONFIG_PM=y
CONFIG_PM_DEBUG=y
# CONFIG_PM_ADVANCED_DEBUG is not set
CONFIG_PM_TEST_SUSPEND=y
CONFIG_PM_SLEEP_DEBUG=y
# CONFIG_APM_EMULATION is not set
CONFIG_ARCH_HAS_OPP=y
CONFIG_PM_OPP=y
CONFIG_PM_CLK=y
# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set
CONFIG_CPU_PM=y
CONFIG_ARCH_SUSPEND_POSSIBLE=y
CONFIG_ARM_CPU_SUSPEND=y
CONFIG_NET=y

#
# Networking options
#
CONFIG_PACKET=y
# CONFIG_PACKET_DIAG is not set
CONFIG_UNIX=y
# CONFIG_UNIX_DIAG is not set
CONFIG_XFRM=y
# CONFIG_XFRM_USER is not set
# CONFIG_XFRM_SUB_POLICY is not set
# CONFIG_XFRM_MIGRATE is not set
# CONFIG_XFRM_STATISTICS is not set
# CONFIG_NET_KEY is not set
CONFIG_INET=y
# CONFIG_IP_MULTICAST is not set
# CONFIG_IP_ADVANCED_ROUTER is not set
CONFIG_IP_PNP=y
CONFIG_IP_PNP_DHCP=y
# CONFIG_IP_PNP_BOOTP is not set
# CONFIG_IP_PNP_RARP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE_DEMUX is not set
CONFIG_NET_IP_TUNNEL=y
# CONFIG_SYN_COOKIES is not set
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_XFRM_TUNNEL is not set
CONFIG_INET_TUNNEL=y
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_BEET is not set
# CONFIG_INET_LRO is not set
CONFIG_INET_DIAG=y
CONFIG_INET_TCP_DIAG=y
# CONFIG_INET_UDP_DIAG is not set
# CONFIG_TCP_CONG_ADVANCED is not set
CONFIG_TCP_CONG_CUBIC=y
CONFIG_DEFAULT_TCP_CONG="cubic"
# CONFIG_TCP_MD5SIG is not set
CONFIG_IPV6=y
# CONFIG_IPV6_PRIVACY is not set
# CONFIG_IPV6_ROUTER_PREF is not set
# CONFIG_IPV6_OPTIMISTIC_DAD is not set
# CONFIG_INET6_AH is not set
# CONFIG_INET6_ESP is not set
# CONFIG_INET6_IPCOMP is not set
# CONFIG_IPV6_MIP6 is not set
# CONFIG_INET6_XFRM_TUNNEL is not set
# CONFIG_INET6_TUNNEL is not set
CONFIG_INET6_XFRM_MODE_TRANSPORT=y
CONFIG_INET6_XFRM_MODE_TUNNEL=y
CONFIG_INET6_XFRM_MODE_BEET=y
# CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION is not set
CONFIG_IPV6_SIT=y
# CONFIG_IPV6_SIT_6RD is not set
CONFIG_IPV6_NDISC_NODETYPE=y
# CONFIG_IPV6_TUNNEL is not set
# CONFIG_IPV6_GRE is not set
# CONFIG_IPV6_MULTIPLE_TABLES is not set
# CONFIG_IPV6_MROUTE is not set
# CONFIG_NETWORK_SECMARK is not set
# CONFIG_NETWORK_PHY_TIMESTAMPING is not set
CONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set
CONFIG_NETFILTER_ADVANCED=y

#
# Core Netfilter Configuration
#
# CONFIG_NETFILTER_NETLINK_ACCT is not set
# CONFIG_NETFILTER_NETLINK_QUEUE is not set
# CONFIG_NETFILTER_NETLINK_LOG is not set
# CONFIG_NF_CONNTRACK is not set
# CONFIG_NETFILTER_XTABLES is not set
# CONFIG_IP_VS is not set

#
# IP: Netfilter Configuration
#
# CONFIG_NF_DEFRAG_IPV4 is not set
# CONFIG_IP_NF_IPTABLES is not set
# CONFIG_IP_NF_ARPTABLES is not set

#
# IPv6: Netfilter Configuration
#
# CONFIG_NF_DEFRAG_IPV6 is not set
# CONFIG_IP6_NF_IPTABLES is not set
# CONFIG_IP_DCCP is not set
# CONFIG_IP_SCTP is not set
# CONFIG_RDS is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_L2TP is not set
# CONFIG_BRIDGE is not set
CONFIG_HAVE_NET_DSA=y
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_PHONET is not set
# CONFIG_IEEE802154 is not set
# CONFIG_NET_SCHED is not set
# CONFIG_DCB is not set
CONFIG_DNS_RESOLVER=y
# CONFIG_BATMAN_ADV is not set
# CONFIG_OPENVSWITCH is not set
# CONFIG_VSOCKETS is not set
# CONFIG_NETLINK_MMAP is not set
# CONFIG_NETLINK_DIAG is not set
# CONFIG_NET_MPLS_GSO is not set
CONFIG_RPS=y
CONFIG_RFS_ACCEL=y
CONFIG_XPS=y
# CONFIG_NETPRIO_CGROUP is not set
CONFIG_NET_RX_BUSY_POLL=y
CONFIG_BQL=y
# CONFIG_BPF_JIT is not set
CONFIG_NET_FLOW_LIMIT=y

#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_HAMRADIO is not set
# CONFIG_CAN is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_AF_RXRPC is not set
CONFIG_WIRELESS=y
CONFIG_CFG80211=y
# CONFIG_NL80211_TESTMODE is not set
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
# CONFIG_CFG80211_REG_DEBUG is not set
# CONFIG_CFG80211_CERTIFICATION_ONUS is not set
CONFIG_CFG80211_DEFAULT_PS=y
# CONFIG_CFG80211_DEBUGFS is not set
# CONFIG_CFG80211_INTERNAL_REGDB is not set
# CONFIG_CFG80211_WEXT is not set
# CONFIG_LIB80211 is not set
CONFIG_MAC80211=y
CONFIG_MAC80211_HAS_RC=y
# CONFIG_MAC80211_RC_PID is not set
CONFIG_MAC80211_RC_MINSTREL=y
CONFIG_MAC80211_RC_MINSTREL_HT=y
CONFIG_MAC80211_RC_DEFAULT_MINSTREL=y
CONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
# CONFIG_MAC80211_MESH is not set
# CONFIG_MAC80211_LEDS is not set
# CONFIG_MAC80211_DEBUGFS is not set
# CONFIG_MAC80211_MESSAGE_TRACING is not set
# CONFIG_MAC80211_DEBUG_MENU is not set
# CONFIG_WIMAX is not set
CONFIG_RFKILL=y
CONFIG_RFKILL_INPUT=y
# CONFIG_RFKILL_REGULATOR is not set
# CONFIG_RFKILL_GPIO is not set
# CONFIG_NET_9P is not set
# CONFIG_CAIF is not set
# CONFIG_CEPH_LIB is not set
# CONFIG_NFC is not set
CONFIG_HAVE_BPF_JIT=y

#
# Device Drivers
#

#
# Generic Driver Options
#
CONFIG_UEVENT_HELPER_PATH=""
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
# CONFIG_STANDALONE is not set
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE=""
CONFIG_FW_LOADER_USER_HELPER=y
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_GENERIC_CPU_DEVICES is not set
CONFIG_REGMAP=y
CONFIG_REGMAP_I2C=y
CONFIG_REGMAP_SPI=y
CONFIG_REGMAP_MMIO=y
CONFIG_REGMAP_IRQ=y
CONFIG_DMA_SHARED_BUFFER=y

#
# Bus devices
#
CONFIG_IMX_WEIM=y
# CONFIG_ARM_CCI is not set
CONFIG_CONNECTOR=y
CONFIG_PROC_EVENTS=y
CONFIG_MTD=y
# CONFIG_MTD_TESTS is not set
# CONFIG_MTD_REDBOOT_PARTS is not set
CONFIG_MTD_CMDLINE_PARTS=y
# CONFIG_MTD_AFS_PARTS is not set
CONFIG_MTD_OF_PARTS=y
# CONFIG_MTD_AR7_PARTS is not set

#
# User Modules And Translation Layers
#
CONFIG_MTD_BLKDEVS=y
CONFIG_MTD_BLOCK=y
# CONFIG_FTL is not set
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set
# CONFIG_RFD_FTL is not set
# CONFIG_SSFDC is not set
# CONFIG_SM_FTL is not set
# CONFIG_MTD_OOPS is not set
# CONFIG_MTD_SWAP is not set

#
# RAM/ROM/Flash chip drivers
#
CONFIG_MTD_CFI=y
CONFIG_MTD_JEDECPROBE=y
CONFIG_MTD_GEN_PROBE=y
# CONFIG_MTD_CFI_ADV_OPTIONS is not set
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not set
CONFIG_MTD_CFI_INTELEXT=y
CONFIG_MTD_CFI_AMDSTD=y
CONFIG_MTD_CFI_STAA=y
CONFIG_MTD_CFI_UTIL=y
# CONFIG_MTD_RAM is not set
# CONFIG_MTD_ROM is not set
# CONFIG_MTD_ABSENT is not set

#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
# CONFIG_MTD_PHYSMAP is not set
CONFIG_MTD_PHYSMAP_OF=y
# CONFIG_MTD_IMPA7 is not set
# CONFIG_MTD_PLATRAM is not set

#
# Self-contained MTD device drivers
#
CONFIG_MTD_DATAFLASH=y
# CONFIG_MTD_DATAFLASH_WRITE_VERIFY is not set
# CONFIG_MTD_DATAFLASH_OTP is not set
CONFIG_MTD_M25P80=y
CONFIG_M25PXX_USE_FAST_READ=y
CONFIG_MTD_SST25L=y
# CONFIG_MTD_SLRAM is not set
# CONFIG_MTD_PHRAM is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_MTD_BLOCK2MTD is not set

#
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOCG3 is not set
CONFIG_MTD_NAND_ECC=y
# CONFIG_MTD_NAND_ECC_SMC is not set
CONFIG_MTD_NAND=y
# CONFIG_MTD_NAND_ECC_BCH is not set
# CONFIG_MTD_SM_COMMON is not set
# CONFIG_MTD_NAND_DENALI is not set
# CONFIG_MTD_NAND_GPIO is not set
CONFIG_MTD_NAND_IDS=y
# CONFIG_MTD_NAND_DISKONCHIP is not set
# CONFIG_MTD_NAND_DOCG4 is not set
# CONFIG_MTD_NAND_NANDSIM is not set
CONFIG_MTD_NAND_GPMI_NAND=y
# CONFIG_MTD_NAND_PLATFORM is not set
CONFIG_MTD_NAND_MXC=y
# CONFIG_MTD_ONENAND is not set

#
# LPDDR flash memory drivers
#
# CONFIG_MTD_LPDDR is not set
CONFIG_MTD_UBI=y
CONFIG_MTD_UBI_WL_THRESHOLD=4096
CONFIG_MTD_UBI_BEB_LIMIT=20
# CONFIG_MTD_UBI_FASTMAP is not set
# CONFIG_MTD_UBI_GLUEBI is not set
CONFIG_DTC=y
CONFIG_OF=y

#
# Device Tree and Open Firmware support
#
# CONFIG_PROC_DEVICETREE is not set
# CONFIG_OF_SELFTEST is not set
CONFIG_OF_FLATTREE=y
CONFIG_OF_EARLY_FLATTREE=y
CONFIG_OF_ADDRESS=y
CONFIG_OF_IRQ=y
CONFIG_OF_NET=y
CONFIG_OF_MDIO=y
CONFIG_OF_MTD=y
CONFIG_OF_RESERVED_MEM=y
# CONFIG_PARPORT is not set
CONFIG_BLK_DEV=y
# CONFIG_BLK_DEV_COW_COMMON is not set
CONFIG_BLK_DEV_LOOP=y
CONFIG_BLK_DEV_LOOP_MIN_COUNT=8
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_DRBD is not set
# CONFIG_BLK_DEV_NBD is not set
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=65536
# CONFIG_BLK_DEV_XIP is not set
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
# CONFIG_MG_DISK is not set
# CONFIG_BLK_DEV_RBD is not set

#
# Misc devices
#
# CONFIG_SENSORS_LIS3LV02D is not set
# CONFIG_AD525X_DPOT is not set
# CONFIG_ATMEL_PWM is not set
# CONFIG_DUMMY_IRQ is not set
# CONFIG_ICS932S401 is not set
# CONFIG_ATMEL_SSC is not set
# CONFIG_ENCLOSURE_SERVICES is not set
# CONFIG_APDS9802ALS is not set
# CONFIG_ISL29003 is not set
# CONFIG_ISL29020 is not set
# CONFIG_SENSORS_TSL2550 is not set
# CONFIG_SENSORS_BH1780 is not set
# CONFIG_SENSORS_BH1770 is not set
# CONFIG_SENSORS_APDS990X is not set
# CONFIG_HMC6352 is not set
# CONFIG_DS1682 is not set
# CONFIG_TI_DAC7512 is not set
# CONFIG_BMP085_I2C is not set
# CONFIG_BMP085_SPI is not set
# CONFIG_USB_SWITCH_FSA9480 is not set
# CONFIG_LATTICE_ECP3_CONFIG is not set
CONFIG_SRAM=y
# CONFIG_C2PORT is not set

#
# EEPROM support
#
CONFIG_EEPROM_AT24=y
CONFIG_EEPROM_AT25=y
# CONFIG_EEPROM_LEGACY is not set
# CONFIG_EEPROM_MAX6875 is not set
# CONFIG_EEPROM_93CX6 is not set
# CONFIG_EEPROM_93XX46 is not set

#
# Texas Instruments shared transport line discipline
#
# CONFIG_TI_ST is not set
# CONFIG_SENSORS_LIS3_SPI is not set
# CONFIG_SENSORS_LIS3_I2C is not set

#
# Altera FPGA firmware download module
#
# CONFIG_ALTERA_STAPL is not set

#
# SCSI device support
#
CONFIG_SCSI_MOD=y
# CONFIG_RAID_ATTRS is not set
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
# CONFIG_SCSI_TGT is not set
# CONFIG_SCSI_NETLINK is not set
# CONFIG_SCSI_PROC_FS is not set

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
# CONFIG_BLK_DEV_SR is not set
# CONFIG_CHR_DEV_SG is not set
# CONFIG_CHR_DEV_SCH is not set
CONFIG_SCSI_MULTI_LUN=y
CONFIG_SCSI_CONSTANTS=y
CONFIG_SCSI_LOGGING=y
CONFIG_SCSI_SCAN_ASYNC=y

#
# SCSI Transports
#
# CONFIG_SCSI_SPI_ATTRS is not set
# CONFIG_SCSI_FC_ATTRS is not set
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not set
# CONFIG_SCSI_LOWLEVEL is not set
# CONFIG_SCSI_DH is not set
# CONFIG_SCSI_OSD_INITIATOR is not set
CONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not set
CONFIG_ATA_VERBOSE_ERROR=y
CONFIG_SATA_PMP=y

#
# Controllers with non-SFF native interface
#
CONFIG_SATA_AHCI_PLATFORM=y
CONFIG_AHCI_IMX=y
CONFIG_ATA_SFF=y

#
# SFF controllers with custom DMA interface
#
CONFIG_ATA_BMDMA=y

#
# SATA SFF controllers with BMDMA
#
# CONFIG_SATA_HIGHBANK is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_RCAR is not set

#
# PATA SFF controllers with BMDMA
#
# CONFIG_PATA_ARASAN_CF is not set
CONFIG_PATA_IMX=y

#
# PIO-only SFF controllers
#
# CONFIG_PATA_PLATFORM is not set

#
# Generic fallback / legacy drivers
#
# CONFIG_MD is not set
# CONFIG_TARGET_CORE is not set
CONFIG_NETDEVICES=y
CONFIG_MII=y
CONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
# CONFIG_VXLAN is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
# CONFIG_TUN is not set
# CONFIG_VETH is not set
# CONFIG_NLMON is not set

#
# CAIF transport drivers
#

#
# Distributed Switch Architecture drivers
#
# CONFIG_NET_DSA_MV88E6XXX is not set
# CONFIG_NET_DSA_MV88E6060 is not set
# CONFIG_NET_DSA_MV88E6XXX_NEED_PPU is not set
# CONFIG_NET_DSA_MV88E6131 is not set
# CONFIG_NET_DSA_MV88E6123_61_65 is not set
CONFIG_ETHERNET=y
CONFIG_NET_VENDOR_ARC=y
# CONFIG_ARC_EMAC is not set
CONFIG_NET_CADENCE=y
# CONFIG_ARM_AT91_ETHER is not set
# CONFIG_MACB is not set
# CONFIG_NET_VENDOR_BROADCOM is not set
# CONFIG_NET_CALXEDA_XGMAC is not set
CONFIG_NET_VENDOR_CIRRUS=y
CONFIG_CS89x0=y
CONFIG_CS89x0_PLATFORM=y
# CONFIG_DM9000 is not set
# CONFIG_DNET is not set
# CONFIG_NET_VENDOR_FARADAY is not set
CONFIG_NET_VENDOR_FREESCALE=y
CONFIG_FEC=y
# CONFIG_NET_VENDOR_INTEL is not set
# CONFIG_NET_VENDOR_MARVELL is not set
# CONFIG_NET_VENDOR_MICREL is not set
# CONFIG_NET_VENDOR_MICROCHIP is not set
# CONFIG_NET_VENDOR_NATSEMI is not set
# CONFIG_ETHOC is not set
# CONFIG_SH_ETH is not set
# CONFIG_NET_VENDOR_SEEQ is not set
CONFIG_NET_VENDOR_SMSC=y
CONFIG_SMC91X=y
CONFIG_SMC911X=y
CONFIG_SMSC911X=y
# CONFIG_SMSC911X_ARCH_HOOKS is not set
# CONFIG_NET_VENDOR_STMICRO is not set
CONFIG_NET_VENDOR_VIA=y
# CONFIG_VIA_VELOCITY is not set
CONFIG_NET_VENDOR_WIZNET=y
# CONFIG_WIZNET_W5100 is not set
# CONFIG_WIZNET_W5300 is not set
CONFIG_PHYLIB=y

#
# MII PHY device drivers
#
# CONFIG_AT803X_PHY is not set
# CONFIG_AMD_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_QSEMI_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_CICADA_PHY is not set
# CONFIG_VITESSE_PHY is not set
# CONFIG_SMSC_PHY is not set
# CONFIG_BROADCOM_PHY is not set
# CONFIG_BCM87XX_PHY is not set
# CONFIG_ICPLUS_PHY is not set
# CONFIG_REALTEK_PHY is not set
# CONFIG_NATIONAL_PHY is not set
# CONFIG_STE10XP is not set
# CONFIG_LSI_ET1011C_PHY is not set
# CONFIG_MICREL_PHY is not set
# CONFIG_FIXED_PHY is not set
# CONFIG_MDIO_BITBANG is not set
# CONFIG_MDIO_BUS_MUX_GPIO is not set
# CONFIG_MDIO_BUS_MUX_MMIOREG is not set
# CONFIG_MICREL_KS8995MA is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not set

#
# USB Network Adapters
#
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not set
# CONFIG_USB_RTL8152 is not set
# CONFIG_USB_USBNET is not set
# CONFIG_USB_HSO is not set
# CONFIG_USB_IPHETH is not set
CONFIG_WLAN=y
# CONFIG_LIBERTAS_THINFIRM is not set
# CONFIG_AT76C50X_USB is not set
# CONFIG_USB_ZD1201 is not set
# CONFIG_USB_NET_RNDIS_WLAN is not set
# CONFIG_RTL8187 is not set
# CONFIG_MAC80211_HWSIM is not set
# CONFIG_ATH_CARDS is not set
# CONFIG_B43 is not set
# CONFIG_B43LEGACY is not set
CONFIG_BRCMUTIL=m
CONFIG_BRCMFMAC=m
CONFIG_BRCMFMAC_SDIO=y
# CONFIG_BRCMFMAC_USB is not set
CONFIG_BRCM_TRACING=y
CONFIG_BRCMDBG=y
# CONFIG_HOSTAP is not set
# CONFIG_LIBERTAS is not set
# CONFIG_P54_COMMON is not set
# CONFIG_RT2X00 is not set
CONFIG_RTL_CARDS=y
# CONFIG_RTL8192CU is not set
# CONFIG_WL_TI is not set
# CONFIG_ZD1211RW is not set
# CONFIG_MWIFIEX is not set
# CONFIG_CW1200 is not set

#
# Enable WiMAX (Networking options) to see the WiMAX drivers
#
# CONFIG_WAN is not set
# CONFIG_ISDN is not set

#
# Input device support
#
CONFIG_INPUT=y
# CONFIG_INPUT_FF_MEMLESS is not set
CONFIG_INPUT_POLLDEV=y
# CONFIG_INPUT_SPARSEKMAP is not set
CONFIG_INPUT_MATRIXKMAP=y

#
# Userland interfaces
#
CONFIG_INPUT_MOUSEDEV=y
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
CONFIG_INPUT_EVDEV=y
CONFIG_INPUT_EVBUG=m

#
# Input Device Drivers
#
CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADP5588 is not set
# CONFIG_KEYBOARD_ADP5589 is not set
CONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_QT1070 is not set
# CONFIG_KEYBOARD_QT2160 is not set
# CONFIG_KEYBOARD_LKKBD is not set
CONFIG_KEYBOARD_GPIO=y
# CONFIG_KEYBOARD_TCA6416 is not set
# CONFIG_KEYBOARD_TCA8418 is not set
# CONFIG_KEYBOARD_MATRIX is not set
# CONFIG_KEYBOARD_LM8323 is not set
# CONFIG_KEYBOARD_LM8333 is not set
# CONFIG_KEYBOARD_MAX7359 is not set
# CONFIG_KEYBOARD_MCS is not set
# CONFIG_KEYBOARD_MPR121 is not set
CONFIG_KEYBOARD_IMX=y
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_KEYBOARD_OPENCORES is not set
# CONFIG_KEYBOARD_SAMSUNG is not set
# CONFIG_KEYBOARD_STOWAWAY is not set
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
CONFIG_INPUT_MOUSE=y
CONFIG_MOUSE_PS2=m
CONFIG_MOUSE_PS2_ALPS=y
CONFIG_MOUSE_PS2_LOGIPS2PP=y
CONFIG_MOUSE_PS2_SYNAPTICS=y
CONFIG_MOUSE_PS2_CYPRESS=y
CONFIG_MOUSE_PS2_TRACKPOINT=y
CONFIG_MOUSE_PS2_ELANTECH=y
# CONFIG_MOUSE_PS2_SENTELIC is not set
# CONFIG_MOUSE_PS2_TOUCHKIT is not set
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_MOUSE_APPLETOUCH is not set
# CONFIG_MOUSE_BCM5974 is not set
# CONFIG_MOUSE_CYAPA is not set
# CONFIG_MOUSE_VSXXXAA is not set
# CONFIG_MOUSE_GPIO is not set
# CONFIG_MOUSE_SYNAPTICS_I2C is not set
# CONFIG_MOUSE_SYNAPTICS_USB is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
CONFIG_INPUT_TOUCHSCREEN=y
# CONFIG_TOUCHSCREEN_ADS7846 is not set
# CONFIG_TOUCHSCREEN_AD7877 is not set
# CONFIG_TOUCHSCREEN_AD7879 is not set
# CONFIG_TOUCHSCREEN_ATMEL_MXT is not set
# CONFIG_TOUCHSCREEN_AUO_PIXCIR is not set
# CONFIG_TOUCHSCREEN_BU21013 is not set
# CONFIG_TOUCHSCREEN_CY8CTMG110 is not set
# CONFIG_TOUCHSCREEN_CYTTSP_CORE is not set
# CONFIG_TOUCHSCREEN_CYTTSP4_CORE is not set
# CONFIG_TOUCHSCREEN_DA9052 is not set
# CONFIG_TOUCHSCREEN_DYNAPRO is not set
# CONFIG_TOUCHSCREEN_HAMPSHIRE is not set
# CONFIG_TOUCHSCREEN_EETI is not set
CONFIG_TOUCHSCREEN_EGALAX=y
# CONFIG_TOUCHSCREEN_FUJITSU is not set
# CONFIG_TOUCHSCREEN_ILI210X is not set
# CONFIG_TOUCHSCREEN_GUNZE is not set
# CONFIG_TOUCHSCREEN_ELO is not set
# CONFIG_TOUCHSCREEN_WACOM_W8001 is not set
# CONFIG_TOUCHSCREEN_WACOM_I2C is not set
# CONFIG_TOUCHSCREEN_MAX11801 is not set
# CONFIG_TOUCHSCREEN_MCS5000 is not set
# CONFIG_TOUCHSCREEN_MMS114 is not set
# CONFIG_TOUCHSCREEN_MTOUCH is not set
# CONFIG_TOUCHSCREEN_INEXIO is not set
# CONFIG_TOUCHSCREEN_MK712 is not set
# CONFIG_TOUCHSCREEN_PENMOUNT is not set
# CONFIG_TOUCHSCREEN_EDT_FT5X06 is not set
# CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set
# CONFIG_TOUCHSCREEN_TOUCHWIN is not set
# CONFIG_TOUCHSCREEN_PIXCIR is not set
# CONFIG_TOUCHSCREEN_WM97XX is not set
# CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set
CONFIG_TOUCHSCREEN_MC13783=y
# CONFIG_TOUCHSCREEN_TOUCHIT213 is not set
# CONFIG_TOUCHSCREEN_TSC_SERIO is not set
# CONFIG_TOUCHSCREEN_TSC2005 is not set
# CONFIG_TOUCHSCREEN_TSC2007 is not set
# CONFIG_TOUCHSCREEN_W90X900 is not set
# CONFIG_TOUCHSCREEN_ST1232 is not set
# CONFIG_TOUCHSCREEN_TPS6507X is not set
CONFIG_INPUT_MISC=y
# CONFIG_INPUT_AD714X is not set
# CONFIG_INPUT_BMA150 is not set
# CONFIG_INPUT_MC13783_PWRBUTTON is not set
CONFIG_INPUT_MMA8450=y
# CONFIG_INPUT_MPU3050 is not set
# CONFIG_INPUT_GP2A is not set
# CONFIG_INPUT_GPIO_TILT_POLLED is not set
# CONFIG_INPUT_ATI_REMOTE2 is not set
# CONFIG_INPUT_KEYSPAN_REMOTE is not set
# CONFIG_INPUT_KXTJ9 is not set
# CONFIG_INPUT_POWERMATE is not set
# CONFIG_INPUT_YEALINK is not set
# CONFIG_INPUT_CM109 is not set
# CONFIG_INPUT_UINPUT is not set
# CONFIG_INPUT_PCF8574 is not set
# CONFIG_INPUT_PWM_BEEPER is not set
# CONFIG_INPUT_GPIO_ROTARY_ENCODER is not set
# CONFIG_INPUT_DA9052_ONKEY is not set
# CONFIG_INPUT_ADXL34X is not set
# CONFIG_INPUT_IMS_PCU is not set
# CONFIG_INPUT_CMA3000 is not set

#
# Hardware I/O ports
#
CONFIG_SERIO=y
CONFIG_SERIO_SERPORT=m
CONFIG_SERIO_LIBPS2=y
# CONFIG_SERIO_RAW is not set
# CONFIG_SERIO_ALTERA_PS2 is not set
# CONFIG_SERIO_PS2MULT is not set
# CONFIG_SERIO_ARC_PS2 is not set
# CONFIG_SERIO_APBPS2 is not set
# CONFIG_SERIO_OLPC_APSP is not set
# CONFIG_GAMEPORT is not set

#
# Character devices
#
CONFIG_TTY=y
CONFIG_VT=y
CONFIG_CONSOLE_TRANSLATIONS=y
CONFIG_VT_CONSOLE=y
CONFIG_VT_CONSOLE_SLEEP=y
CONFIG_HW_CONSOLE=y
CONFIG_VT_HW_CONSOLE_BINDING=y
CONFIG_UNIX98_PTYS=y
# CONFIG_DEVPTS_MULTIPLE_INSTANCES is not set
# CONFIG_LEGACY_PTYS is not set
# CONFIG_SERIAL_NONSTANDARD is not set
# CONFIG_N_GSM is not set
# CONFIG_TRACE_SINK is not set
# CONFIG_DEVKMEM is not set

#
# Serial drivers
#
# CONFIG_SERIAL_8250 is not set

#
# Non-8250 serial port support
#
# CONFIG_SERIAL_MAX3100 is not set
# CONFIG_SERIAL_MAX310X is not set
CONFIG_SERIAL_IMX=y
CONFIG_SERIAL_IMX_CONSOLE=y
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_TIMBERDALE is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not set
# CONFIG_SERIAL_IFX6X60 is not set
# CONFIG_SERIAL_XILINX_PS_UART is not set
# CONFIG_SERIAL_ARC is not set
CONFIG_SERIAL_FSL_LPUART=y
CONFIG_SERIAL_FSL_LPUART_CONSOLE=y
# CONFIG_SERIAL_ST_ASC is not set
# CONFIG_TTY_PRINTK is not set
# CONFIG_HVC_DCC is not set
# CONFIG_IPMI_HANDLER is not set
CONFIG_HW_RANDOM=y
# CONFIG_HW_RANDOM_TIMERIOMEM is not set
# CONFIG_HW_RANDOM_ATMEL is not set
CONFIG_HW_RANDOM_MXC_RNGA=y
# CONFIG_HW_RANDOM_EXYNOS is not set
# CONFIG_R3964 is not set
# CONFIG_RAW_DRIVER is not set
# CONFIG_TCG_TPM is not set
CONFIG_I2C=y
CONFIG_I2C_BOARDINFO=y
# CONFIG_I2C_COMPAT is not set
CONFIG_I2C_CHARDEV=y
# CONFIG_I2C_MUX is not set
# CONFIG_I2C_HELPER_AUTO is not set
# CONFIG_I2C_SMBUS is not set

#
# I2C Algorithms
#
CONFIG_I2C_ALGOBIT=y
CONFIG_I2C_ALGOPCF=m
CONFIG_I2C_ALGOPCA=m

#
# I2C Hardware Bus support
#

#
# I2C system bus drivers (mostly embedded / system-on-chip)
#
# CONFIG_I2C_CBUS_GPIO is not set
# CONFIG_I2C_DESIGNWARE_PLATFORM is not set
# CONFIG_I2C_GPIO is not set
CONFIG_I2C_IMX=y
# CONFIG_I2C_OCORES is not set
# CONFIG_I2C_PCA_PLATFORM is not set
# CONFIG_I2C_PXA_PCI is not set
# CONFIG_I2C_SIMTEC is not set
# CONFIG_I2C_XILINX is not set

#
# External I2C/SMBus adapter drivers
#
# CONFIG_I2C_DIOLAN_U2C is not set
# CONFIG_I2C_PARPORT_LIGHT is not set
# CONFIG_I2C_TAOS_EVM is not set
# CONFIG_I2C_TINY_USB is not set

#
# Other I2C/SMBus bus drivers
#
# CONFIG_I2C_STUB is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
CONFIG_SPI=y
# CONFIG_SPI_DEBUG is not set
CONFIG_SPI_MASTER=y

#
# SPI Master Controller Drivers
#
# CONFIG_SPI_ALTERA is not set
CONFIG_SPI_BITBANG=y
# CONFIG_SPI_GPIO is not set
CONFIG_SPI_IMX=y
# CONFIG_SPI_FSL_SPI is not set
# CONFIG_SPI_FSL_DSPI is not set
# CONFIG_SPI_OC_TINY is not set
# CONFIG_SPI_PXA2XX_PCI is not set
# CONFIG_SPI_SC18IS602 is not set
# CONFIG_SPI_XCOMM is not set
# CONFIG_SPI_XILINX is not set
# CONFIG_SPI_DESIGNWARE is not set

#
# SPI Protocol Masters
#
# CONFIG_SPI_SPIDEV is not set
# CONFIG_SPI_TLE62X0 is not set
# CONFIG_HSI is not set

#
# PPS support
#
CONFIG_PPS=y
# CONFIG_PPS_DEBUG is not set

#
# PPS clients support
#
# CONFIG_PPS_CLIENT_KTIMER is not set
# CONFIG_PPS_CLIENT_LDISC is not set
# CONFIG_PPS_CLIENT_GPIO is not set

#
# PPS generators support
#

#
# PTP clock support
#
CONFIG_PTP_1588_CLOCK=y

#
# Enable PHYLIB and NETWORK_PHY_TIMESTAMPING to see the additional clocks.
#
CONFIG_PINCTRL=y

#
# Pin controllers
#
CONFIG_PINMUX=y
CONFIG_PINCONF=y
# CONFIG_DEBUG_PINCTRL is not set
CONFIG_PINCTRL_IMX=y
# CONFIG_PINCTRL_IMX35 is not set
CONFIG_PINCTRL_IMX51=y
CONFIG_PINCTRL_IMX53=y
CONFIG_PINCTRL_IMX6Q=y
CONFIG_PINCTRL_IMX6SL=y
CONFIG_PINCTRL_VF610=y
# CONFIG_PINCTRL_SINGLE is not set
CONFIG_ARCH_HAVE_CUSTOM_GPIO_H=y
CONFIG_ARCH_REQUIRE_GPIOLIB=y
CONFIG_GPIO_DEVRES=y
CONFIG_GPIOLIB=y
CONFIG_OF_GPIO=y
# CONFIG_DEBUG_GPIO is not set
CONFIG_GPIO_SYSFS=y
CONFIG_GPIO_GENERIC=y
# CONFIG_GPIO_DA9052 is not set

#
# Memory mapped GPIO drivers:
#
# CONFIG_GPIO_GENERIC_PLATFORM is not set
# CONFIG_GPIO_EM is not set
CONFIG_GPIO_MXC=y
# CONFIG_GPIO_RCAR is not set
# CONFIG_GPIO_TS5500 is not set
# CONFIG_GPIO_GRGPIO is not set

#
# I2C GPIO expanders:
#
# CONFIG_GPIO_MAX7300 is not set
# CONFIG_GPIO_MAX732X is not set
CONFIG_GPIO_MC9S08DZ60=y
# CONFIG_GPIO_PCF857X is not set
# CONFIG_GPIO_SX150X is not set
# CONFIG_GPIO_ADP5588 is not set
# CONFIG_GPIO_ADNP is not set

#
# PCI GPIO expanders:
#

#
# SPI GPIO expanders:
#
# CONFIG_GPIO_MAX7301 is not set
# CONFIG_GPIO_MCP23S08 is not set
# CONFIG_GPIO_MC33880 is not set
# CONFIG_GPIO_74X164 is not set

#
# AC97 GPIO expanders:
#

#
# LPC GPIO expanders:
#

#
# MODULbus GPIO expanders:
#

#
# USB GPIO expanders:
#
# CONFIG_W1 is not set
# CONFIG_POWER_SUPPLY is not set
# CONFIG_POWER_AVS is not set
# CONFIG_HWMON is not set
# CONFIG_THERMAL is not set
CONFIG_WATCHDOG=y
# CONFIG_WATCHDOG_CORE is not set
# CONFIG_WATCHDOG_NOWAYOUT is not set

#
# Watchdog Device Drivers
#
# CONFIG_SOFT_WATCHDOG is not set
# CONFIG_DA9052_WATCHDOG is not set
# CONFIG_DW_WATCHDOG is not set
# CONFIG_MAX63XX_WATCHDOG is not set
CONFIG_IMX2_WDT=y
# CONFIG_MEN_A21_WDT is not set

#
# USB-based Watchdog Cards
#
# CONFIG_USBPCWATCHDOG is not set
CONFIG_SSB_POSSIBLE=y

#
# Sonics Silicon Backplane
#
# CONFIG_SSB is not set
CONFIG_BCMA_POSSIBLE=y

#
# Broadcom specific AMBA
#
# CONFIG_BCMA is not set

#
# Multifunction device drivers
#
CONFIG_MFD_CORE=y
# CONFIG_MFD_AS3711 is not set
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_AAT2870_CORE is not set
# CONFIG_MFD_CROS_EC is not set
# CONFIG_MFD_ASIC3 is not set
# CONFIG_PMIC_DA903X is not set
CONFIG_PMIC_DA9052=y
# CONFIG_MFD_DA9052_SPI is not set
CONFIG_MFD_DA9052_I2C=y
# CONFIG_MFD_DA9055 is not set
# CONFIG_MFD_DA9063 is not set
CONFIG_MFD_MC13783=y
CONFIG_MFD_MC13XXX=y
CONFIG_MFD_MC13XXX_SPI=y
CONFIG_MFD_MC13XXX_I2C=y
# CONFIG_HTC_EGPIO is not set
# CONFIG_HTC_PASIC3 is not set
# CONFIG_HTC_I2CPLD is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_88PM800 is not set
# CONFIG_MFD_88PM805 is not set
# CONFIG_MFD_88PM860X is not set
# CONFIG_MFD_MAX77686 is not set
# CONFIG_MFD_MAX77693 is not set
# CONFIG_MFD_MAX8907 is not set
# CONFIG_MFD_MAX8925 is not set
# CONFIG_MFD_MAX8997 is not set
# CONFIG_MFD_MAX8998 is not set
# CONFIG_EZX_PCAP is not set
# CONFIG_MFD_VIPERBOARD is not set
# CONFIG_MFD_RETU is not set
# CONFIG_MFD_PCF50633 is not set
# CONFIG_UCB1400_CORE is not set
# CONFIG_MFD_RC5T583 is not set
# CONFIG_MFD_SEC_CORE is not set
# CONFIG_MFD_SI476X_CORE is not set
# CONFIG_MFD_SM501 is not set
# CONFIG_MFD_SMSC is not set
# CONFIG_ABX500_CORE is not set
# CONFIG_MFD_STMPE is not set
CONFIG_MFD_SYSCON=y
# CONFIG_MFD_TI_AM335X_TSCADC is not set
# CONFIG_MFD_LP8788 is not set
# CONFIG_MFD_PALMAS is not set
# CONFIG_TPS6105X is not set
# CONFIG_TPS65010 is not set
# CONFIG_TPS6507X is not set
# CONFIG_MFD_TPS65090 is not set
# CONFIG_MFD_TPS65217 is not set
# CONFIG_MFD_TPS6586X is not set
# CONFIG_MFD_TPS65910 is not set
# CONFIG_MFD_TPS65912 is not set
# CONFIG_MFD_TPS65912_I2C is not set
# CONFIG_MFD_TPS65912_SPI is not set
# CONFIG_MFD_TPS80031 is not set
# CONFIG_TWL4030_CORE is not set
# CONFIG_TWL6040_CORE is not set
# CONFIG_MFD_WL1273_CORE is not set
# CONFIG_MFD_LM3533 is not set
# CONFIG_MFD_TC3589X is not set
# CONFIG_MFD_TMIO is not set
# CONFIG_MFD_T7L66XB is not set
# CONFIG_MFD_TC6387XB is not set
# CONFIG_MFD_TC6393XB is not set
# CONFIG_MFD_ARIZONA_I2C is not set
# CONFIG_MFD_ARIZONA_SPI is not set
# CONFIG_MFD_WM8400 is not set
# CONFIG_MFD_WM831X_I2C is not set
# CONFIG_MFD_WM831X_SPI is not set
# CONFIG_MFD_WM8350_I2C is not set
# CONFIG_MFD_WM8994 is not set
# CONFIG_VEXPRESS_CONFIG is not set
CONFIG_REGULATOR=y
# CONFIG_REGULATOR_DEBUG is not set
# CONFIG_REGULATOR_DUMMY is not set
CONFIG_REGULATOR_FIXED_VOLTAGE=y
# CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set
# CONFIG_REGULATOR_USERSPACE_CONSUMER is not set
# CONFIG_REGULATOR_AD5398 is not set
CONFIG_REGULATOR_ANATOP=y
CONFIG_REGULATOR_DA9052=y
# CONFIG_REGULATOR_DA9210 is not set
# CONFIG_REGULATOR_FAN53555 is not set
# CONFIG_REGULATOR_GPIO is not set
# CONFIG_REGULATOR_ISL6271A is not set
# CONFIG_REGULATOR_LP3971 is not set
# CONFIG_REGULATOR_LP3972 is not set
# CONFIG_REGULATOR_LP872X is not set
# CONFIG_REGULATOR_LP8755 is not set
# CONFIG_REGULATOR_MAX1586 is not set
# CONFIG_REGULATOR_MAX8649 is not set
# CONFIG_REGULATOR_MAX8660 is not set
# CONFIG_REGULATOR_MAX8952 is not set
# CONFIG_REGULATOR_MAX8973 is not set
CONFIG_REGULATOR_MC13XXX_CORE=y
CONFIG_REGULATOR_MC13783=y
CONFIG_REGULATOR_MC13892=y
# CONFIG_REGULATOR_PFUZE100 is not set
# CONFIG_REGULATOR_TPS51632 is not set
# CONFIG_REGULATOR_TPS62360 is not set
# CONFIG_REGULATOR_TPS65023 is not set
# CONFIG_REGULATOR_TPS6507X is not set
# CONFIG_REGULATOR_TPS6524X is not set
CONFIG_MEDIA_SUPPORT=y

#
# Multimedia core support
#
CONFIG_MEDIA_CAMERA_SUPPORT=y
# CONFIG_MEDIA_ANALOG_TV_SUPPORT is not set
# CONFIG_MEDIA_DIGITAL_TV_SUPPORT is not set
# CONFIG_MEDIA_RADIO_SUPPORT is not set
# CONFIG_MEDIA_RC_SUPPORT is not set
# CONFIG_MEDIA_CONTROLLER is not set
CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2=y
# CONFIG_VIDEO_ADV_DEBUG is not set
# CONFIG_VIDEO_FIXED_MINOR_RANGES is not set
CONFIG_V4L2_MEM2MEM_DEV=y
CONFIG_VIDEOBUF_GEN=y
CONFIG_VIDEOBUF2_CORE=y
CONFIG_VIDEOBUF2_MEMOPS=y
CONFIG_VIDEOBUF2_DMA_CONTIG=y
# CONFIG_VIDEO_V4L2_INT_DEVICE is not set
# CONFIG_TTPCI_EEPROM is not set

#
# Media drivers
#
# CONFIG_MEDIA_USB_SUPPORT is not set
CONFIG_V4L_PLATFORM_DRIVERS=y
# CONFIG_VIDEO_TIMBERDALE is not set
CONFIG_SOC_CAMERA=y
# CONFIG_SOC_CAMERA_PLATFORM is not set
CONFIG_VIDEO_MX3=y
# CONFIG_VIDEO_RCAR_VIN is not set
# CONFIG_VIDEO_SH_MOBILE_CSI2 is not set
# CONFIG_VIDEO_SH_MOBILE_CEU is not set
CONFIG_V4L_MEM2MEM_DRIVERS=y
CONFIG_VIDEO_CODA=y
# CONFIG_VIDEO_MEM2MEM_DEINTERLACE is not set
# CONFIG_VIDEO_SH_VEU is not set
# CONFIG_V4L_TEST_DRIVERS is not set

#
# Supported MMC/SDIO adapters
#
# CONFIG_CYPRESS_FIRMWARE is not set

#
# Media ancillary drivers (tuners, sensors, i2c, frontends)
#
CONFIG_MEDIA_SUBDRV_AUTOSELECT=y

#
# Audio decoders, processors and mixers
#

#
# RDS decoders
#

#
# Video decoders
#

#
# Video and audio decoders
#

#
# Video encoders
#

#
# Camera sensor devices
#

#
# Flash devices
#

#
# Video improvement chips
#

#
# Miscelaneous helper chips
#

#
# Sensors used on soc_camera driver
#

#
# soc_camera sensor drivers
#
# CONFIG_SOC_CAMERA_IMX074 is not set
# CONFIG_SOC_CAMERA_MT9M001 is not set
# CONFIG_SOC_CAMERA_MT9M111 is not set
# CONFIG_SOC_CAMERA_MT9T031 is not set
# CONFIG_SOC_CAMERA_MT9T112 is not set
# CONFIG_SOC_CAMERA_MT9V022 is not set
CONFIG_SOC_CAMERA_OV2640=y
# CONFIG_SOC_CAMERA_OV5642 is not set
# CONFIG_SOC_CAMERA_OV6650 is not set
# CONFIG_SOC_CAMERA_OV772X is not set
# CONFIG_SOC_CAMERA_OV9640 is not set
# CONFIG_SOC_CAMERA_OV9740 is not set
# CONFIG_SOC_CAMERA_RJ54N1 is not set
# CONFIG_SOC_CAMERA_TW9910 is not set

#
# Tools to develop new frontends
#
# CONFIG_DVB_DUMMY_FE is not set

#
# Graphics support
#
CONFIG_DRM=y
CONFIG_DRM_KMS_HELPER=y
# CONFIG_DRM_LOAD_EDID_FIRMWARE is not set
CONFIG_DRM_GEM_CMA_HELPER=y
CONFIG_DRM_KMS_CMA_HELPER=y

#
# I2C encoder or helper chips
#
# CONFIG_DRM_I2C_CH7006 is not set
# CONFIG_DRM_I2C_SIL164 is not set
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_EXYNOS is not set
# CONFIG_DRM_UDL is not set
# CONFIG_DRM_RCAR_DU is not set
# CONFIG_DRM_SHMOBILE is not set
# CONFIG_DRM_TILCDC is not set
# CONFIG_TEGRA_HOST1X is not set
# CONFIG_VGASTATE is not set
# CONFIG_VIDEO_OUTPUT_CONTROL is not set
CONFIG_VIDEOMODE_HELPERS=y
CONFIG_HDMI=y
CONFIG_FB=y
# CONFIG_FIRMWARE_EDID is not set
# CONFIG_FB_DDC is not set
# CONFIG_FB_BOOT_VESA_SUPPORT is not set
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
# CONFIG_FB_CFB_REV_PIXELS_IN_BYTE is not set
CONFIG_FB_SYS_FILLRECT=y
CONFIG_FB_SYS_COPYAREA=y
CONFIG_FB_SYS_IMAGEBLIT=y
# CONFIG_FB_FOREIGN_ENDIAN is not set
# CONFIG_FB_SYS_FOPS is not set
# CONFIG_FB_SVGALIB is not set
# CONFIG_FB_MACMODES is not set
# CONFIG_FB_BACKLIGHT is not set
# CONFIG_FB_MODE_HELPERS is not set
# CONFIG_FB_TILEBLITTING is not set

#
# Frame buffer hardware drivers
#
# CONFIG_FB_IMX is not set
# CONFIG_FB_UVESA is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_TMIO is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_GOLDFISH is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
CONFIG_FB_MX3=y
# CONFIG_FB_BROADSHEET is not set
# CONFIG_FB_AUO_K190X is not set
# CONFIG_FB_SIMPLE is not set
# CONFIG_EXYNOS_VIDEO is not set
CONFIG_BACKLIGHT_LCD_SUPPORT=y
CONFIG_LCD_CLASS_DEVICE=y
CONFIG_LCD_L4F00242T03=y
# CONFIG_LCD_LMS283GF05 is not set
# CONFIG_LCD_LTV350QV is not set
# CONFIG_LCD_ILI922X is not set
# CONFIG_LCD_ILI9320 is not set
# CONFIG_LCD_TDO24M is not set
# CONFIG_LCD_VGG2432A4 is not set
CONFIG_LCD_PLATFORM=y
# CONFIG_LCD_S6E63M0 is not set
# CONFIG_LCD_LD9040 is not set
# CONFIG_LCD_AMS369FG06 is not set
# CONFIG_LCD_LMS501KF03 is not set
# CONFIG_LCD_HX8357 is not set
CONFIG_BACKLIGHT_CLASS_DEVICE=y
CONFIG_BACKLIGHT_GENERIC=y
CONFIG_BACKLIGHT_PWM=y
# CONFIG_BACKLIGHT_DA9052 is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_BACKLIGHT_LM3630 is not set
# CONFIG_BACKLIGHT_LM3639 is not set
# CONFIG_BACKLIGHT_LP855X is not set
# CONFIG_BACKLIGHT_GPIO is not set
# CONFIG_BACKLIGHT_LV5207LP is not set
# CONFIG_BACKLIGHT_BD6107 is not set

#
# Console display driver support
#
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
CONFIG_LOGO=y
CONFIG_LOGO_LINUX_MONO=y
CONFIG_LOGO_LINUX_VGA16=y
CONFIG_LOGO_LINUX_CLUT224=y
# CONFIG_FB_SSD1307 is not set
CONFIG_SOUND=y
# CONFIG_SOUND_OSS_CORE is not set
CONFIG_SND=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_DMAENGINE_PCM=y
CONFIG_SND_COMPRESS_OFFLOAD=y
CONFIG_SND_JACK=y
# CONFIG_SND_SEQUENCER is not set
# CONFIG_SND_MIXER_OSS is not set
# CONFIG_SND_PCM_OSS is not set
# CONFIG_SND_HRTIMER is not set
# CONFIG_SND_DYNAMIC_MINORS is not set
CONFIG_SND_SUPPORT_OLD_API=y
CONFIG_SND_VERBOSE_PROCFS=y
# CONFIG_SND_VERBOSE_PRINTK is not set
# CONFIG_SND_DEBUG is not set
# CONFIG_SND_RAWMIDI_SEQ is not set
# CONFIG_SND_OPL3_LIB_SEQ is not set
# CONFIG_SND_OPL4_LIB_SEQ is not set
# CONFIG_SND_SBAWE_SEQ is not set
# CONFIG_SND_EMU10K1_SEQ is not set
CONFIG_SND_DRIVERS=y
# CONFIG_SND_DUMMY is not set
# CONFIG_SND_ALOOP is not set
# CONFIG_SND_MTPAV is not set
# CONFIG_SND_SERIAL_U16550 is not set
# CONFIG_SND_MPU401 is not set
CONFIG_SND_ARM=y
CONFIG_SND_SPI=y
CONFIG_SND_USB=y
# CONFIG_SND_USB_AUDIO is not set
# CONFIG_SND_USB_UA101 is not set
# CONFIG_SND_USB_CAIAQ is not set
# CONFIG_SND_USB_6FIRE is not set
# CONFIG_SND_USB_HIFACE is not set
CONFIG_SND_SOC=y
CONFIG_SND_SOC_AC97_BUS=y
CONFIG_SND_SOC_GENERIC_DMAENGINE_PCM=y
# CONFIG_SND_ATMEL_SOC is not set
# CONFIG_SND_DESIGNWARE_I2S is not set
CONFIG_SND_SOC_FSL_SSI=y
CONFIG_SND_IMX_SOC=y
CONFIG_SND_SOC_IMX_SSI=y
CONFIG_SND_SOC_IMX_PCM_FIQ=y
CONFIG_SND_SOC_IMX_PCM_DMA=y
CONFIG_SND_SOC_IMX_AUDMUX=y
CONFIG_SND_SOC_PHYCORE_AC97=y
CONFIG_SND_SOC_EUKREA_TLV320=y
CONFIG_SND_SOC_IMX_WM8962=y
CONFIG_SND_SOC_IMX_SGTL5000=y
# CONFIG_SND_SOC_IMX_SPDIF is not set
CONFIG_SND_SOC_IMX_MC13783=y
CONFIG_SND_SOC_I2C_AND_SPI=y
CONFIG_SND_SOC_SGTL5000=y
CONFIG_SND_SOC_TLV320AIC23=y
CONFIG_SND_SOC_WM8962=y
CONFIG_SND_SOC_WM9712=y
CONFIG_SND_SOC_MC13783=y
# CONFIG_SND_SIMPLE_CARD is not set
# CONFIG_SOUND_PRIME is not set
CONFIG_AC97_BUS=y

#
# HID support
#
CONFIG_HID=y
# CONFIG_HIDRAW is not set
# CONFIG_UHID is not set
CONFIG_HID_GENERIC=y

#
# Special HID drivers
#
# CONFIG_HID_A4TECH is not set
# CONFIG_HID_ACRUX is not set
# CONFIG_HID_APPLE is not set
# CONFIG_HID_APPLEIR is not set
# CONFIG_HID_AUREAL is not set
# CONFIG_HID_BELKIN is not set
# CONFIG_HID_CHERRY is not set
# CONFIG_HID_CHICONY is not set
# CONFIG_HID_PRODIKEYS is not set
# CONFIG_HID_CYPRESS is not set
# CONFIG_HID_DRAGONRISE is not set
# CONFIG_HID_EMS_FF is not set
# CONFIG_HID_ELECOM is not set
# CONFIG_HID_ELO is not set
# CONFIG_HID_EZKEY is not set
# CONFIG_HID_HOLTEK is not set
# CONFIG_HID_HUION is not set
# CONFIG_HID_KEYTOUCH is not set
# CONFIG_HID_KYE is not set
# CONFIG_HID_UCLOGIC is not set
# CONFIG_HID_WALTOP is not set
# CONFIG_HID_GYRATION is not set
# CONFIG_HID_ICADE is not set
# CONFIG_HID_TWINHAN is not set
# CONFIG_HID_KENSINGTON is not set
# CONFIG_HID_LCPOWER is not set
# CONFIG_HID_LENOVO_TPKBD is not set
# CONFIG_HID_LOGITECH is not set
# CONFIG_HID_MAGICMOUSE is not set
# CONFIG_HID_MICROSOFT is not set
# CONFIG_HID_MONTEREY is not set
# CONFIG_HID_MULTITOUCH is not set
# CONFIG_HID_NTRIG is not set
# CONFIG_HID_ORTEK is not set
# CONFIG_HID_PANTHERLORD is not set
# CONFIG_HID_PETALYNX is not set
# CONFIG_HID_PICOLCD is not set
# CONFIG_HID_PRIMAX is not set
# CONFIG_HID_ROCCAT is not set
# CONFIG_HID_SAITEK is not set
# CONFIG_HID_SAMSUNG is not set
# CONFIG_HID_SONY is not set
# CONFIG_HID_SPEEDLINK is not set
# CONFIG_HID_STEELSERIES is not set
# CONFIG_HID_SUNPLUS is not set
# CONFIG_HID_GREENASIA is not set
# CONFIG_HID_SMARTJOYPLUS is not set
# CONFIG_HID_TIVO is not set
# CONFIG_HID_TOPSEED is not set
# CONFIG_HID_THINGM is not set
# CONFIG_HID_THRUSTMASTER is not set
# CONFIG_HID_WACOM is not set
# CONFIG_HID_WIIMOTE is not set
# CONFIG_HID_XINMO is not set
# CONFIG_HID_ZEROPLUS is not set
# CONFIG_HID_ZYDACRON is not set
# CONFIG_HID_SENSOR_HUB is not set

#
# USB HID support
#
CONFIG_USB_HID=y
# CONFIG_HID_PID is not set
# CONFIG_USB_HIDDEV is not set

#
# I2C HID support
#
# CONFIG_I2C_HID is not set
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=y
# CONFIG_USB_DEBUG is not set
# CONFIG_USB_ANNOUNCE_NEW_DEVICES is not set

#
# Miscellaneous USB options
#
CONFIG_USB_DEFAULT_PERSIST=y
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_OTG is not set
# CONFIG_USB_OTG_WHITELIST is not set
# CONFIG_USB_OTG_BLACKLIST_HUB is not set
# CONFIG_USB_MON is not set
# CONFIG_USB_WUSB_CBAF is not set

#
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not set
# CONFIG_USB_XHCI_HCD is not set
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_EHCI_TT_NEWSCHED=y
CONFIG_USB_EHCI_MXC=y
# CONFIG_USB_EHCI_HCD_PLATFORM is not set
# CONFIG_USB_OXU210HP_HCD is not set
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_ISP1760_HCD is not set
# CONFIG_USB_ISP1362_HCD is not set
# CONFIG_USB_FUSBH200_HCD is not set
# CONFIG_USB_FOTG210_HCD is not set
# CONFIG_USB_OHCI_HCD is not set
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set
# CONFIG_USB_IMX21_HCD is not set
# CONFIG_USB_HCD_TEST_MODE is not set

#
# USB Device Class drivers
#
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_WDM is not set
# CONFIG_USB_TMC is not set

#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may
#

#
# also be needed; see USB_STORAGE Help for more info
#
CONFIG_USB_STORAGE=y
# CONFIG_USB_STORAGE_DEBUG is not set
# CONFIG_USB_STORAGE_REALTEK is not set
# CONFIG_USB_STORAGE_DATAFAB is not set
# CONFIG_USB_STORAGE_FREECOM is not set
# CONFIG_USB_STORAGE_ISD200 is not set
# CONFIG_USB_STORAGE_USBAT is not set
# CONFIG_USB_STORAGE_SDDR09 is not set
# CONFIG_USB_STORAGE_SDDR55 is not set
# CONFIG_USB_STORAGE_JUMPSHOT is not set
# CONFIG_USB_STORAGE_ALAUDA is not set
# CONFIG_USB_STORAGE_ONETOUCH is not set
# CONFIG_USB_STORAGE_KARMA is not set
# CONFIG_USB_STORAGE_CYPRESS_ATACB is not set
# CONFIG_USB_STORAGE_ENE_UB6250 is not set

#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USB_DWC3 is not set
CONFIG_USB_CHIPIDEA=y
CONFIG_USB_CHIPIDEA_HOST=y
# CONFIG_USB_CHIPIDEA_DEBUG is not set

#
# USB port drivers
#
# CONFIG_USB_SERIAL is not set

#
# USB Miscellaneous drivers
#
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_ADUTUX is not set
# CONFIG_USB_SEVSEG is not set
# CONFIG_USB_RIO500 is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_LED is not set
# CONFIG_USB_CYPRESS_CY7C63 is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_FTDI_ELAN is not set
# CONFIG_USB_APPLEDISPLAY is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TRANCEVIBRATOR is not set
# CONFIG_USB_IOWARRIOR is not set
# CONFIG_USB_TEST is not set
# CONFIG_USB_EHSET_TEST_FIXTURE is not set
# CONFIG_USB_ISIGHTFW is not set
# CONFIG_USB_YUREX is not set
# CONFIG_USB_EZUSB_FX2 is not set
# CONFIG_USB_HSIC_USB3503 is not set

#
# USB Physical Layer drivers
#
CONFIG_USB_PHY=y
CONFIG_NOP_USB_XCEIV=y
# CONFIG_AM335X_PHY_USB is not set
# CONFIG_SAMSUNG_USB2PHY is not set
# CONFIG_SAMSUNG_USB3PHY is not set
# CONFIG_USB_GPIO_VBUS is not set
# CONFIG_USB_ISP1301 is not set
CONFIG_USB_MXS_PHY=y
# CONFIG_USB_RCAR_PHY is not set
# CONFIG_USB_ULPI is not set
# CONFIG_USB_GADGET is not set
CONFIG_MMC=y
# CONFIG_MMC_DEBUG is not set
# CONFIG_MMC_UNSAFE_RESUME is not set
# CONFIG_MMC_CLKGATE is not set

#
# MMC/SD/SDIO Card Drivers
#
CONFIG_MMC_BLOCK=y
CONFIG_MMC_BLOCK_MINORS=8
CONFIG_MMC_BLOCK_BOUNCE=y
# CONFIG_SDIO_UART is not set
# CONFIG_MMC_TEST is not set

#
# MMC/SD/SDIO Host Controller Drivers
#
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_IO_ACCESSORS=y
CONFIG_MMC_SDHCI_PLTFM=y
CONFIG_MMC_SDHCI_ESDHC_IMX=y
# CONFIG_MMC_SDHCI_PXAV3 is not set
# CONFIG_MMC_SDHCI_PXAV2 is not set
# CONFIG_MMC_MXC is not set
# CONFIG_MMC_SPI is not set
# CONFIG_MMC_DW is not set
# CONFIG_MMC_VUB300 is not set
# CONFIG_MMC_USHC is not set
# CONFIG_MEMSTICK is not set
CONFIG_LEDS_GPIO_REGISTER=y
CONFIG_NEW_LEDS=y
CONFIG_LEDS_CLASS=y

#
# LED drivers
#
# CONFIG_LEDS_LM3530 is not set
# CONFIG_LEDS_LM3642 is not set
# CONFIG_LEDS_PCA9532 is not set
# CONFIG_LEDS_GPIO is not set
# CONFIG_LEDS_LP3944 is not set
# CONFIG_LEDS_LP5521 is not set
# CONFIG_LEDS_LP5523 is not set
# CONFIG_LEDS_LP5562 is not set
# CONFIG_LEDS_LP8501 is not set
# CONFIG_LEDS_PCA955X is not set
# CONFIG_LEDS_PCA963X is not set
# CONFIG_LEDS_DA9052 is not set
# CONFIG_LEDS_DAC124S085 is not set
# CONFIG_LEDS_PWM is not set
# CONFIG_LEDS_REGULATOR is not set
# CONFIG_LEDS_BD2802 is not set
# CONFIG_LEDS_LT3593 is not set
# CONFIG_LEDS_MC13783 is not set
# CONFIG_LEDS_TCA6507 is not set
# CONFIG_LEDS_LM355x is not set
# CONFIG_LEDS_OT200 is not set
# CONFIG_LEDS_BLINKM is not set

#
# LED Triggers
#
# CONFIG_LEDS_TRIGGERS is not set
# CONFIG_ACCESSIBILITY is not set
# CONFIG_EDAC is not set
CONFIG_RTC_LIB=y
CONFIG_RTC_CLASS=y
CONFIG_RTC_HCTOSYS=y
CONFIG_RTC_SYSTOHC=y
CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# CONFIG_RTC_DEBUG is not set

#
# RTC interfaces
#
CONFIG_RTC_INTF_SYSFS=y
CONFIG_RTC_INTF_PROC=y
CONFIG_RTC_INTF_DEV=y
CONFIG_RTC_INTF_DEV_UIE_EMUL=y
# CONFIG_RTC_DRV_TEST is not set

#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_DS1307 is not set
# CONFIG_RTC_DRV_DS1374 is not set
# CONFIG_RTC_DRV_DS1672 is not set
# CONFIG_RTC_DRV_DS3232 is not set
# CONFIG_RTC_DRV_MAX6900 is not set
# CONFIG_RTC_DRV_RS5C372 is not set
# CONFIG_RTC_DRV_ISL1208 is not set
# CONFIG_RTC_DRV_ISL12022 is not set
# CONFIG_RTC_DRV_X1205 is not set
# CONFIG_RTC_DRV_PCF2127 is not set
# CONFIG_RTC_DRV_PCF8523 is not set
# CONFIG_RTC_DRV_PCF8563 is not set
# CONFIG_RTC_DRV_PCF8583 is not set
# CONFIG_RTC_DRV_M41T80 is not set
# CONFIG_RTC_DRV_BQ32K is not set
# CONFIG_RTC_DRV_S35390A is not set
# CONFIG_RTC_DRV_FM3130 is not set
# CONFIG_RTC_DRV_RX8581 is not set
# CONFIG_RTC_DRV_RX8025 is not set
# CONFIG_RTC_DRV_EM3027 is not set
# CONFIG_RTC_DRV_RV3029C2 is not set

#
# SPI RTC drivers
#
# CONFIG_RTC_DRV_M41T93 is not set
# CONFIG_RTC_DRV_M41T94 is not set
# CONFIG_RTC_DRV_DS1305 is not set
# CONFIG_RTC_DRV_DS1390 is not set
# CONFIG_RTC_DRV_MAX6902 is not set
# CONFIG_RTC_DRV_R9701 is not set
# CONFIG_RTC_DRV_RS5C348 is not set
# CONFIG_RTC_DRV_DS3234 is not set
# CONFIG_RTC_DRV_PCF2123 is not set
# CONFIG_RTC_DRV_RX4581 is not set

#
# Platform RTC drivers
#
# CONFIG_RTC_DRV_CMOS is not set
# CONFIG_RTC_DRV_DS1286 is not set
# CONFIG_RTC_DRV_DS1511 is not set
# CONFIG_RTC_DRV_DS1553 is not set
# CONFIG_RTC_DRV_DS1742 is not set
# CONFIG_RTC_DRV_DA9052 is not set
# CONFIG_RTC_DRV_STK17TA8 is not set
# CONFIG_RTC_DRV_M48T86 is not set
# CONFIG_RTC_DRV_M48T35 is not set
# CONFIG_RTC_DRV_M48T59 is not set
# CONFIG_RTC_DRV_MSM6242 is not set
# CONFIG_RTC_DRV_BQ4802 is not set
# CONFIG_RTC_DRV_RP5C01 is not set
# CONFIG_RTC_DRV_V3020 is not set
# CONFIG_RTC_DRV_DS2404 is not set

#
# on-CPU RTC drivers
#
# CONFIG_RTC_DRV_IMXDI is not set
CONFIG_RTC_DRV_MC13XXX=y
CONFIG_RTC_DRV_MXC=y
CONFIG_RTC_DRV_SNVS=y
# CONFIG_RTC_DRV_MOXART is not set

#
# HID Sensor RTC drivers
#
# CONFIG_RTC_DRV_HID_SENSOR_TIME is not set
CONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set

#
# DMA Devices
#
# CONFIG_DW_DMAC_CORE is not set
# CONFIG_DW_DMAC is not set
CONFIG_MX3_IPU=y
CONFIG_MX3_IPU_IRQS=4
# CONFIG_TIMB_DMA is not set
CONFIG_IMX_SDMA=y
# CONFIG_IMX_DMA is not set
CONFIG_MXS_DMA=y
CONFIG_DMA_ENGINE=y
CONFIG_DMA_OF=y

#
# DMA Clients
#
# CONFIG_NET_DMA is not set
# CONFIG_ASYNC_TX_DMA is not set
# CONFIG_DMATEST is not set
# CONFIG_AUXDISPLAY is not set
# CONFIG_UIO is not set
# CONFIG_VIRT_DRIVERS is not set

#
# Virtio drivers
#
# CONFIG_VIRTIO_MMIO is not set

#
# Microsoft Hyper-V guest support
#
CONFIG_STAGING=y
# CONFIG_USBIP_CORE is not set
# CONFIG_W35UND is not set
# CONFIG_PRISM2_USB is not set
# CONFIG_ECHO is not set
# CONFIG_COMEDI is not set
# CONFIG_RTLLIB is not set
# CONFIG_R8712U is not set
# CONFIG_R8188EU is not set
# CONFIG_RTS5139 is not set
# CONFIG_TRANZPORT is not set
# CONFIG_LINE6_USB is not set
# CONFIG_VT6656 is not set
# CONFIG_ZSMALLOC is not set
# CONFIG_USB_ENESTORAGE is not set
# CONFIG_BCM_WIMAX is not set
# CONFIG_FT1000 is not set

#
# Speakup console speech
#
# CONFIG_SPEAKUP is not set
# CONFIG_TOUCHSCREEN_CLEARPAD_TM1217 is not set
# CONFIG_TOUCHSCREEN_SYNAPTICS_I2C_RMI4 is not set
# CONFIG_STAGING_MEDIA is not set

#
# Android
#
# CONFIG_ANDROID is not set
# CONFIG_USB_WPAN_HCD is not set
# CONFIG_WIMAX_GDM72XX is not set
# CONFIG_LTE_GDM724X is not set
# CONFIG_CED1401 is not set
CONFIG_DRM_IMX=y
CONFIG_DRM_IMX_FB_HELPER=y
CONFIG_DRM_IMX_PARALLEL_DISPLAY=y
CONFIG_DRM_IMX_TVE=y
CONFIG_DRM_IMX_LDB=y
CONFIG_DRM_IMX_IPUV3_CORE=y
CONFIG_DRM_IMX_IPUV3=y
# CONFIG_DGRP is not set
# CONFIG_USB_DWC2 is not set
# CONFIG_LUSTRE_FS is not set
# CONFIG_XILLYBUS is not set
# CONFIG_DGAP is not set
CONFIG_CLKDEV_LOOKUP=y
CONFIG_HAVE_CLK_PREPARE=y
CONFIG_COMMON_CLK=y

#
# Common Clock Framework
#
CONFIG_COMMON_CLK_DEBUG=y
# CONFIG_COMMON_CLK_SI5351 is not set

#
# Hardware Spinlock drivers
#
CONFIG_CLKSRC_OF=y
CONFIG_CLKSRC_MMIO=y
CONFIG_VF_PIT_TIMER=y
# CONFIG_MAILBOX is not set
# CONFIG_IOMMU_SUPPORT is not set

#
# Remoteproc drivers
#
# CONFIG_STE_MODEM_RPROC is not set

#
# Rpmsg drivers
#
# CONFIG_PM_DEVFREQ is not set
# CONFIG_EXTCON is not set
# CONFIG_MEMORY is not set
# CONFIG_IIO is not set
CONFIG_PWM=y
CONFIG_PWM_SYSFS=y
CONFIG_PWM_IMX=y
# CONFIG_PWM_PCA9685 is not set
CONFIG_IRQCHIP=y
CONFIG_ARM_GIC=y
# CONFIG_IPACK_BUS is not set
CONFIG_ARCH_HAS_RESET_CONTROLLER=y
CONFIG_RESET_CONTROLLER=y
# CONFIG_FMC is not set

#
# File systems
#
CONFIG_DCACHE_WORD_ACCESS=y
CONFIG_EXT2_FS=y
CONFIG_EXT2_FS_XATTR=y
CONFIG_EXT2_FS_POSIX_ACL=y
CONFIG_EXT2_FS_SECURITY=y
# CONFIG_EXT2_FS_XIP is not set
CONFIG_EXT3_FS=y
CONFIG_EXT3_DEFAULTS_TO_ORDERED=y
CONFIG_EXT3_FS_XATTR=y
CONFIG_EXT3_FS_POSIX_ACL=y
CONFIG_EXT3_FS_SECURITY=y
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set
CONFIG_JBD=y
# CONFIG_JBD_DEBUG is not set
CONFIG_JBD2=y
# CONFIG_JBD2_DEBUG is not set
CONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_XFS_FS is not set
# CONFIG_GFS2_FS is not set
# CONFIG_OCFS2_FS is not set
# CONFIG_BTRFS_FS is not set
# CONFIG_NILFS2_FS is not set
CONFIG_FS_POSIX_ACL=y
CONFIG_FILE_LOCKING=y
CONFIG_FSNOTIFY=y
CONFIG_DNOTIFY=y
CONFIG_INOTIFY_USER=y
# CONFIG_FANOTIFY is not set
CONFIG_QUOTA=y
CONFIG_QUOTA_NETLINK_INTERFACE=y
# CONFIG_PRINT_QUOTA_WARNING is not set
# CONFIG_QUOTA_DEBUG is not set
# CONFIG_QFMT_V1 is not set
# CONFIG_QFMT_V2 is not set
CONFIG_QUOTACTL=y
CONFIG_AUTOFS4_FS=y
CONFIG_FUSE_FS=y
# CONFIG_CUSE is not set

#
# Caches
#
# CONFIG_FSCACHE is not set

#
# CD-ROM/DVD Filesystems
#
CONFIG_ISO9660_FS=m
CONFIG_JOLIET=y
CONFIG_ZISOFS=y
CONFIG_UDF_FS=m
CONFIG_UDF_NLS=y

#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=m
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
# CONFIG_NTFS_FS is not set

#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_SYSCTL=y
CONFIG_PROC_PAGE_MONITOR=y
CONFIG_SYSFS=y
CONFIG_TMPFS=y
# CONFIG_TMPFS_POSIX_ACL is not set
# CONFIG_TMPFS_XATTR is not set
# CONFIG_HUGETLB_PAGE is not set
CONFIG_CONFIGFS_FS=m
CONFIG_MISC_FILESYSTEMS=y
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_ECRYPT_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_WRITEBUFFER=y
# CONFIG_JFFS2_FS_WBUF_VERIFY is not set
# CONFIG_JFFS2_SUMMARY is not set
# CONFIG_JFFS2_FS_XATTR is not set
# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
CONFIG_JFFS2_ZLIB=y
# CONFIG_JFFS2_LZO is not set
CONFIG_JFFS2_RTIME=y
# CONFIG_JFFS2_RUBIN is not set
CONFIG_UBIFS_FS=y
# CONFIG_UBIFS_FS_ADVANCED_COMPR is not set
CONFIG_UBIFS_FS_LZO=y
CONFIG_UBIFS_FS_ZLIB=y
# CONFIG_LOGFS is not set
# CONFIG_CRAMFS is not set
# CONFIG_SQUASHFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_OMFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX6FS_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_PSTORE is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
# CONFIG_F2FS_FS is not set
CONFIG_NETWORK_FILESYSTEMS=y
CONFIG_NFS_FS=y
CONFIG_NFS_V2=y
CONFIG_NFS_V3=y
CONFIG_NFS_V3_ACL=y
CONFIG_NFS_V4=y
# CONFIG_NFS_SWAP is not set
# CONFIG_NFS_V4_1 is not set
CONFIG_ROOT_NFS=y
# CONFIG_NFS_USE_LEGACY_DNS is not set
CONFIG_NFS_USE_KERNEL_DNS=y
# CONFIG_NFSD is not set
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_NFS_ACL_SUPPORT=y
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=y
CONFIG_SUNRPC_GSS=y
# CONFIG_SUNRPC_DEBUG is not set
# CONFIG_CEPH_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="cp437"
CONFIG_NLS_CODEPAGE_437=y
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not set
CONFIG_NLS_ASCII=y
CONFIG_NLS_ISO8859_1=y
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
CONFIG_NLS_ISO8859_15=m
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not set
# CONFIG_NLS_MAC_ROMAN is not set
# CONFIG_NLS_MAC_CELTIC is not set
# CONFIG_NLS_MAC_CENTEURO is not set
# CONFIG_NLS_MAC_CROATIAN is not set
# CONFIG_NLS_MAC_CYRILLIC is not set
# CONFIG_NLS_MAC_GAELIC is not set
# CONFIG_NLS_MAC_GREEK is not set
# CONFIG_NLS_MAC_ICELAND is not set
# CONFIG_NLS_MAC_INUIT is not set
# CONFIG_NLS_MAC_ROMANIAN is not set
# CONFIG_NLS_MAC_TURKISH is not set
CONFIG_NLS_UTF8=y
# CONFIG_DLM is not set

#
# Kernel hacking
#

#
# printk and dmesg options
#
# CONFIG_PRINTK_TIME is not set
CONFIG_DEFAULT_MESSAGE_LOGLEVEL=4
# CONFIG_BOOT_PRINTK_DELAY is not set
# CONFIG_DYNAMIC_DEBUG is not set

#
# Compile-time checks and compiler options
#
# CONFIG_DEBUG_INFO is not set
CONFIG_ENABLE_WARN_DEPRECATED=y
CONFIG_ENABLE_MUST_CHECK=y
CONFIG_FRAME_WARN=1024
# CONFIG_STRIP_ASM_SYMS is not set
# CONFIG_READABLE_ASM is not set
# CONFIG_UNUSED_SYMBOLS is not set
CONFIG_DEBUG_FS=y
# CONFIG_HEADERS_CHECK is not set
# CONFIG_DEBUG_SECTION_MISMATCH is not set
CONFIG_FRAME_POINTER=y
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_KERNEL=y

#
# Memory Debugging
#
# CONFIG_DEBUG_PAGEALLOC is not set
# CONFIG_DEBUG_OBJECTS is not set
# CONFIG_SLUB_STATS is not set
CONFIG_HAVE_DEBUG_KMEMLEAK=y
# CONFIG_DEBUG_KMEMLEAK is not set
# CONFIG_DEBUG_STACK_USAGE is not set
# CONFIG_DEBUG_VM is not set
# CONFIG_DEBUG_MEMORY_INIT is not set
# CONFIG_DEBUG_PER_CPU_MAPS is not set
# CONFIG_DEBUG_SHIRQ is not set

#
# Debug Lockups and Hangs
#
# CONFIG_LOCKUP_DETECTOR is not set
# CONFIG_DETECT_HUNG_TASK is not set
# CONFIG_PANIC_ON_OOPS is not set
CONFIG_PANIC_ON_OOPS_VALUE=0
# CONFIG_SCHED_DEBUG is not set
# CONFIG_SCHEDSTATS is not set
# CONFIG_TIMER_STATS is not set

#
# Lock Debugging (spinlocks, mutexes, etc...)
#
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_RT_MUTEX_TESTER is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_WW_MUTEX_SLOWPATH is not set
# CONFIG_DEBUG_LOCK_ALLOC is not set
# CONFIG_PROVE_LOCKING is not set
# CONFIG_LOCK_STAT is not set
# CONFIG_DEBUG_ATOMIC_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_DEBUG_KOBJECT is not set
# CONFIG_DEBUG_KOBJECT_RELEASE is not set
# CONFIG_DEBUG_BUGVERBOSE is not set
# CONFIG_DEBUG_WRITECOUNT is not set
# CONFIG_DEBUG_LIST is not set
# CONFIG_DEBUG_SG is not set
# CONFIG_DEBUG_NOTIFIERS is not set
# CONFIG_DEBUG_CREDENTIALS is not set

#
# RCU Debugging
#
# CONFIG_SPARSE_RCU_POINTER is not set
# CONFIG_RCU_TORTURE_TEST is not set
CONFIG_RCU_CPU_STALL_TIMEOUT=21
# CONFIG_RCU_CPU_STALL_INFO is not set
# CONFIG_RCU_TRACE is not set
# CONFIG_DEBUG_BLOCK_EXT_DEVT is not set
# CONFIG_NOTIFIER_ERROR_INJECTION is not set
# CONFIG_FAULT_INJECTION is not set
CONFIG_HAVE_FUNCTION_TRACER=y
CONFIG_HAVE_FUNCTION_GRAPH_TRACER=y
CONFIG_HAVE_DYNAMIC_FTRACE=y
CONFIG_HAVE_FTRACE_MCOUNT_RECORD=y
CONFIG_HAVE_SYSCALL_TRACEPOINTS=y
CONFIG_HAVE_C_RECORDMCOUNT=y
CONFIG_TRACING_SUPPORT=y
# CONFIG_FTRACE is not set

#
# Runtime Testing
#
# CONFIG_LKDTM is not set
# CONFIG_TEST_LIST_SORT is not set
# CONFIG_BACKTRACE_SELF_TEST is not set
# CONFIG_RBTREE_TEST is not set
# CONFIG_INTERVAL_TREE_TEST is not set
# CONFIG_ATOMIC64_SELFTEST is not set
# CONFIG_TEST_STRING_HELPERS is not set
# CONFIG_TEST_KSTRTOX is not set
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_SAMPLES is not set
CONFIG_HAVE_ARCH_KGDB=y
# CONFIG_KGDB is not set
# CONFIG_STRICT_DEVMEM is not set
# CONFIG_ARM_UNWIND is not set
# CONFIG_DEBUG_USER is not set
# CONFIG_DEBUG_LL is not set
CONFIG_DEBUG_IMX_UART_PORT=1
CONFIG_DEBUG_LL_INCLUDE="mach/debug-macro.S"
# CONFIG_DEBUG_UART_PL01X is not set
# CONFIG_DEBUG_UART_8250 is not set
CONFIG_UNCOMPRESS_INCLUDE="debug/uncompress.h"
# CONFIG_PID_IN_CONTEXTIDR is not set

#
# Security options
#
CONFIG_KEYS=y
# CONFIG_ENCRYPTED_KEYS is not set
# CONFIG_KEYS_DEBUG_PROC_KEYS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not set
# CONFIG_SECURITY is not set
CONFIG_SECURITYFS=y
CONFIG_DEFAULT_SECURITY_DAC=y
CONFIG_DEFAULT_SECURITY=""
CONFIG_CRYPTO=y

#
# Crypto core or helper
#
CONFIG_CRYPTO_ALGAPI=y
CONFIG_CRYPTO_ALGAPI2=y
CONFIG_CRYPTO_BLKCIPHER=y
CONFIG_CRYPTO_BLKCIPHER2=y
CONFIG_CRYPTO_HASH=y
CONFIG_CRYPTO_HASH2=y
CONFIG_CRYPTO_RNG2=y
# CONFIG_CRYPTO_MANAGER is not set
# CONFIG_CRYPTO_MANAGER2 is not set
# CONFIG_CRYPTO_USER is not set
# CONFIG_CRYPTO_GF128MUL is not set
# CONFIG_CRYPTO_NULL is not set
# CONFIG_CRYPTO_PCRYPT is not set
CONFIG_CRYPTO_WORKQUEUE=y
# CONFIG_CRYPTO_CRYPTD is not set
# CONFIG_CRYPTO_AUTHENC is not set
# CONFIG_CRYPTO_TEST is not set

#
# Authenticated Encryption with Associated Data
#
# CONFIG_CRYPTO_CCM is not set
# CONFIG_CRYPTO_GCM is not set
# CONFIG_CRYPTO_SEQIV is not set

#
# Block modes
#
# CONFIG_CRYPTO_CBC is not set
# CONFIG_CRYPTO_CTR is not set
# CONFIG_CRYPTO_CTS is not set
# CONFIG_CRYPTO_ECB is not set
# CONFIG_CRYPTO_LRW is not set
# CONFIG_CRYPTO_PCBC is not set
# CONFIG_CRYPTO_XTS is not set

#
# Hash modes
#
# CONFIG_CRYPTO_CMAC is not set
# CONFIG_CRYPTO_HMAC is not set
# CONFIG_CRYPTO_XCBC is not set
# CONFIG_CRYPTO_VMAC is not set

#
# Digest
#
CONFIG_CRYPTO_CRC32C=y
# CONFIG_CRYPTO_CRC32 is not set
CONFIG_CRYPTO_CRCT10DIF=y
# CONFIG_CRYPTO_GHASH is not set
# CONFIG_CRYPTO_MD4 is not set
# CONFIG_CRYPTO_MD5 is not set
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_RMD128 is not set
# CONFIG_CRYPTO_RMD160 is not set
# CONFIG_CRYPTO_RMD256 is not set
# CONFIG_CRYPTO_RMD320 is not set
# CONFIG_CRYPTO_SHA1 is not set
# CONFIG_CRYPTO_SHA1_ARM is not set
# CONFIG_CRYPTO_SHA256 is not set
# CONFIG_CRYPTO_SHA512 is not set
# CONFIG_CRYPTO_TGR192 is not set
# CONFIG_CRYPTO_WP512 is not set

#
# Ciphers
#
CONFIG_CRYPTO_AES=y
# CONFIG_CRYPTO_AES_ARM is not set
# CONFIG_CRYPTO_ANUBIS is not set
CONFIG_CRYPTO_ARC4=y
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_CAMELLIA is not set
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_DES is not set
# CONFIG_CRYPTO_FCRYPT is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_SALSA20 is not set
# CONFIG_CRYPTO_SEED is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_TWOFISH is not set

#
# Compression
#
CONFIG_CRYPTO_DEFLATE=y
# CONFIG_CRYPTO_ZLIB is not set
CONFIG_CRYPTO_LZO=y
# CONFIG_CRYPTO_LZ4 is not set
# CONFIG_CRYPTO_LZ4HC is not set

#
# Random Number Generation
#
# CONFIG_CRYPTO_ANSI_CPRNG is not set
# CONFIG_CRYPTO_USER_API_HASH is not set
# CONFIG_CRYPTO_USER_API_SKCIPHER is not set
# CONFIG_CRYPTO_HW is not set
# CONFIG_ASYMMETRIC_KEY_TYPE is not set
# CONFIG_BINARY_PRINTF is not set

#
# Library routines
#
CONFIG_BITREVERSE=y
CONFIG_RATIONAL=y
CONFIG_GENERIC_STRNCPY_FROM_USER=y
CONFIG_GENERIC_STRNLEN_USER=y
CONFIG_GENERIC_NET_UTILS=y
CONFIG_GENERIC_PCI_IOMAP=y
CONFIG_GENERIC_IO=y
CONFIG_STMP_DEVICE=y
CONFIG_CRC_CCITT=m
CONFIG_CRC16=y
CONFIG_CRC_T10DIF=y
CONFIG_CRC_ITU_T=m
CONFIG_CRC32=y
# CONFIG_CRC32_SELFTEST is not set
CONFIG_CRC32_SLICEBY8=y
# CONFIG_CRC32_SLICEBY4 is not set
# CONFIG_CRC32_SARWATE is not set
# CONFIG_CRC32_BIT is not set
CONFIG_CRC7=m
CONFIG_LIBCRC32C=m
# CONFIG_CRC8 is not set
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
CONFIG_LZO_COMPRESS=y
CONFIG_LZO_DECOMPRESS=y
# CONFIG_XZ_DEC is not set
# CONFIG_XZ_DEC_BCJ is not set
CONFIG_DECOMPRESS_GZIP=y
CONFIG_GENERIC_ALLOCATOR=y
CONFIG_HAS_IOMEM=y
CONFIG_HAS_IOPORT=y
CONFIG_HAS_DMA=y
CONFIG_CPU_RMAP=y
CONFIG_DQL=y
CONFIG_NLATTR=y
CONFIG_GENERIC_ATOMIC64=y
CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
CONFIG_AVERAGE=y
# CONFIG_CORDIC is not set
# CONFIG_DDR is not set
CONFIG_OID_REGISTRY=y
CONFIG_FONT_SUPPORT=y
CONFIG_FONTS=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y
# CONFIG_FONT_6x11 is not set
# CONFIG_FONT_7x14 is not set
# CONFIG_FONT_PEARL_8x8 is not set
# CONFIG_FONT_ACORN_8x8 is not set
# CONFIG_FONT_MINI_4x6 is not set
# CONFIG_FONT_SUN8x16 is not set
# CONFIG_FONT_SUN12x22 is not set
# CONFIG_FONT_10x18 is not set
# CONFIG_VIRTUALIZATION is not set

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-06 10:47                         ` Dong Aisheng
@ 2013-11-07 16:05                           ` Arend van Spriel
  2013-11-08  5:39                             ` Dong Aisheng
  0 siblings, 1 reply; 17+ messages in thread
From: Arend van Spriel @ 2013-11-07 16:05 UTC (permalink / raw)
  To: Dong Aisheng; +Cc: linux-wireless, frankyl, brcm80211-dev-list

On 11/06/2013 11:47 AM, Dong Aisheng wrote:
> On Wed, Nov 6, 2013 at 5:57 PM, Arend van Spriel<arend@broadcom.com>  wrote:
>> On 11/06/2013 09:30 AM, Arend van Spriel wrote:
>>>
>>> On 11/05/2013 10:26 AM, Dong Aisheng wrote:
>>>>
>>>> On Tue, Nov 5, 2013 at 4:57 PM, Dong Aisheng<dongas86@gmail.com>  wrote:
>>>>>
>>>>> On Tue, Nov 5, 2013 at 4:36 PM, Arend van Spriel<arend@broadcom.com>
>>>>> wrote:
>>>>>>
>>>>>> On 11/05/2013 03:51 AM, Dong Aisheng wrote:
>>>>>>>
>>>>>>>
>>>>>>> On Mon, Nov 4, 2013 at 5:44 PM, Arend van Spriel<arend@broadcom.com>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>> On 11/04/2013 09:13 AM, Dong Aisheng wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Hi Arend,
>>>>>>>>>
>>>>>>>>> On Mon, Nov 4, 2013 at 11:44 AM, Dong Aisheng<dongas86@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hi Arend,
>>>>>>>>>>
>>>>>>>>>> On Fri, Nov 1, 2013 at 9:25 PM, Arend van Spriel
>>>>>>>>>> <arend@broadcom.com>
>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> On 11/01/2013 01:21 PM, Dong Aisheng wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Hi Arend,
>>>>>>>>>>>>
>>>>>>>>>>>> On Fri, Nov 1, 2013 at 6:35 PM, Arend van Spriel
>>>>>>>>>>>> <arend@broadcom.com>
>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> On 11/01/2013 07:22 AM, Dong Aisheng wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Hi ALL,
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
>>>>>>>>>>>>>> The kernel i ran is latest from:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> The firmware is used is from:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> NVRAM file is got from the vendor which should work for the
>>>>>>>>>>>>>> module.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> But i ran into the following issues, hope somebody can give
>>>>>>>>>>>>>> me some
>>>>>>>>>>>>>> hints.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> First, i met error when module is auto loaded, but seems the
>>>>>>>>>>>>>> driver
>>>>>>>>>>>>>> is
>>>>>>>>>>>>>> still loaded successfully since i found the new WiFi
>>>>>>>>>>>>>> interface with
>>>>>>>>>>>>>> ifconfig.
>>>>>>>>>>>>>> But it can not work after run rfkill unblock wlan and a lot
>>>>>>>>>>>>>> error
>>>>>>>>>>>>>> messages comes out.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I'm wondering if this driver can support bcm4335 well, can
>>>>>>>>>>>>>> anybody
>>>>>>>>>>>>>> provide some help?
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> I can try. I have used the bcm4335 with a SDIO3.0 controller
>>>>>>>>>>>>> on a
>>>>>>>>>>>>> x86
>>>>>>>>>>>>> PC.
>>>>>>>>>>>>> Looking at an issue right now, but your log does not show
>>>>>>>>>>>>> that so
>>>>>>>>>>>>> you
>>>>>>>>>>>>> have a
>>>>>>>>>>>>> different issue. Could you load the module with parameter
>>>>>>>>>>>>> 'debug=0x146'.
>>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> Thanks for the help.
>>>>>>>>>>>> So that means the brcmfmac driver should support bcm4335
>>>>>>>>>>>> module well,
>>>>>>>>>>>> right?
>>>>>>>>>>>> The difference is that i'm using a ARM platform.
>>>>>>>>>>>> Below is log with 'debug=0x146'.
>>>>>>>>>>>> It only includes driver probe log.
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> That log actually looks fine. Just not sure why software rfkill
>>>>>>>>>>> was
>>>>>>>>>>> enabled.
>>>>>>>>>>> Is that still the case? What distro is running on your platform?
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Do you  mean the error message during probe is also fine?
>>>>>>>>>> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>>>>>>> mmc0: new high speed SDIO card at address 0001
>>>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>>>> 0xffffffac
>>>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>>>> 0xffffffac
>>>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>>>> 0xffffffac
>>>>>>>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84<--- error
>>>>>>>>>> message
>>>>>>>>>> brcmfmac: brcmf_sdio_chip_
>>>>>>>>>> drivestrengthinit: No SDIO Drive strength
>>>>>>>>>> init done for chip 4335 rev 1 pmurev 18
>>>>>>>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24
>>>>>>>>>> 2013
>>>>>>>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23<----
>>>>>>>>>> error
>>>>>>>>>> message
>>>>>>>>>>
>>>>>>>>>> I'm using yocto rootfs, seems rfkill is always enabled by default.
>>>>>>>>>> I could try another rootfs without rfkill.
>>>>>>>>>> But i don't think rfkill should block WiFi driver to work properly.
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I tried another rootfs without rfkill, met the same issue when doing
>>>>>>>>> ifconfig wlan0 up, just like 'rfkill unblock wlan'.
>>>>>>>>>
>>>>>>>>> root@freescale ~$ mmc0: mmc_rescan_try_freq: trying to init card at
>>>>>>>>> 400000
>>>>>>>>> Hz
>>>>>>>>> mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>>>>>> mmc0: new high speed SDIO card at address 0001
>>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>>> 0xffffffac
>>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>>> 0xffffffac
>>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>>> 0xffffffac
>>>>>>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>>>>>>>>> brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive strength
>>>>>>>>> init done for chip 4335 rev 1 pmurev 18
>>>>>>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24 2013
>>>>>>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>>>>>>
>>>>>>>>> root@freescale ~$
>>>>>>>>> root@freescale ~$
>>>>>>>>> root@freescale ~$ ifconfig -a
>>>>>>>>> ......
>>>>>>>>>
>>>>>>>>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>>>>>>>>               BROADCAST MULTICAST  MTU:1500  Metric:1
>>>>>>>>>               RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>>>>>>               TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>>>>>>>               collisions:0 txqueuelen:1000
>>>>>>>>>               RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>>>>>>>
>>>>>>>>> root@freescale ~$ ifconfig wlan0 up
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>>>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>>>>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>>>>>>
>>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>>>>>> root@freescale ~$
>>>>>>>>> root@freescale ~$
>>>>>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to
>>>>>>>>> write
>>>>>>>>> byte F1:@0x1001f=01, Err: -110
>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>>>
>>>>>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to
>>>>>>>>> write
>>>>>>>>> byte F1:@0x1001f=01, Err: -110
>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>>>>>> F1:@0x1001f=01, Err: -110
>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>>>
>>>>>>>>> I looked into a bit more about the error and found there's CMD
>>>>>>>>> timeout
>>>>>>>>> on the bus during SDIO
>>>>>>>>> command transfer.
>>>>>>>>> ---------------------------------------
>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00
>>>>>>>>> ........5..
>>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> mmc0: starting CMD52 arg 92001400 flags 00000195
>>>>>>>>> sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00010000
>>>>>>>>> mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>>>>>> F1:@0x1000a=00, Err: -110
>>>>>>>>> ------------------------------------------
>>>>>>>>> I'm not sure how this happened, whether caused by host side or wifi
>>>>>>>>> driver
>>>>>>>>> side.
>>>>>>>>> But for the host, i tried this host driver with another WiFi
>>>>>>>>> card(Atheros AR6103) with same kernel,
>>>>>>>>> and it worked well. So the host driver seems more like ok to me.
>>>>>>>>>
>>>>>>>>> Since i'm not familar with the WiFi driver, i wonder if you could
>>>>>>>>> provide suggestion
>>>>>>>>> from WiFi driver layer to see what the issue could be.
>>>>>>>>>
>>>>>>>>> Below is the detailed log when run 'ifconfig wlan0 up'
>>>>>>>>>
>>>>>>>>> root@freescale ~$ ifconfig wlan0 up
>>>>>>>>> brcmfmac: brcmf_netdev_open Enter, idx=0
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>> brcmutil: TxHdr:
>>>>>>>>> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>>> /...............
>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>>>
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00
>>>>>>>>> '........&..
>>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>> brcmutil: TxHdr:
>>>>>>>>> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>>> (...............
>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>>>> ............
>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00
>>>>>>>>> ........2..
>>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmutil: TxHdr:
>>>>>>>>> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>>> (...............
>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00
>>>>>>>>> .........2..
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
>>>>>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
>>>>>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>>>>>> brcmfmac: brcmf_fws_notify_credit_map enter: credits
>>>>>>>>> 09:27:12:09:09:02
>>>>>>>>> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>>>>>>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>>>>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00
>>>>>>>>> ........3..
>>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>> brcmutil: TxHdr:
>>>>>>>>> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>>> (...............
>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>>>> ............
>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00
>>>>>>>>> ........4..
>>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmutil: TxHdr:
>>>>>>>>> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>>> (...............
>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>>>> ............
>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>>>> ............
>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00
>>>>>>>>> ........5..
>>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmutil: TxHdr:
>>>>>>>>> 00000000: 28 00 d7 ff 15 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>>> (...............
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>>>> ............
>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>> 00000000: 20 00 df ff 1a 00 00 0c 00 36 00 00
>>>>>>>>> ........6..
>>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>>> brcmfmac: brcmf_config_dongle power save set to enabled
>>>>>>>>> brcmfmac: brcmf_dongle_roam Internal Roaming = On
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> It seem this is the last command being sent. Could you provide file
>>>>>>>> contents
>>>>>>>> in /sys/kernel/debug/brcmfmac/mmc*/
>>>>>>>>
>>>>>>>> Not sure if Yocto mounts debugfs on /sys/kernel/debug. Otherwise
>>>>>>>> you can
>>>>>>>> do:
>>>>>>>>
>>>>>>>> # mkdir /tmp/debugfs
>>>>>>>> # mount -t debugfs none /tmp/debugfs
>>>>>>>>
>>>>>>>
>>>>>>> Please see below:
>>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls
>>>>>>> counters  forensics  fws_stats
>>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls -l
>>>>>>> total 0
>>>>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 counters
>>>>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 forensics
>>>>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 fws_stats
>>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat counters
>>>>>>> intrcount:    19
>>>>>>> lastintrs:    0
>>>>>>> pollcnt:      0
>>>>>>> regfails:     0
>>>>>>> tx_sderrs:    0
>>>>>>> fcqueued:     0
>>>>>>> rxrtx:        0
>>>>>>> rx_toolong:   0
>>>>>>> rxc_errors:   0
>>>>>>> rx_hdrfail:   0
>>>>>>> rx_badhdr:    0
>>>>>>> rx_badseq:    0
>>>>>>> fc_rcvd:      0
>>>>>>> fc_xoff:      0
>>>>>>> fc_xon:       0
>>>>>>> rxglomfail:   0
>>>>>>> rxglomframes: 0
>>>>>>> rxglompkts:   0
>>>>>>> f2rxhdrs:     36
>>>>>>> f2rxdata:     3
>>>>>>> f2txdata:     0
>>>>>>> f1regdata:    42
>>>>>>> tickcnt:      53
>>>>>>> tx_ctlerrs:   0
>>>>>>> tx_ctlpkts:   17
>>>>>>> rx_ctlerrs:   0
>>>>>>> rx_ctlpkts:   17
>>>>>>> rx_readahead: 0
>>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat forensics
>>>>>>>
>>>>>>> RTE (USB-SDIO-CDC) 6.30.171.24.20 (B0 Station/P2P) on BCM4335 r1 @
>>>>>>> 37.4/161.3/161.3MHz
>>>>>>> 000000.011 sdpcmdcdc0: Broadcom SDPCMD CDC driver
>>>>>>> 000000.018 reclaim section 0: Returned 42772 bytes to the heap
>>>>>>> 000000.061 wl0: Broadcom BCM4335 802.11 Wireless Controller
>>>>>>> 6.30.171.24.20 (B0 Station/P2P)
>>>>>>> 000000.070 reclaim section 1: Returned 62128 bytes to the heap
>>>>>>> 000000.209 wl0: wlc_enable_probe_req: state down, deferring setting of
>>>>>>> host flags
>>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ring setting of
>>>>>>> host flags
>>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat fws_stats
>>>>>>> header_pulls:      0
>>>>>>> header_only_pkt:   0
>>>>>>> tlv_parse_failed:  0
>>>>>>> tlv_invalid_type:  0
>>>>>>> mac_update_fails:  0
>>>>>>> ps_update_fails:   0
>>>>>>> if_update_fails:   0
>>>>>>> pkt2bus:           0
>>>>>>> generic_error:     0
>>>>>>> rollback_success:  0
>>>>>>> rollback_failed:   0
>>>>>>> delayq_full:       0
>>>>>>> supprq_full:       0
>>>>>>> txs_indicate:      0
>>>>>>> txs_discard:       0
>>>>>>> txs_suppr_core:    0
>>>>>>> txs_suppr_ps:      0
>>>>>>> txs_tossed:        0
>>>>>>> txs_host_tossed:   0
>>>>>>> bus_flow_block:    0
>>>>>>> fws_flow_block:    0
>>>>>>> send_pkts:         BK:0 BE:0 VO:0 VI:0 BCMC:0
>>>>>>> requested_sent:    BK:0 BE:0 VO:0 VI:0 BCMC:0
>>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1#
>>>>>>
>>>>>>
>>>>>>
>>>>>> Nothing exciting there either. Let's take a step back. The rfkill
>>>>>> seems an
>>>>>> issue, but I first would like to know if you can get connectivity.
>>>>>> Does the
>>>>>> 'ifconfig wlan0 up' complete at all and is it successful.
>>>>>>
>>>>>
>>>>> The second rootfs i tried does not have rfkill.
>>>>> But shows the similar issue with 'ifconfig wlan0 up'.
>>>>>
>>>>>> As you noticed during the up sequence there is a timeout. I would
>>>>>> like to
>>>>>> know what command that is. Could you run it again with debug=1546?
>>>>>>
>>>>>
>>>>> Will run the test now.
>>>>> Thanks for the help.
>>>>>
>>>>
>>>> Please see blow log:
>>>> Note: there's no rfkill in this rootfs.
>>>>
>>>> root@freescale ~$ ifconfgi  ig wlan0
>>>> brcmfmac: brcmf_netdev_get_stats Enter, idx=0
>>>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>>>             BROADCAST MULTICAST  MTU:1500  Metric:1
>>>>             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>>             collisions:0 txqueuelen:1000
>>>>             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>>
>>>> root@freescale ~$ ifconfig wlan0 up
>>>> brcmfmac: brcmf_netdev_open Enter, idx=0
>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmutil: TxHdr:
>>>> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00
>>>> /...............
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>
>>>> <--------- I noticed a few seconds stall here
>>>>
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>> brcmfmac: brcmf_fil_iovar_data_get name=toe_ol, len=4
>>>> brcmutil: data
>>>> 00000000: 28 aa 49 80                                      (.I.
>>>>
>>>> brcmutil: RxHdr:
>>>> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00              '........&..
>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> brcmfmac: brcmf_fil_cmd_int_set cmd=2, value=0
>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmutil: TxHdr:
>>>> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00
>>>> (...............
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00               ........2..
>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>
>>>> brcmfmac: brcmf_fil_cmd_int_set cmd=185, value=40
>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmutil: TxHdr:
>>>> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00
>>>> (...............
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00              .........2..
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_fweh_event_worker event FIFO_CREDIT_MAP (74) ifidx 0
>>>> bsscfg 0 addr 80:80:80:80:80:80
>>>> brcmfmac: brcmf_fweh_event_worker   version 2 flags 24 status 0 reason 0
>>>> brcmutil: event payload, len=6
>>>> 00000000: 09 27 12 09 09 02                                .'....
>>>> brcmfmac: brcmf_fws_notify_credit_map enter: credits 09:27:12:09:09:02
>>>> brcmfmac: brcmf_fweh_event_worker event IF (54) ifidx 0 bsscfg 0 addr
>>>> 00:90:4c:c5:12:38
>>>> brcmfmac: brcmf_fweh_event_worker   version 2 flags 0 status 0 reason 0
>>>> brcmutil: event payload, len=5
>>>> 00000000: 00 01 00 00 00                                   .....
>>>> brcmfmac: brcmf_fweh_handle_if_event action: 1 idx: 0 bsscfg: 0 flags:
>>>> 0 role: 0
>>>> brcmfmac: brcmf_fweh_handle_if_event adding wl0 (00:90:4c:c5:12:38)
>>>> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>> brcmutil: RxHdr:
>>>> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00               ........3..
>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> brcmfmac: brcmf_fil_cmd_int_set cmd=187, value=40
>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmutil: TxHdr:
>>>> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00
>>>> (...............
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> .......
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>> brcmfmac: brcmf_dongle_scantime: Scan unassoc time error (-110)
>>>> brcmutil: RxHdr:
>>>> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00               ........4..
>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> brcmfmac: brcmf_fil_cmd_int_set cmd=86, value=2
>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmutil: TxHdr:
>>>> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00
>>>> (...............
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> .................................
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>> brcmfmac: brcmf_netdev_open: failed to bring up cfg80211
>>>> brcmutil: RxHdr:
>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>> ifconfig: SIOCSIFFLAGS: Operationbrcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>    not permitted
>>>> root@freescale ~$ brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110
>>>>
>>>> brcmfmac: brcmf_sdbrcm_rxfail: abort command, terminate frame, send NAK
>>>> root@freescale ~$
>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_word: Failed to write
>>>> word, Err: 0xffffff92
>>>>
>>>> root@freescale ~$
>>>> root@freescale ~$
>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_word: Failed to write
>>>> word, Err: 0xffffff92
>>>>
>>>> root@freescale ~$ brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmutil: RxHdr:
>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>> F1:@0x1001f=01, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>> F1:@0x1001f=01, Err: -110
>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>> F1:@0x1001f=01, Err: -110
>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>
>>>
>>> One more question. I looked up the board you mentioined. What I found
>>> has a dedicated SDIO slot for Wifi. Are you using that and do you know
>>> if that is an SDIO3.0 or not? Earlier in the thread i found this logging:
>>>
>>>   >  root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>   >  mmc0: new high speed SDIO card at address 0001
>>>
>>> I think it means it is a SDIO2, but I like to be sure.
>>
>>
>> And just for the hack of it. Can you send your .config and a full kernel log
>> (as attachments).
>>
>>
>
> Please see attachment.
>
> Regards
> Dong Aisheng

Can you also provide the nvram and .dts file?

Regards,
Arend

>>> Gr. AvS
>>>
>>>> Regards
>>>> Dong Aisheng
>>>>
>>>
>>
>>



^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: brcmfmac driver does not work with a BCM4335 WiFi module
  2013-11-07 16:05                           ` Arend van Spriel
@ 2013-11-08  5:39                             ` Dong Aisheng
  0 siblings, 0 replies; 17+ messages in thread
From: Dong Aisheng @ 2013-11-08  5:39 UTC (permalink / raw)
  To: Arend van Spriel; +Cc: linux-wireless, frankyl, brcm80211-dev-list

On Fri, Nov 8, 2013 at 12:05 AM, Arend van Spriel <arend@broadcom.com> wrote:
> On 11/06/2013 11:47 AM, Dong Aisheng wrote:
>>
>> On Wed, Nov 6, 2013 at 5:57 PM, Arend van Spriel<arend@broadcom.com>
>> wrote:
>>>
>>> On 11/06/2013 09:30 AM, Arend van Spriel wrote:
>>>>
>>>>
>>>> On 11/05/2013 10:26 AM, Dong Aisheng wrote:
>>>>>
>>>>>
>>>>> On Tue, Nov 5, 2013 at 4:57 PM, Dong Aisheng<dongas86@gmail.com>
>>>>> wrote:
>>>>>>
>>>>>>
>>>>>> On Tue, Nov 5, 2013 at 4:36 PM, Arend van Spriel<arend@broadcom.com>
>>>>>> wrote:
>>>>>>>
>>>>>>>
>>>>>>> On 11/05/2013 03:51 AM, Dong Aisheng wrote:
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Mon, Nov 4, 2013 at 5:44 PM, Arend van Spriel<arend@broadcom.com>
>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 11/04/2013 09:13 AM, Dong Aisheng wrote:
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Hi Arend,
>>>>>>>>>>
>>>>>>>>>> On Mon, Nov 4, 2013 at 11:44 AM, Dong Aisheng<dongas86@gmail.com>
>>>>>>>>>> wrote:
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Hi Arend,
>>>>>>>>>>>
>>>>>>>>>>> On Fri, Nov 1, 2013 at 9:25 PM, Arend van Spriel
>>>>>>>>>>> <arend@broadcom.com>
>>>>>>>>>>> wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> On 11/01/2013 01:21 PM, Dong Aisheng wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Hi Arend,
>>>>>>>>>>>>>
>>>>>>>>>>>>> On Fri, Nov 1, 2013 at 6:35 PM, Arend van Spriel
>>>>>>>>>>>>> <arend@broadcom.com>
>>>>>>>>>>>>> wrote:
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> On 11/01/2013 07:22 AM, Dong Aisheng wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Hi ALL,
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I'm verifying BCM4335 WiFi module on i.MX6SL EVK board.
>>>>>>>>>>>>>>> The kernel i ran is latest from:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless.git
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> The firmware is used is from:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> NVRAM file is got from the vendor which should work for the
>>>>>>>>>>>>>>> module.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> But i ran into the following issues, hope somebody can give
>>>>>>>>>>>>>>> me some
>>>>>>>>>>>>>>> hints.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> First, i met error when module is auto loaded, but seems the
>>>>>>>>>>>>>>> driver
>>>>>>>>>>>>>>> is
>>>>>>>>>>>>>>> still loaded successfully since i found the new WiFi
>>>>>>>>>>>>>>> interface with
>>>>>>>>>>>>>>> ifconfig.
>>>>>>>>>>>>>>> But it can not work after run rfkill unblock wlan and a lot
>>>>>>>>>>>>>>> error
>>>>>>>>>>>>>>> messages comes out.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> I'm wondering if this driver can support bcm4335 well, can
>>>>>>>>>>>>>>> anybody
>>>>>>>>>>>>>>> provide some help?
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> I can try. I have used the bcm4335 with a SDIO3.0 controller
>>>>>>>>>>>>>> on a
>>>>>>>>>>>>>> x86
>>>>>>>>>>>>>> PC.
>>>>>>>>>>>>>> Looking at an issue right now, but your log does not show
>>>>>>>>>>>>>> that so
>>>>>>>>>>>>>> you
>>>>>>>>>>>>>> have a
>>>>>>>>>>>>>> different issue. Could you load the module with parameter
>>>>>>>>>>>>>> 'debug=0x146'.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>
>>>>>>>>>>>>> Thanks for the help.
>>>>>>>>>>>>> So that means the brcmfmac driver should support bcm4335
>>>>>>>>>>>>> module well,
>>>>>>>>>>>>> right?
>>>>>>>>>>>>> The difference is that i'm using a ARM platform.
>>>>>>>>>>>>> Below is log with 'debug=0x146'.
>>>>>>>>>>>>> It only includes driver probe log.
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> That log actually looks fine. Just not sure why software rfkill
>>>>>>>>>>>> was
>>>>>>>>>>>> enabled.
>>>>>>>>>>>> Is that still the case? What distro is running on your platform?
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Do you  mean the error message during probe is also fine?
>>>>>>>>>>> root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>>>>>>>> mmc0: new high speed SDIO card at address 0001
>>>>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>>>>> 0xffffffac
>>>>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>>>>> 0xffffffac
>>>>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>>>>> 0xffffffac
>>>>>>>>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84<--- error
>>>>>>>>>>> message
>>>>>>>>>>> brcmfmac: brcmf_sdio_chip_
>>>>>>>>>>> drivestrengthinit: No SDIO Drive strength
>>>>>>>>>>> init done for chip 4335 rev 1 pmurev 18
>>>>>>>>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24
>>>>>>>>>>> 2013
>>>>>>>>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23<----
>>>>>>>>>>> error
>>>>>>>>>>> message
>>>>>>>>>>>
>>>>>>>>>>> I'm using yocto rootfs, seems rfkill is always enabled by
>>>>>>>>>>> default.
>>>>>>>>>>> I could try another rootfs without rfkill.
>>>>>>>>>>> But i don't think rfkill should block WiFi driver to work
>>>>>>>>>>> properly.
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I tried another rootfs without rfkill, met the same issue when
>>>>>>>>>> doing
>>>>>>>>>> ifconfig wlan0 up, just like 'rfkill unblock wlan'.
>>>>>>>>>>
>>>>>>>>>> root@freescale ~$ mmc0: mmc_rescan_try_freq: trying to init card
>>>>>>>>>> at
>>>>>>>>>> 400000
>>>>>>>>>> Hz
>>>>>>>>>> mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>>>>>>> mmc0: new high speed SDIO card at address 0001
>>>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>>>> 0xffffffac
>>>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>>>> 0xffffffac
>>>>>>>>>> brcmfmac: brcmf_sdioh_request_word: Failed to read word, Err:
>>>>>>>>>> 0xffffffac
>>>>>>>>>> brcmfmac: brcmf_sdio_regrw_helper: failed with -84
>>>>>>>>>> brcmfmac: brcmf_sdio_chip_drivestrengthinit: No SDIO Drive
>>>>>>>>>> strength
>>>>>>>>>> init done for chip 4335 rev 1 pmurev 18
>>>>>>>>>> brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar 24
>>>>>>>>>> 2013
>>>>>>>>>> 20:36:01 version 6.30.171.24.20 (B0 Station/P2P)
>>>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>>>>>>>
>>>>>>>>>> root@freescale ~$
>>>>>>>>>> root@freescale ~$
>>>>>>>>>> root@freescale ~$ ifconfig -a
>>>>>>>>>> ......
>>>>>>>>>>
>>>>>>>>>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>>>>>>>>>               BROADCAST MULTICAST  MTU:1500  Metric:1
>>>>>>>>>>               RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>>>>>>>               TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>>>>>>>>               collisions:0 txqueuelen:1000
>>>>>>>>>>               RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>>>>>>>>
>>>>>>>>>> root@freescale ~$ ifconfig wlan0 up
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>>>>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>>>>>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>>>>>>>
>>>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-23
>>>>>>>>>> root@freescale ~$
>>>>>>>>>> root@freescale ~$
>>>>>>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to
>>>>>>>>>> write
>>>>>>>>>> byte F1:@0x1001f=01, Err: -110
>>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>>>>
>>>>>>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_byte: Failed to
>>>>>>>>>> write
>>>>>>>>>> byte F1:@0x1001f=01, Err: -110
>>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>>>>>>> F1:@0x1001f=01, Err: -110
>>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to read byte
>>>>>>>>>> F1:@0x1001f=ff, Err: -110
>>>>>>>>>>
>>>>>>>>>> I looked into a bit more about the error and found there's CMD
>>>>>>>>>> timeout
>>>>>>>>>> on the bus during SDIO
>>>>>>>>>> command transfer.
>>>>>>>>>> ---------------------------------------
>>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00
>>>>>>>>>> ........5..
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> mmc0: starting CMD52 arg 92001400 flags 00000195
>>>>>>>>>> sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00010000
>>>>>>>>>> mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
>>>>>>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>>>>>>> F1:@0x1000a=00, Err: -110
>>>>>>>>>> ------------------------------------------
>>>>>>>>>> I'm not sure how this happened, whether caused by host side or
>>>>>>>>>> wifi
>>>>>>>>>> driver
>>>>>>>>>> side.
>>>>>>>>>> But for the host, i tried this host driver with another WiFi
>>>>>>>>>> card(Atheros AR6103) with same kernel,
>>>>>>>>>> and it worked well. So the host driver seems more like ok to me.
>>>>>>>>>>
>>>>>>>>>> Since i'm not familar with the WiFi driver, i wonder if you could
>>>>>>>>>> provide suggestion
>>>>>>>>>> from WiFi driver layer to see what the issue could be.
>>>>>>>>>>
>>>>>>>>>> Below is the detailed log when run 'ifconfig wlan0 up'
>>>>>>>>>>
>>>>>>>>>> root@freescale ~$ ifconfig wlan0 up
>>>>>>>>>> brcmfmac: brcmf_netdev_open Enter, idx=0
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>>> brcmutil: TxHdr:
>>>>>>>>>> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>>>> /...............
>>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>>>>
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>>>>>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>>> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00
>>>>>>>>>> '........&..
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>>> brcmutil: TxHdr:
>>>>>>>>>> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>>>> (...............
>>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>>>>> ............
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>>> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00
>>>>>>>>>> ........2..
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmutil: TxHdr:
>>>>>>>>>> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>>>> (...............
>>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>>> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00
>>>>>>>>>> .........2..
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
>>>>>>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>>>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
>>>>>>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>>>>>>> brcmfmac: brcmf_fws_notify_credit_map enter: credits
>>>>>>>>>> 09:27:12:09:09:02
>>>>>>>>>> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>>>>>>>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>>>>>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>>> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00
>>>>>>>>>> ........3..
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>>> brcmutil: TxHdr:
>>>>>>>>>> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>>>> (...............
>>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>>>>> ............
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>>> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00
>>>>>>>>>> ........4..
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmutil: TxHdr:
>>>>>>>>>> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>>>> (...............
>>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>>>>> ............
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>>>>> ............
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00
>>>>>>>>>> ........5..
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmutil: TxHdr:
>>>>>>>>>> 00000000: 28 00 d7 ff 15 00 00 14 00 00 00 00 00 00 00 00
>>>>>>>>>> (...............
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00
>>>>>>>>>> ............
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>>>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>>>>>>> brcmutil: RxHdr:
>>>>>>>>>> 00000000: 20 00 df ff 1a 00 00 0c 00 36 00 00
>>>>>>>>>> ........6..
>>>>>>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>>>>>> brcmfmac: brcmf_config_dongle power save set to enabled
>>>>>>>>>> brcmfmac: brcmf_dongle_roam Internal Roaming = On
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> It seem this is the last command being sent. Could you provide file
>>>>>>>>> contents
>>>>>>>>> in /sys/kernel/debug/brcmfmac/mmc*/
>>>>>>>>>
>>>>>>>>> Not sure if Yocto mounts debugfs on /sys/kernel/debug. Otherwise
>>>>>>>>> you can
>>>>>>>>> do:
>>>>>>>>>
>>>>>>>>> # mkdir /tmp/debugfs
>>>>>>>>> # mount -t debugfs none /tmp/debugfs
>>>>>>>>>
>>>>>>>>
>>>>>>>> Please see below:
>>>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls
>>>>>>>> counters  forensics  fws_stats
>>>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ls -l
>>>>>>>> total 0
>>>>>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 counters
>>>>>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 forensics
>>>>>>>> -r--r--r-- 1 root root 0 Sep  6 23:21 fws_stats
>>>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat counters
>>>>>>>> intrcount:    19
>>>>>>>> lastintrs:    0
>>>>>>>> pollcnt:      0
>>>>>>>> regfails:     0
>>>>>>>> tx_sderrs:    0
>>>>>>>> fcqueued:     0
>>>>>>>> rxrtx:        0
>>>>>>>> rx_toolong:   0
>>>>>>>> rxc_errors:   0
>>>>>>>> rx_hdrfail:   0
>>>>>>>> rx_badhdr:    0
>>>>>>>> rx_badseq:    0
>>>>>>>> fc_rcvd:      0
>>>>>>>> fc_xoff:      0
>>>>>>>> fc_xon:       0
>>>>>>>> rxglomfail:   0
>>>>>>>> rxglomframes: 0
>>>>>>>> rxglompkts:   0
>>>>>>>> f2rxhdrs:     36
>>>>>>>> f2rxdata:     3
>>>>>>>> f2txdata:     0
>>>>>>>> f1regdata:    42
>>>>>>>> tickcnt:      53
>>>>>>>> tx_ctlerrs:   0
>>>>>>>> tx_ctlpkts:   17
>>>>>>>> rx_ctlerrs:   0
>>>>>>>> rx_ctlpkts:   17
>>>>>>>> rx_readahead: 0
>>>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat forensics
>>>>>>>>
>>>>>>>> RTE (USB-SDIO-CDC) 6.30.171.24.20 (B0 Station/P2P) on BCM4335 r1 @
>>>>>>>> 37.4/161.3/161.3MHz
>>>>>>>> 000000.011 sdpcmdcdc0: Broadcom SDPCMD CDC driver
>>>>>>>> 000000.018 reclaim section 0: Returned 42772 bytes to the heap
>>>>>>>> 000000.061 wl0: Broadcom BCM4335 802.11 Wireless Controller
>>>>>>>> 6.30.171.24.20 (B0 Station/P2P)
>>>>>>>> 000000.070 reclaim section 1: Returned 62128 bytes to the heap
>>>>>>>> 000000.209 wl0: wlc_enable_probe_req: state down, deferring setting
>>>>>>>> of
>>>>>>>> host flags
>>>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# ring setting
>>>>>>>> of
>>>>>>>> host flags
>>>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1# cat fws_stats
>>>>>>>> header_pulls:      0
>>>>>>>> header_only_pkt:   0
>>>>>>>> tlv_parse_failed:  0
>>>>>>>> tlv_invalid_type:  0
>>>>>>>> mac_update_fails:  0
>>>>>>>> ps_update_fails:   0
>>>>>>>> if_update_fails:   0
>>>>>>>> pkt2bus:           0
>>>>>>>> generic_error:     0
>>>>>>>> rollback_success:  0
>>>>>>>> rollback_failed:   0
>>>>>>>> delayq_full:       0
>>>>>>>> supprq_full:       0
>>>>>>>> txs_indicate:      0
>>>>>>>> txs_discard:       0
>>>>>>>> txs_suppr_core:    0
>>>>>>>> txs_suppr_ps:      0
>>>>>>>> txs_tossed:        0
>>>>>>>> txs_host_tossed:   0
>>>>>>>> bus_flow_block:    0
>>>>>>>> fws_flow_block:    0
>>>>>>>> send_pkts:         BK:0 BE:0 VO:0 VI:0 BCMC:0
>>>>>>>> requested_sent:    BK:0 BE:0 VO:0 VI:0 BCMC:0
>>>>>>>> root@imx6slevk:/sys/kernel/debug/brcmfmac/mmc0:0001:1#
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Nothing exciting there either. Let's take a step back. The rfkill
>>>>>>> seems an
>>>>>>> issue, but I first would like to know if you can get connectivity.
>>>>>>> Does the
>>>>>>> 'ifconfig wlan0 up' complete at all and is it successful.
>>>>>>>
>>>>>>
>>>>>> The second rootfs i tried does not have rfkill.
>>>>>> But shows the similar issue with 'ifconfig wlan0 up'.
>>>>>>
>>>>>>> As you noticed during the up sequence there is a timeout. I would
>>>>>>> like to
>>>>>>> know what command that is. Could you run it again with debug=1546?
>>>>>>>
>>>>>>
>>>>>> Will run the test now.
>>>>>> Thanks for the help.
>>>>>>
>>>>>
>>>>> Please see blow log:
>>>>> Note: there's no rfkill in this rootfs.
>>>>>
>>>>> root@freescale ~$ ifconfgi  ig wlan0
>>>>> brcmfmac: brcmf_netdev_get_stats Enter, idx=0
>>>>> wlan0     Link encap:Ethernet  HWaddr 00:90:4C:C5:12:38
>>>>>             BROADCAST MULTICAST  MTU:1500  Metric:1
>>>>>             RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>>>>             TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>>>>>             collisions:0 txqueuelen:1000
>>>>>             RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
>>>>>
>>>>> root@freescale ~$ ifconfig wlan0 up
>>>>> brcmfmac: brcmf_netdev_open Enter, idx=0
>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmutil: TxHdr:
>>>>> 00000000: 2f 00 d0 ff 10 00 00 14 00 00 00 00 00 00 00 00
>>>>> /...............
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>>
>>>>> <--------- I noticed a few seconds stall here
>>>>>
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>> brcmfmac: brcmf_fil_iovar_data_get name=toe_ol, len=4
>>>>> brcmutil: data
>>>>> 00000000: 28 aa 49 80                                      (.I.
>>>>>
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 27 00 d8 ff 12 00 00 0c 00 26 00 00              '........&..
>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>> brcmfmac: brcmf_fil_cmd_int_set cmd=2, value=0
>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmutil: TxHdr:
>>>>> 00000000: 28 00 d7 ff 11 00 00 14 00 00 00 00 00 00 00 00
>>>>> (...............
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 20 00 df ff 13 00 00 0c 00 32 00 00               ........2..
>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>>
>>>>> brcmfmac: brcmf_fil_cmd_int_set cmd=185, value=40
>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmutil: TxHdr:
>>>>> 00000000: 28 00 d7 ff 12 00 00 14 00 00 00 00 00 00 00 00
>>>>> (...............
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 10 00 ef ff 14 83 0f 0c 00 32 00 00              .........2..
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 88, sig 8
>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>> brcmfmac: brcmf_fws_hdrpull enter: ifidx 0, skblen 87, sig 8
>>>>> brcmfmac: brcmf_fws_hdrpull tlv type=TRANS_ID (18), len=6 (6)
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_fweh_event_worker event FIFO_CREDIT_MAP (74) ifidx 0
>>>>> bsscfg 0 addr 80:80:80:80:80:80
>>>>> brcmfmac: brcmf_fweh_event_worker   version 2 flags 24 status 0 reason
>>>>> 0
>>>>> brcmutil: event payload, len=6
>>>>> 00000000: 09 27 12 09 09 02                                .'....
>>>>> brcmfmac: brcmf_fws_notify_credit_map enter: credits 09:27:12:09:09:02
>>>>> brcmfmac: brcmf_fweh_event_worker event IF (54) ifidx 0 bsscfg 0 addr
>>>>> 00:90:4c:c5:12:38
>>>>> brcmfmac: brcmf_fweh_event_worker   version 2 flags 0 status 0 reason 0
>>>>> brcmutil: event payload, len=5
>>>>> 00000000: 00 01 00 00 00                                   .....
>>>>> brcmfmac: brcmf_fweh_handle_if_event action: 1 idx: 0 bsscfg: 0 flags:
>>>>> 0 role: 0
>>>>> brcmfmac: brcmf_fweh_handle_if_event adding wl0 (00:90:4c:c5:12:38)
>>>>> brcmfmac: brcmf_add_if Enter, idx=0, ifidx=0
>>>>> brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists
>>>>> brcmfmac: brcmf_add_if: ignore IF event
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 20 00 df ff 17 00 00 0c 00 33 00 00               ........3..
>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>> brcmfmac: brcmf_fil_cmd_int_set cmd=187, value=40
>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmutil: TxHdr:
>>>>> 00000000: 28 00 d7 ff 13 00 00 14 00 00 00 00 00 00 00 00
>>>>> (...............
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> .......
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>> brcmfmac: brcmf_dongle_scantime: Scan unassoc time error (-110)
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 20 00 df ff 18 00 00 0c 00 34 00 00               ........4..
>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>> brcmfmac: brcmf_fil_cmd_int_set cmd=86, value=2
>>>>> brcmfmac: brcmf_sdbrcm_bus_txctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmutil: TxHdr:
>>>>> 00000000: 28 00 d7 ff 14 00 00 14 00 00 00 00 00 00 00 00
>>>>> (...............
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> .................................
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_rxctl: resumed on timeout
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_checkdied firmware not built with -assert
>>>>> brcmfmac: brcmf_fil_cmd_data: Failed err=-110
>>>>> brcmfmac: brcmf_netdev_open: failed to bring up cfg80211
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 20 00 df ff 19 00 00 0c 00 35 00 00               ........5..
>>>>> brcmfmac: brcmf_sdbrcm_read_control Enter
>>>>> ifconfig: SIOCSIFFLAGS: Operationbrcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>>    not permitted
>>>>> root@freescale ~$ brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED:
>>>>> -110
>>>>>
>>>>> brcmfmac: brcmf_sdbrcm_rxfail: abort command, terminate frame, send NAK
>>>>> root@freescale ~$
>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_word: Failed to write
>>>>> word, Err: 0xffffff92
>>>>>
>>>>> root@freescale ~$
>>>>> root@freescale ~$
>>>>> root@freescale ~$ brcmfmac: brcmf_sdioh_request_word: Failed to write
>>>>> word, Err: 0xffffff92
>>>>>
>>>>> root@freescale ~$ brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>> brcmfmac: brcmf_sdio_readframes Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmutil: RxHdr:
>>>>> 00000000: 00 00 00 00 00 00 00 00 00 00 00 00              ............
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>> F1:@0x1001f=01, Err: -110
>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>> F1:@0x1001f=01, Err: -110
>>>>> brcmfmac: brcmf_sdioh_request_byte: Failed to write byte
>>>>> F1:@0x1001f=01, Err: -110
>>>>> brcmfmac: brcmf_sdio_ib_irqhandler IB intr triggered
>>>>> brcmfmac: brcmf_sdbrcm_isr Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_dpc Dongle reports CHIPACTIVE
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_kso_control Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>> brcmfmac: brcmf_sdbrcm_bus_sleep Enter
>>>>
>>>>
>>>>
>>>> One more question. I looked up the board you mentioined. What I found
>>>> has a dedicated SDIO slot for Wifi. Are you using that and do you know
>>>> if that is an SDIO3.0 or not? Earlier in the thread i found this
>>>> logging:
>>>>
>>>>   >  root@imx6slevk:~# mmc0: queuing unknown CIS tuple 0x91 (3 bytes)
>>>>   >  mmc0: new high speed SDIO card at address 0001
>>>>
>>>> I think it means it is a SDIO2, but I like to be sure.
>>>
>>>
>>>
>>> And just for the hack of it. Can you send your .config and a full kernel
>>> log
>>> (as attachments).
>>>
>>>
>>
>> Please see attachment.
>>
>> Regards
>> Dong Aisheng
>
>
> Can you also provide the nvram and .dts file?
>

You can get the dts from here:
https://git.kernel.org/cgit/linux/kernel/git/linville/wireless.git/tree/arch/arm/boot/dts/imx6sl-evk.dts?h=for-davem

See below for nvram:
# Sample variables file for BCM94335 WLBGA ePA, eLNA board for
production package
# FEM=Anadigics
NVRAMRev=$Rev: 379630 $
sromrev=11
boardrev=0x1218
boardtype=0x06c4
boardflags=0x10401001
boardflags2=0x10000000
boardflags3=0x1089
#boardnum=57410
macaddr=00:90:4c:c5:12:38
ccode=0
regrev=0
antswitch=0
pdgain5g=1
pdgain2g=0
tworangetssi2g=0
tworangetssi5g=0
femctrl=4
pcieingress_war=15
vendid=0x14e4
devid=0x43ae
manfid=0x2d0
#prodid=0x052e
nocrc=1
otpimagesize=502
xtalfreq=37400
extpagain2g=1
pdetrange2g=2
extpagain5g=1
pdetrange5g=2
rxgains2gelnagaina0=3
rxgains2gtrisoa0=6
rxgains2gtrelnabypa0=1
rxgains5gelnagaina0=3
rxgains5gtrisoa0=6
rxgains5gtrelnabypa0=1
rxchain=1
txchain=1
aa2g=1
aa5g=1
tssipos5g=1
tssipos2g=1
pa2ga0=-98,6012,-652
pa2ga1=-37,6488,-663
pa5ga0=-74,5929,-633,-74,5928,-631,-57,5987,-615,-37,6048,-613
pa5ga1=18,6630,-645,-8,6498,-665,47,6774,-637,26,6741,-651
pa5ga2=-36,6327,-656,-31,6412,-666,-33,6339,-652,13,6632,-648
maxp2ga0=76
maxp5ga0=76,76,76,76
pdoffset40ma0=0x0000
pdoffset80ma0=0x0000
pdoffsetcckma0=0
cckbw202gpo=0x0000
cckbw20ul2gpo=0x0000
mcsbw202gpo=0x99555533
mcsbw402gpo=0x99555533
dot11agofdmhrbw202gpo=0x5533
ofdmlrbw202gpo=0x0000
mcsbw205glpo=0x99555530
mcsbw405glpo=0x99555530
mcsbw805glpo=0x99555530
mcsbw1605glpo=0x99555530
mcsbw205gmpo=0x99555530
mcsbw405gmpo=0x99555530
mcsbw805gmpo=0x99555530
mcsbw1605gmpo=0x99555530
mcsbw205ghpo=0x99555530
mcsbw405ghpo=0x99555530
mcsbw805ghpo=0x99555530
mcsbw1605ghpo=0x99555530
mcslr5glpo=0x0000
mcslr5gmpo=0x0000
mcslr5ghpo=0x0000
sb20in40hrrpo=0x0
sb20in80and160hr5glpo=0x0
sb40and80hr5glpo=0x0
sb20in80and160hr5gmpo=0x0
sb40and80hr5gmpo=0x0
sb20in80and160hr5ghpo=0x0
sb40and80hr5ghpo=0x0
sb20in40lrpo=0x0
sb20in80and160lr5glpo=0x0
sb40and80lr5glpo=0x0
sb20in80and160lr5gmpo=0x0
sb40and80lr5gmpo=0x0
sb20in80and160lr5ghpo=0x0
sb40and80lr5ghpo=0x0
dot11agduphrpo=0x0
dot11agduplrpo=0x0
phycal_tempdelta=25
tssifloor5g=220,213,218,228
tssifloor2g=245
cckdigfilttype=1
femtable2=0x00FF8F08
femtable1=0x04000300
femtable0=0x40805010
swctrlmap_5g=0x00000008,0x00140000,0x00100000,0x000000,0x03c
swctrlmap_2g=0x00000000,0x00030000,0x00010000,0x800300,0x0ff
swctrlmapext_5g=0x00000000,0x00000000,0x00000000,0x000000,0x002
swctrlmapext_2g=0x00000001,0x00000000,0x00000000,0x000000,0x003
rssicorrnorm_c0=-1,-3
rssicorrnorm5g_c0=3,2,0,0,2,-1,0,-1,-3,-1,-2,-3

Regards
Dong Aishen


> Regards,
> Arend
>
>
>>>> Gr. AvS
>>>>
>>>>> Regards
>>>>> Dong Aisheng
>>>>>
>>>>
>>>
>>>
>
>

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2013-11-08  5:39 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-01  6:22 brcmfmac driver does not work with a BCM4335 WiFi module Dong Aisheng
2013-11-01 10:35 ` Arend van Spriel
2013-11-01 12:21   ` Dong Aisheng
2013-11-01 13:25     ` Arend van Spriel
2013-11-04  3:44       ` Dong Aisheng
2013-11-04  8:13         ` Dong Aisheng
2013-11-04  9:44           ` Arend van Spriel
2013-11-05  2:51             ` Dong Aisheng
2013-11-05  8:36               ` Arend van Spriel
2013-11-05  8:57                 ` Dong Aisheng
2013-11-05  9:26                   ` Dong Aisheng
2013-11-06  8:30                     ` Arend van Spriel
2013-11-06  9:57                       ` Arend van Spriel
2013-11-06 10:47                         ` Dong Aisheng
2013-11-07 16:05                           ` Arend van Spriel
2013-11-08  5:39                             ` Dong Aisheng
2013-11-06 10:39                       ` Dong Aisheng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).