ltq-vectoring: add driver
authorJan Hoffmann <jan@3e8.eu>
Sun, 13 Mar 2022 21:14:35 +0000 (22:14 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 21 Mar 2022 12:28:26 +0000 (12:28 +0000)
commitf872b966092ece5c0e2192e0d979a9eb69283f17
tree5d123587806380bad8d164c8bff1dd697a4efd2f
parent3a14580411adfb75f9a44eded9f41245b9e44606
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>
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]