ltq-vectoring: add driver
authorJan Hoffmann <jan@3e8.eu>
Sun, 13 Mar 2022 21:14:35 +0000 (22:14 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 7 Jun 2022 19:36:58 +0000 (21:36 +0200)
commite56836dfc1353c49d43323b75d68ebc3456c6cff
treef7f62b4802cc5e9c0181b59357fedb8cf95cb09d
parentde0a9b0eab4ad50ec0b359af5bf41a8ea852e423
ltq-vectoring: add driver

In order to calculate the required pre-distortion for downstream
vectoring, the vectoring control entity (VCE) at the carrier office
needs error samples from the modem. On Lantiq VR9 modems, error reports
are generated by the firmware, but need to be multiplexed into the data
stream by the driver on the main processor when L2 encapsulation is
selected by the VCE.

This driver provides the necessary callback function, which is called by
the MEI driver after receiving an error report from the firmware.

Originally, it is part of the Lantiq PPA driver, but after a few changes
it also works with the PTM driver used in OpenWrt. The direct call to
ndo_start_xmit needs to be replaced, as the PTM driver relies on locks
from the kernel. Instead dev_queue_xmit is used, which is called from a
work queue, as it is not safe to call from an interrupt handler.

Additional changes include fixes to support recent kernel versions and
a change of the used interface from ptm0 to dsl0.

Tested-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Jan Hoffmann <jan@3e8.eu>
(cherry picked from commit f872b966092ece5c0e2192e0d979a9eb69283f17)
package/kernel/lantiq/ltq-vectoring/Makefile [new file with mode: 0644]
package/kernel/lantiq/ltq-vectoring/patches/001-fix-compile.patch [new file with mode: 0644]
package/kernel/lantiq/ltq-vectoring/patches/100-cleanup.patch [new file with mode: 0644]
package/kernel/lantiq/ltq-vectoring/patches/200-compat.patch [new file with mode: 0644]