mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 19:25:21 +02:00
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
This commit is contained in:
parent
0b51351f93
commit
6c9f5a1b10
11
package/ltq-dsl/patches/110-fix_status_polling_loop.patch
Normal file
11
package/ltq-dsl/patches/110-fix_status_polling_loop.patch
Normal file
@ -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,
|
Loading…
Reference in New Issue
Block a user