aboutsummaryrefslogtreecommitdiffstats
path: root/package/platform/lantiq/ltq-adsl/patches/110-fix_status_polling_loop.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-12-15 02:00:33 +0000
committerJohn Crispin <john@openwrt.org>2012-12-15 02:00:33 +0000
commit1d0a9d0c0470f774056e015431ae43e0175d2266 (patch)
treef2da9a1682c30c82d4687a8e67a00eac2add7d11 /package/platform/lantiq/ltq-adsl/patches/110-fix_status_polling_loop.patch
parentc2738a9559f434db5d28282051741e24298344af (diff)
downloadupstream-1d0a9d0c0470f774056e015431ae43e0175d2266.tar.gz
upstream-1d0a9d0c0470f774056e015431ae43e0175d2266.tar.bz2
upstream-1d0a9d0c0470f774056e015431ae43e0175d2266.zip
move ltq-adsl
SVN-Revision: 34693
Diffstat (limited to 'package/platform/lantiq/ltq-adsl/patches/110-fix_status_polling_loop.patch')
-rw-r--r--package/platform/lantiq/ltq-adsl/patches/110-fix_status_polling_loop.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/platform/lantiq/ltq-adsl/patches/110-fix_status_polling_loop.patch b/package/platform/lantiq/ltq-adsl/patches/110-fix_status_polling_loop.patch
new file mode 100644
index 0000000000..870943d950
--- /dev/null
+++ b/package/platform/lantiq/ltq-adsl/patches/110-fix_status_polling_loop.patch
@@ -0,0 +1,11 @@
+--- a/src/device/drv_dsl_cpe_device_danube.c
++++ b/src/device/drv_dsl_cpe_device_danube.c
+@@ -4069,7 +4069,7 @@ static DSL_Error_t DSL_DRV_DANUBE_XTUSys
+
+ DSL_CTX_WRITE(pContext, nErrCode, xtseCurr, xtseCurr);
+
+- for (nRetry = 0; nRetry < 20; nRetry++)
++ for (nRetry = 0; nRetry < 20 && bStatusUpdated == DSL_FALSE; nRetry++)
+ {
+ /* Get STAT1 info*/
+ nErrCode = DSL_DRV_DANUBE_CmvRead(pContext, DSL_CMV_GROUP_STAT,