mt7921e driver fails to probe when booting several kernel versions with several configurations. Log shows same exact error: kernel: mt7921e 0000:5e:00.0: enabling device (0000 -> 0002) kernel: mt7921e 0000:5e:00.0: driver own failed kernel: mt7921e: probe of 0000:5e:00.0 failed with error -5 module stays loaded, but no device shows up. Tested with several parameters: - kernel param pcie_aspm as off and without - mod param: disable_aspm=1 and without - older firmware and latest from 2022-09-23 All options show the same "own failed" error above. Device details: 5e:00.0 Network controller [0280]: MEDIATEK Corp. MT7922 802.11ax PCI Express Wireless Network Adapter [14c3:0616] Subsystem: Foxconn International, Inc. Device e0cd Kernel modules: mt7921e Looking at drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.c, it seems to loop 10 times whilst polling the device then stops. Is this perhaps a timing issue or a power management issue?
This is something for other people to handle, but please let me know if this is something that worked with older kernel versions (doesn't sound like it though, but I'm not totally sure.).
I don't think it's a regression as the driver's support for mt7922 device 0x0616 is relatively new (less than a year old). Went back to v5.10.0 and that presented the same issue.
Changing APM options to enable S4/S5 ErP seems to have fixed this. Even though it was brought back to disabled. kernel: mt7921e 0000:5e:00.0: enabling device (0000 -> 0002) kernel: mt7921e 0000:5e:00.0: ASIC revision: 79220010 kernel: mt7921e 0000:5e:00.0: HW/SW Version: 0x8a108a10, Build Time: 20220908203203a kernel: mt7921e 0000:5e:00.0: WM Firmware Version: ____000000, Build Time: 20220908203253 kernel: mt7921e 0000:5e:00.0 wlp94s0: renamed from wlan0 Resolving as it's not kernel/driver related, but seems more on the hardware side