diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2024-03-20 12:28:35 +0100 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2024-04-02 23:45:22 +0200 |
commit | 844a41f7455ba3e2f4abfb2723ebfaf5a0f1815e (patch) | |
tree | fdbc2e4d3307677a69451f7ae4a506643b010a94 | |
parent | 3b7169f78606fd7818756912953a7df48df8a3d9 (diff) | |
download | openwrt-844a41f7455ba3e2f4abfb2723ebfaf5a0f1815e.tar.gz openwrt-844a41f7455ba3e2f4abfb2723ebfaf5a0f1815e.tar.bz2 openwrt-844a41f7455ba3e2f4abfb2723ebfaf5a0f1815e.zip |
ltq-vdsl-vr11-mei: add patch fixing compilation with kernel 6.6
Add patch fixing compilation with kernel 6.6.
class_create now require only the name instead of the module ownership
reference.
Also the kernel enabled checks for enum.
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
-rw-r--r-- | package/kernel/lantiq/ltq-vdsl-vr11-mei/Makefile | 2 | ||||
-rw-r--r-- | package/kernel/lantiq/ltq-vdsl-vr11-mei/patches/130-support-kernel-6.6.patch | 35 |
2 files changed, 36 insertions, 1 deletions
diff --git a/package/kernel/lantiq/ltq-vdsl-vr11-mei/Makefile b/package/kernel/lantiq/ltq-vdsl-vr11-mei/Makefile index 7b8a948179..3e01ee6373 100644 --- a/package/kernel/lantiq/ltq-vdsl-vr11-mei/Makefile +++ b/package/kernel/lantiq/ltq-vdsl-vr11-mei/Makefile @@ -9,7 +9,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=ltq-vdsl-vr11-mei PKG_VERSION:=1.11.1 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_BASE_NAME:=dsl_cpe_mei UGW_VERSION=8.5.2.10 diff --git a/package/kernel/lantiq/ltq-vdsl-vr11-mei/patches/130-support-kernel-6.6.patch b/package/kernel/lantiq/ltq-vdsl-vr11-mei/patches/130-support-kernel-6.6.patch new file mode 100644 index 0000000000..407afc9bf2 --- /dev/null +++ b/package/kernel/lantiq/ltq-vdsl-vr11-mei/patches/130-support-kernel-6.6.patch @@ -0,0 +1,35 @@ +--- a/src/drv_mei_cpe_linux.c ++++ b/src/drv_mei_cpe_linux.c +@@ -2779,7 +2779,11 @@ static int MEI_InitModuleRegCharDev(cons + ("Using major number %d" MEI_DRV_CRLF, MAJOR(mei_devt))); + } + ++#if LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0) + mei_class = class_create(THIS_MODULE, devName); ++#else ++ mei_class = class_create(devName); ++#endif + if (IS_ERR(mei_class)) + { + PRN_DBG_USR_NL( MEI_DRV,MEI_DRV_PRN_LEVEL_HIGH, +--- a/src/drv_mei_cpe_api_atm_ptm_intern.c ++++ b/src/drv_mei_cpe_api_atm_ptm_intern.c +@@ -223,7 +223,7 @@ IFX_int32_t MEI_TcRequest(void *data) + pMeiDynCntrl->pDfeX = NULL; + pMeiDynCntrl->pMeiDev = pMeiDev; + +- argsTcRequest.request_type = request_type; ++ argsTcRequest.request_type = (MEI_TC_RequestType_t)request_type; + argsTcRequest.is_bonding = MEI_BND_EnableGet(pMeiDynCntrl); + + if (MEI_DFEX_ENTITIES == 1 && argsTcRequest.is_bonding == IFX_TRUE) +@@ -398,7 +398,8 @@ IFX_int32_t MEI_InternalLineTCModeSwitch + pMeiDynCntrl->pDfeX = NULL; + pMeiDynCntrl->pMeiDev = MEIX_Cntrl[nEntity]->MeiDevice[nInstance]; + +- argsTcRequest.request_type = bPowerUp ? MEI_TC_REQUEST_PTM : MEI_TC_REQUEST_OFF; ++ argsTcRequest.request_type = bPowerUp ? (MEI_TC_RequestType_t)MEI_TC_REQUEST_PTM : ++ (MEI_TC_RequestType_t)MEI_TC_REQUEST_OFF; + argsTcRequest.is_bonding = pMeiDynCntrl->pMeiDev->bLastBondingStatus; + + retVal = MEI_InternalTcRequest(pMeiDynCntrl, &argsTcRequest); |