Commits
Fugang Duan committed c5a54a59cf5
MLK-21071 brcmfmac: add PCIe shutdown handler to avoid system warning on reboot If reboot command is issued when PCIe WLAN device is in connected state, system kernel dump while booting as below log. This issue is fixed by doing cleanup and disable PCIe interrupt in shutdown handler. [ 6.405135] irq 304: nobody cared (try booting with the "irqpoll" option) [ 6.425581] Call trace: [ 6.428034] [<ffff000008089c48>] dump_backtrace+0x0/0x3c8 [ 6.433433] [<ffff00000808a024>] show_stack+0x14/0x20 [ 6.438485] [<ffff000008d8bec0>] dump_stack+0x9c/0xbc [ 6.443538] [<ffff00000811e7e4>] __report_bad_irq+0x34/0xf0 [ 6.449110] [<ffff00000811ec84>] note_interrupt+0x2ec/0x338 [ 6.454682] [<ffff00000811bc2c>] handle_irq_event_percpu+0x44/0x58 [ 6.460861] [<ffff00000811bc88>] handle_irq_event+0x48/0x78 [ 6.466433] [<ffff00000811fa88>] handle_fasteoi_irq+0xa8/0x180 [ 6.472265] [<ffff00000811ac1c>] generic_handle_irq+0x24/0x38 [ 6.478009] [<ffff00000811b29c>] __handle_domain_irq+0x5c/0xb8 [ 6.483841] [<ffff000008081960>] gic_handle_irq+0x78/0x174 [ 6.489325] Exception stack(0xffff0000094f3d80 to 0xffff0000094f3ec0) [ 6.495765] 3d80: 0000000000000000 ffff000009502580 0000000000000709 ffff000008ac5b28 [ 6.503593] 3da0: 0000000002222221 00ffffffffffffff 0000000008cd6205 00000000000000c0 [ 6.511421] 3dc0: 00000032b5503510 ffff000008082000 0000000000001000 0000000000000000 [ 6.519249] 3de0: 0000000034d5d91d 00008000b4a78000 ffff000009502580 0000000000000000 [ 6.527077] 3e00: 0000000000000000 0000000000000000 0000000000000000 000000016cb15db1 [ 6.534905] 3e20: 0000000000000001 ffff8000b900ce00 ffff8000b925e000 0000000000000001 [ 6.542733] 3e40: 000000016c9c1569 ffff8000b925e000 ffff000009502580 0000000000000400 [ 6.550561] 3e60: 00000000417b0018 ffff0000094f3ec0 ffff000008a308a8 ffff0000094f3ec0 [ 6.558389] 3e80: ffff000008a307f4 0000000040000045 ffff8000b925e060 0000000000000001 [ 6.566217] 3ea0: ffffffffffffffff ffff8000b925e000 ffff0000094f3ec0 ffff000008a307f4 [ 6.574045] [<ffff000008083230>] el1_irq+0xb0/0x124 [ 6.578925] [<ffff000008a307f4>] cpuidle_enter_state+0x134/0x228 [ 6.584930] [<ffff000008a30920>] cpuidle_enter+0x18/0x20 [ 6.590242] [<ffff00000810c75c>] call_cpuidle+0x1c/0x40 [ 6.595465] [<ffff00000810c9ac>] do_idle+0x1a4/0x1e0 [ 6.600428] [<ffff00000810cb84>] cpu_startup_entry+0x24/0x28 [ 6.606088] [<ffff000008d9e798>] rest_init+0xd0/0xe0 [ 6.611056] [<ffff0000093b0b70>] start_kernel+0x398/0x3ac Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com> Signed-off-by: Fugang Duan <fugang.duan@nxp.com>