kernel: vrx518_tc: fix ADSL/ATM operation
authorSergey Ryazanov <ryazanov.s.a@gmail.com>
Wed, 22 Jan 2025 22:26:52 +0000 (00:26 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 24 Jan 2025 21:26:19 +0000 (22:26 +0100)
commit6383f24378ed745c2a9fe2645df9d31470eb9599
treee597d22a9515ff2ed740e9d045e84ebbb3f75b81
parent9b32a8ec9d21197202f689225ca3ead817d5a689
kernel: vrx518_tc: fix ADSL/ATM operation

ATM TC layer have some issues which effectively prevent VRX518 from
being used as ADSL modem. Specifically, there one crash during the ATM
layer configuration and wrong PVC ID selection on packet receiving what
breaks RX path. Fix both of the issues. Make subif iface registration
optional to prevent the crash (see more details in the new patch) and
update the hardcoded PVC ID to match the first allocated channel.

Run tested with FRITZ!Box 7530.

Fixes: 474bbe23b7 ("kernel: add Intel/Lantiq VRX518 TC driver")
Reported-and-tested-by: nebibigon93@yandex.ru
Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Link: https://patchwork.ozlabs.org/project/openwrt/patch/20250122222654.21833-3-ryazanov.s.a@gmail.com/
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 470335450e67002366fcbcd7334b15bdf008e44d)
package/kernel/lantiq/vrx518_tc/patches/100-compat.patch
package/kernel/lantiq/vrx518_tc/patches/207-dcdp-atm_tc-fix-crash-on-subif_reg-absence.patch [new file with mode: 0644]