summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2012-08-22 09:19:11 +0000
committerJohn Crispin <john@openwrt.org>2012-08-22 09:19:11 +0000
commit60e6fcd31b4e5c30af3410aea9680b3379913bc0 (patch)
tree8522672b679b33ea8feeb002d90d919d18716867
parent2df4c1b2d4d033e4ccd72aeec501bbeb42e9861a (diff)
downloadmtk-20170518-60e6fcd31b4e5c30af3410aea9680b3379913bc0.zip
mtk-20170518-60e6fcd31b4e5c30af3410aea9680b3379913bc0.tar.gz
mtk-20170518-60e6fcd31b4e5c30af3410aea9680b3379913bc0.tar.bz2
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> SVN-Revision: 33217
-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 0000000..870943d
--- /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,