diff mbox

[OpenWrt-Devel,1/2] lantiq: ltq-vdsl-mei: enable vectoring support

Message ID 1449258713-7588-1-git-send-email-openwrt@kresin.me
State Accepted
Headers show

Commit Message

Mathias Kresin Dec. 4, 2015, 7:51 p.m. UTC
Dynamic Spectrum Management is a precondition for G.993.5 (VDSL2 vectoring).

Signed-off-by: Mathias Kresin <openwrt@kresin.me>
---

It has been sucessfully tested by a user with a german 1&1 VDSL2 vectoring line,
who could only get the ADSL2+ fallback speed[1] without this patch (regardless
of vectoring support in firmware).

Vectoring requires a firmware with vectoring support, otherwise the line is
limited to the ADSL2+ fallback speed. The user reported that he could only get
stable connections with firmware versions 7.3.3+[2].

It has been tested by my self with a "normal" VDSL2 line.

[1] http://paste.debian.net/hidden/78edfca4/
[2] http://paste.debian.net/hidden/04381d10/

 package/kernel/lantiq/ltq-vdsl-mei/Makefile                 |  2 +-
 package/kernel/lantiq/ltq-vdsl-mei/patches/100-compat.patch | 11 +++++++++++
 2 files changed, 12 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/package/kernel/lantiq/ltq-vdsl-mei/Makefile b/package/kernel/lantiq/ltq-vdsl-mei/Makefile
index 5ff1321..64a7cf3 100644
--- a/package/kernel/lantiq/ltq-vdsl-mei/Makefile
+++ b/package/kernel/lantiq/ltq-vdsl-mei/Makefile
@@ -62,7 +62,7 @@  CONFIGURE_ARGS += \
 	--enable-error_print \
 	--enable-ifxos-include="-I$(STAGING_DIR)/usr/include/ifxos/" \
 	--enable-ifxos-library="-L$(STAGING_DIR)/usr/lib" \
-	--enable-add_drv_cflags="-DMEI_SUPPORT_DSM=0 -DMEI_DRV_ATM_PTM_INTERFACE_ENABLE=1 -fno-pic -mlong-calls -O2 -g0" \
+	--enable-add_drv_cflags="-DMEI_DRV_ATM_PTM_INTERFACE_ENABLE=1 -fno-pic -mlong-calls -O2 -g0" \
 	--enable-linux-26 \
 	--enable-kernelbuild="$(LINUX_DIR)" \
 	--enable-drv_test_appl=yes \
diff --git a/package/kernel/lantiq/ltq-vdsl-mei/patches/100-compat.patch b/package/kernel/lantiq/ltq-vdsl-mei/patches/100-compat.patch
index 0273d19..c401378 100644
--- a/package/kernel/lantiq/ltq-vdsl-mei/patches/100-compat.patch
+++ b/package/kernel/lantiq/ltq-vdsl-mei/patches/100-compat.patch
@@ -308,3 +308,14 @@ 
  }
  
  IFX_int32_t MEI_PLL_ConfigInit(MEI_DEV_T *pMeiDev)
+--- a/src/drv_mei_cpe_dsm.c
++++ b/src/drv_mei_cpe_dsm.c
+@@ -138,7 +138,7 @@ IFX_void_t MEI_VRX_DSM_DataInit(MEI_DEV_
+    memset((IFX_uint8_t *)&pMeiDev->firmwareFeatures, 0x00, sizeof(IOCTL_MEI_firmwareFeatures_t));
+    pMeiDev->meiFwDlCount = 0;
+ 
+-   pMeiDev->meiERBbuf.pCallBackFunc = mei_dsm_cb_func_hook;
++   pMeiDev->meiERBbuf.pCallBackFunc = NULL;
+ 
+    PRN_DBG_USR_NL( MEI_DRV, MEI_DRV_PRN_LEVEL_NORMAL,
+             ("MEI_DRV: PP callback function addr = 0x%08X" MEI_DRV_CRLF,