aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorMartin Schiller <ms@dev.tdt.de>2017-08-09 14:57:18 +0200
committerJohn Crispin <john@phrozen.org>2018-06-18 21:21:54 +0200
commit4a571ae62beebbcaa46e2f8fa4d0283d5c2391a4 (patch)
tree42aca5b88a63738a9d40123d444c8b75ad597aee /package/kernel
parent503f7f0614ec8f017f375f4a84fd8b8c75609a86 (diff)
downloadupstream-4a571ae62beebbcaa46e2f8fa4d0283d5c2391a4.tar.gz
upstream-4a571ae62beebbcaa46e2f8fa4d0283d5c2391a4.tar.bz2
upstream-4a571ae62beebbcaa46e2f8fa4d0283d5c2391a4.zip
ltq-vdsl-mei: reset g_tx_link_rate on showtime exit
Without this change, ifx_mei_atm_showtime_check() will always return "showtime" after one call of MEI_InternalXtmSwhowtimeEntrySignal() was done, even if MEI_InternalXtmSwhowtimeExitSignal() was called in the meantime. The ifx_mei_atm_showtime_check() function is used by the ltq-atm and ltq-ptm driver. Signed-off-by: Martin Schiller <ms@dev.tdt.de> (cherry picked from commit eee8ab59dc8bc4c599b3508201349fdd96463e69)
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/lantiq/ltq-vdsl-mei/patches/110-reset-g_tx_link_rate-on-showtime-exit.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/kernel/lantiq/ltq-vdsl-mei/patches/110-reset-g_tx_link_rate-on-showtime-exit.patch b/package/kernel/lantiq/ltq-vdsl-mei/patches/110-reset-g_tx_link_rate-on-showtime-exit.patch
new file mode 100644
index 0000000000..c4ca234be8
--- /dev/null
+++ b/package/kernel/lantiq/ltq-vdsl-mei/patches/110-reset-g_tx_link_rate-on-showtime-exit.patch
@@ -0,0 +1,12 @@
+--- a/src/drv_mei_cpe_api_atm_ptm_intern.c
++++ b/src/drv_mei_cpe_api_atm_ptm_intern.c
+@@ -124,6 +124,9 @@ IFX_int32_t MEI_InternalXtmSwhowtimeExit
+ /* Get line number*/
+ dslLineNum = pMeiDynCntrl->pMeiDev->meiDrvCntrl.dslLineNum;
+
++ g_tx_link_rate[dslLineNum][0] = 0;
++ g_tx_link_rate[dslLineNum][1] = 0;
++
+ /* get NULL or function pointer */
+ mei_showtime_exit =
+ (ltq_mei_atm_showtime_exit_t)ppa_callback_get(LTQ_MEI_SHOWTIME_EXIT);