]> git.ipfire.org Git - thirdparty/openwrt.git/commit
rockchip: backport pcie fix for rk3399 20418/head
authorTimothy Feierabend <tim.feierabend@gmail.com>
Wed, 15 Oct 2025 01:44:32 +0000 (20:44 -0500)
committerRobert Marko <robimarko@gmail.com>
Thu, 16 Oct 2025 14:38:47 +0000 (16:38 +0200)
commitd8f764ce810c9adc0a4488438b6eac3283d1aa52
tree7affca54ab0145399ea446b743a490eebfe10bc3
parenta8afcd8fc26fa7b348867f03ed3821167a9e68a8
rockchip: backport pcie fix for rk3399

This patch resolves the LAN port not initializing on the
FriendlyElec NanoPI R4S, especially during warm reboots.

Upstream commit patch is based on:
https://github.com/torvalds/linux/commit/c3fe7071e196e25789ecf90dbc9e8491a98884d7

I've experienced the LAN port failing to initialize from a cold boot and
after a reboot. Other users have reported this issue on
https://forum.openwrt.org/t/nanopi-r4s-rk3399-is-a-great-new-openwrt-device/79143.
The NanoPI R4S has its LAN port connected to the RK3399 via PCIE. Since the
PCIE lanes don't initialize correctly after reboot, the LAN port
doesn't initialize.

Signed-off-by: Timothy Feierabend <tim.feierabend@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/20406
Signed-off-by: Nick Hainke <vincent@systemli.org>
(cherry picked from commit 7ef19bb9cd59f5018fc96b01a5465ed84038cfe8)
Link: https://github.com/openwrt/openwrt/pull/20418
Signed-off-by: Robert Marko <robimarko@gmail.com>
target/linux/rockchip/patches-6.6/032-06-v6.17-phy-rockchip-pcie-Enable-all-four-lanes-if-required.patch [new file with mode: 0644]