PAN9026 initialization problem after reboot

Hi,

I'm not able to initialize PAN9026 after a system reboot.

I have create a script to:

  • install PAN9026 wifi and bluetooth driver (SDIO interface) at system boot
  • remove driver at system shutdown and reboot

When the system restart after a reboot I'm not able to initialize PAN9026 device and I get the following error "mmc1: error -22 whilst initialising SDIO card".

If I delete the driver remove procedure from the script I don't get that error but I'm not able to use the bluetooth device. On the console I get the following lines:

[   38.387053] BT: Loading driver
[   38.397781] BT FW is active(0)
[   38.402292] BT: FW already downloaded!
[   43.490052] BT: module_cfg_cmd(0xf1): timeout sendcmdflag=1
[   43.495784] Version =
[   43.500961] Timeout Command id = 0x5b
[   43.507740] Number of command timeout = 1
[   43.514596] Interrupt counter = 0
[   43.520707] Power Save mode = 0
[   43.526539] Power Save state = 0
[   43.532297] Host Sleep state = 0
[   43.538015] hs skip count = 0
[   43.543386] suspend_fail flag = 0
[   43.549064] suspended flag = 0
[   43.554497] Number of wakeup tries = 0
[   43.560687] Host Cmd complet state = 0
[   43.566930] Last irq recv = 0
[   43.572384] Last irq processed = 0
[   43.578207] tx pending = 0
[   43.583288] sdio int status = 0
[   43.589300] SDIO Func0 (0x0-0x9)43 03 06 06 07 00 08 02 03 00
[   43.597927] SDIO Func2 (0x0-0x9)00 00 00 00 3f 00 00 00 03 00
[   43.606480] Init Status Reg (0xf1-0xf6): fc 03 1b 05 08 7a
[   43.614501] Module cfg command send failed!
[   43.621172] BT init command failed!
[   43.627088] BT: sbi_register_conf_dpc failed. Terminating download
[   43.635722]  FW failed to be download!
[   43.642027] BT Firmware Init Failed
[   43.648023] BT: Delete
[   43.655156] sdio_bt: probe of mmc1:0001:2 failed with error -1
[   43.663648] BT: Driver loaded successfully

My system is based on Debian Strech 64 bit and linux kernel 4.14.

 

Any advice?

Thanks.  


 

3replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • I'm not able to initialize PAN9026 after a system reboot.

    When the system is rebooted and PAN9026 is not physically reset, the firmware keeps its current state. When then later the driver is reloaded the driver and the firmware cannot sync their state and the problem that you encountered happens.

    I'm sorry, but as of today the only solution is to physically reset PAN9026 when the surrounding system is reset or rebooted.

    Like
  • Thanks.

    The best way to reset the PAN9026 is to handle the PDN pin or to insert a "power gating" to turn off and turn on the module?

    Like
  • Yes, that is correct.

    Having the ability to turn off and on the module has the increased benefit that you can really turn off the module even during run time when it is not needed in order to reduce the power consumption.

    Like
Like Follow
  • Status Answered
  • 1 yr agoLast active
  • 3Replies
  • 174Views
  • 2 Following