Redpine: Bluetooth and WiFi disconnects when some Bluetooth devices time out
When some Bluetooth devices (Like my 8BITDO 80DA) time out from inactivity, it causes wifi and Bluetooth to crash. Shutting down hangs on the Librem 5 splash screen while in this state.
dmesg ouput:
[ 117.855970] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 117.856001] Bluetooth: HIDP socket layer initialized
[ 117.860747] hid-generic 0005:045E:02E0.0001: unknown main item tag 0x0
[ 117.861498] input: 8Bitdo SN30 Pro as /devices/virtual/bluetooth/hci0/hci0:1/0005:045E:02E0.0001/input/input7
[ 117.861884] hid-generic 0005:045E:02E0.0001: input,hidraw0: BLUETOOTH HID v9.03 Gamepad [8Bitdo SN30 Pro] on 88:da:1a:b6:ae:b0
[ 330.740212] max17042 3-0036: SOC threshold INTR
[ 337.366953] Bluetooth: hci0: command 0x2005 tx timeout
[ 339.386880] Bluetooth: hci0: command 0x200b tx timeout
[ 341.399362] Bluetooth: hci0: command 0x200c tx timeout
[ 342.586769] mmc1: Timeout waiting for hardware interrupt.
[ 342.592185] mmc1: sdhci: ============ SDHCI REGISTER DUMP ===========
[ 342.598630] mmc1: sdhci: Sys addr: 0xe5273b40 | Version: 0x00000002
[ 342.605072] mmc1: sdhci: Blk size: 0x00000100 | Blk cnt: 0x00000001
[ 342.611514] mmc1: sdhci: Argument: 0x91820100 | Trn mode: 0x00000003
[ 342.617955] mmc1: sdhci: Present: 0x01e8800e | Host ctl: 0x00000013
[ 342.624397] mmc1: sdhci: Power: 0x00000002 | Blk gap: 0x00000080
[ 342.630838] mmc1: sdhci: Wake-up: 0x00000008 | Clock: 0x0000003f
[ 342.637279] mmc1: sdhci: Timeout: 0x0000008f | Int stat: 0x00000000
[ 342.643720] mmc1: sdhci: Int enab: 0x107f110b | Sig enab: 0x107f110b
[ 342.650162] mmc1: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00008402
[ 342.656604] mmc1: sdhci: Caps: 0x07eb0000 | Caps_1: 0x8000b407
[ 342.663045] mmc1: sdhci: Cmd: 0x0000353a | Max curr: 0x00ffffff
[ 342.669485] mmc1: sdhci: Resp[0]: 0x00002000 | Resp[1]: 0x00000000
[ 342.675925] mmc1: sdhci: Resp[2]: 0x00000000 | Resp[3]: 0x00000000
[ 342.682364] mmc1: sdhci: Host ctl2: 0x00000000
[ 342.686806] mmc1: sdhci: ADMA Err: 0x00000000 | ADMA Ptr: 0xe650e208
[ 342.693244] mmc1: sdhci: ============================================
[ 342.699849] redpine_91x: rsi_sdio_write_register_multiple: Synch Cmd53 write failed -110
[ 342.699856] redpine_91x: rsi_sdio_host_intf_write_pkt: Unable to write onto the card: -110
[ 342.699871] redpine_91x: rsi_send_mgmt_pkt: Failed to write the packet
[ 342.699890] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 342.699906] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 342.699919] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 343.337196] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 343.977937] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 344.621825] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 345.260570] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 345.898407] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 346.535915] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 347.180642] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 347.351984] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 347.820218] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 348.461637] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 349.097278] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 349.366742] Bluetooth: hci0: command 0x2005 tx timeout
[ 349.372637] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 349.743901] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 349.762675] redpine_91x: rsi_mac80211_set_key: RSI del key
[ 349.762703] redpine_91x: rsi_hal_key_config: Cipher 0x0 key_type: 2 key_len: 0
[ 349.763890] redpine_91x: rsi_mac80211_set_key: RSI del key
[ 349.763909] redpine_91x: rsi_hal_key_config: Cipher 0x0 key_type: 2 key_len: 0
[ 350.387188] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 350.387221] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 351.029315] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 351.386565] Bluetooth: hci0: command 0x200b tx timeout
[ 351.391907] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 351.673959] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 352.316470] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 352.957831] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 353.398551] Bluetooth: hci0: command 0x200c tx timeout
[ 353.604719] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 354.249203] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 354.888494] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 355.528912] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 356.166271] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 356.806367] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 357.443788] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 358.091821] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 358.729535] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 359.347928] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 359.375479] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 360.017084] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 360.660077] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 361.296321] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 361.366355] Bluetooth: hci0: command 0x2005 tx timeout
[ 361.371637] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 361.937464] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 362.580462] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 363.222417] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 363.382270] Bluetooth: hci0: command 0x200b tx timeout
[ 363.387549] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 365.398447] Bluetooth: hci0: command 0x200c tx timeout
[ 365.403979] redpine_91x: ===> Interface DOWN <===
[ 365.412222] redpine_91x: ===> Interface UP <===
[ 366.056044] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 366.700052] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 367.337719] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 367.978307] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 368.613961] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 369.256419] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 369.899147] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 371.350640] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 373.366073] Bluetooth: hci0: command 0x2005 tx timeout
[ 373.371337] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 375.381978] Bluetooth: hci0: command 0x200b tx timeout
[ 375.387364] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 377.398012] Bluetooth: hci0: command 0x200c tx timeout
[ 383.350411] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 385.369774] Bluetooth: hci0: command 0x2005 tx timeout
[ 385.375085] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 387.381684] Bluetooth: hci0: command 0x200b tx timeout
[ 387.387158] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 389.397657] Bluetooth: hci0: command 0x200c tx timeout
[ 393.005557] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 393.645848] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 394.293543] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 394.933831] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 395.346693] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 395.579787] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 396.219707] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 396.860987] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 397.369446] Bluetooth: hci0: command 0x2005 tx timeout
[ 397.375342] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 398.993055] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 399.381891] Bluetooth: hci0: command 0x200b tx timeout
[ 399.387231] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 399.634424] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 400.277201] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 400.921009] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 401.397352] Bluetooth: hci0: command 0x200c tx timeout
[ 401.567362] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 402.205921] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 402.849923] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 403.488310] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 404.131120] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 404.773107] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 405.416856] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 406.058947] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 406.695871] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 407.349927] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 409.365152] Bluetooth: hci0: command 0x2005 tx timeout
[ 409.370913] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 411.381108] Bluetooth: hci0: command 0x200b tx timeout
[ 411.386458] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 413.397054] Bluetooth: hci0: command 0x200c tx timeout
[ 419.349378] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 419.357810] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 421.364869] Bluetooth: hci0: command 0x2005 tx timeout
[ 421.370173] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 423.380828] Bluetooth: hci0: command 0x200b tx timeout
[ 423.386129] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 425.396803] Bluetooth: hci0: command 0x200c tx timeout
[ 425.986088] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 426.626442] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 427.266612] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 427.905210] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 428.546040] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 429.185466] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 429.825601] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 430.465381] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 431.101893] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 431.350120] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 431.741926] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 432.380375] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 433.016208] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 433.364562] Bluetooth: hci0: command 0x2005 tx timeout
[ 433.370023] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 433.653383] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 435.380538] Bluetooth: hci0: command 0x200b tx timeout
[ 435.385866] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 437.396470] Bluetooth: hci0: command 0x200c tx timeout
[ 443.345660] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 444.923772] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 445.368282] Bluetooth: hci0: command 0x2005 tx timeout
[ 445.374000] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 445.564538] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 446.203941] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 446.841319] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 447.380272] Bluetooth: hci0: command 0x200b tx timeout
[ 447.385615] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 447.479357] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 448.116847] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 448.753332] redpine_91x: rsi_sdio_check_buffer_status: Failed to read status register
[ 449.396156] Bluetooth: hci0: command 0x200c tx timeout
[ 449.401731] redpine_91x: rsi_sdio_write_register_multiple: Stopping card writes
[ 451.412623] Bluetooth: hci0: command 0x0c1a tx timeout
[ 454.390371] rfkill: input handler enabled
Edited by Angus Ainslie