summaryrefslogtreecommitdiff
path: root/package/ltq-dsl/patches/110-fix_status_polling_loop.patch
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-08-22 09:19:11 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-08-22 09:19:11 +0000
commit6c9f5a1b100e6ace79838ca3a5aa492dd6e789f8 (patch)
treebf712b9a3c684ca4b272c2f6807aa18ec91fd6f6 /package/ltq-dsl/patches/110-fix_status_polling_loop.patch
parent0b51351f93d059f0fe58dc4bf445fb92c84d05e3 (diff)
lantiq: dsl: fix status polling loop
doesn't need to do it 20 times all the time, missing loop condition check Signed-off-by: Conor O'Gorman <i@conorogorman.net> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33217 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/ltq-dsl/patches/110-fix_status_polling_loop.patch')
-rw-r--r--package/ltq-dsl/patches/110-fix_status_polling_loop.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/ltq-dsl/patches/110-fix_status_polling_loop.patch b/package/ltq-dsl/patches/110-fix_status_polling_loop.patch
new file mode 100644
index 0000000000..870943d950
--- /dev/null
+++ b/package/ltq-dsl/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,