openwrt-pf/target/linux/generic/hack-6.6
Qingfang Deng 324f234966 kernel: Mediatek: fix EEE registers init
After booting, a "transmit queue 0 timed out" warning followed by a
register dump was observed. The dump indicates that mtk_hw_init() does
not initialize the EEECR during probe. This occurs because the
netdev is allocated in mtk_add_mac(), which is called after
mtk_hw_init(). Consequently, the EEECR register remains uninitialized
until a reset is triggered, causing mtk_hw_init() to run again with a
valid netdev, at which point the register is finally set.

To address this, instead of modifying the probe sequence, latch the Tx
LPI enable state and timer value, and move the EEECR register
initialization to mtk_mac_link_up() to ensure proper setup when the
interface comes up.

Additionally, the splat reveals that LPI functionality is controlled by
the MAC_MCR_EEE bits in the MCR register. Update mtk_set_eee() to
modify these bits accordingly.

Fixes: d8315d5358 ("kernel: backport Mediatek SoC EEE support")
Fixes: edddbaf79c ("kernel: Mediatek: set default EEE Tx LPI timer")
Signed-off-by: Qingfang Deng <dqfext@gmail.com>
2025-03-31 10:21:28 +01:00
..
200-tools_portability.patch
204-module_strip.patch kernel: bump 6.6 to 6.6.64 2024-12-13 21:40:02 +01:00
205-kconfig-abort-configuration-on-unset-symbol.patch
210-darwin_scripts_include.patch
211-darwin-uuid-typedef-clash.patch
214-spidev_h_portability.patch
220-arm-gc_sections.patch
230-openwrt_lzma_options.patch
250-netfilter_depends.patch
251-kconfig.patch
253-ksmbd-config.patch kernel: bump 6.6 to 6.6.64 2024-12-13 21:40:02 +01:00
259-regmap_dynamic.patch kernel: bump 6.6 to 6.6.66 2024-12-19 00:38:34 +01:00
260-crypto_test_dependencies.patch
261-lib-arc4-unhide.patch
280-rfkill-stubs.patch
300-MIPS-r4k_cache-use-more-efficient-cache-blast.patch
402-mtd-blktrans-call-add-disks-after-mtd-device.patch
420-mtd-support-OpenWrt-s-MTD_ROOTFS_ROOT_DEV.patch
421-drivers-mtd-parsers-add-nvmem-support-to-cmdlinepart.patch
430-mtk-bmt-support.patch generic: fix Qcom SNAND driver and move to backports directory 2025-02-08 10:41:27 +01:00
600-net-enable-fraglist-GRO-by-default.patch
610-net-page_pool-try-to-free-deferred-skbs-while-waitin.patch generic: refresh hack patches 2025-01-22 20:12:58 +01:00
645-netfilter-connmark-introduce-set-dscpmark.patch kernel: bump 6.6 to 6.6.57 2024-10-19 16:21:32 +02:00
650-netfilter-add-xt_FLOWOFFLOAD-target.patch kernel: bump 6.6 to 6.6.66 2024-12-19 00:38:34 +01:00
651-wireless_mesh_header.patch
660-fq_codel_defaults.patch
661-kernel-ct-size-the-hashtable-more-adequately.patch kernel: bump 6.6 to 6.6.72 2025-01-21 00:18:28 +01:00
700-swconfig_switch_drivers.patch
711-net-dsa-mv88e6xxx-disable-ATU-violation.patch kernel: bump 6.6 to 6.6.84 2025-03-26 11:10:12 +01:00
721-net-add-packet-mangeling.patch kernel: bump 6.6 to 6.6.80 2025-03-02 11:39:59 +01:00
722-net-phy-aquantia-enable-AQR112-and-AQR412.patch generic: phy: aquantia: correctly describe LED polarity 2024-10-15 17:46:14 +01:00
723-net-phy-aquantia-fix-system-side-protocol-mi.patch generic: phy: aquantia: add pending patch to force MDI pair order 2024-09-20 22:47:05 +01:00
725-net-phy-aquantia-add-PHY_IDs-for-AQR112-variants.patch generic: phy: aquantia: correctly describe LED polarity 2024-10-15 17:46:14 +01:00
730-net-ethernet-mtk_eth_soc-add-hw-dump-for-forced-rese.patch kernel: Mediatek: fix EEE registers init 2025-03-31 10:21:28 +01:00
735-net-phy-realtek-rtl8261n.patch generic: import rtl8261n patches from mediatek 2025-03-16 19:05:56 +01:00
750-net-pcs-mtk-lynxi-workaround-2500BaseX-no-an.patch
760-net-usb-r8152-add-LED-configuration-from-OF.patch kernel: bump 6.6 to 6.6.51 2024-09-15 16:32:48 +02:00
761-dt-bindings-net-add-RTL8152-binding-documentation.patch
766-net-phy-mediatek-ge-add-LED-configuration-interface.patch
773-bgmac-add-srab-switch.patch kernel: bump 6.6 to 6.6.76 2025-02-13 00:03:54 +01:00
780-usb-net-MeigLink_modem_support.patch kernel: bump 6.6 to 6.6.79 2025-02-23 12:17:38 +01:00
781-usb-net-rndis-support-asr.patch
790-SFP-GE-T-ignore-TX_FAULT.patch generic: net: phy: sfp: backport some FS copper SFP fixes 2025-03-12 12:01:53 +01:00
800-GPIO-add-named-gpio-exports.patch treewide: remove THIS_MODULE assignment 2024-11-10 02:16:31 +01:00
810-bcma-ssb-fallback-sprom.patch kernel: fallback-sprom: create separate header files 2024-12-08 13:32:46 +01:00
901-debloat_sock_diag.patch kernel: bump 6.6 to 6.6.70 2025-01-10 13:41:30 +01:00
902-debloat_proc.patch kernel: bump 6.6 to 6.6.70 2025-01-10 13:41:30 +01:00
904-debloat_dma_buf.patch kernel: bump 6.6 to 6.6.84 2025-03-26 11:10:12 +01:00
910-kobject_uevent.patch
911-kobject_add_broadcast_uevent.patch
920-device_tree_cmdline.patch kernel: bump 6.6 to 6.6.64 2024-12-13 21:40:02 +01:00
930-Revert-Revert-Revert-driver-core-Set-fw_devlink-on-b.patch kernel: bump 6.6 to 6.6.66 2024-12-19 00:38:34 +01:00