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>
Thu, 23 Jan 2025 19:26:53 +0000 (20:26 +0100)
commit470335450e67002366fcbcd7334b15bdf008e44d
treee126bba28487f3ff54dea297af7e5f944ad11064
parent7bd579689d2304c73c263be3e030d76c551d6e87
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>
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]