Commit 1d3796f
committed
nmasic: limit retries in wait_for_bootrom()
If no device is connected or init failed, wait_for_bootrom() will
be stuck in an infinite loop trying to get a result from nm_read_reg().
Place an upper limit on the number of retries so we can recover from
this instead of being stuck here.1 parent fa6526a commit 1d3796f
1 file changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| 407 | + | |
407 | 408 | | |
408 | 409 | | |
409 | 410 | | |
| |||
413 | 414 | | |
414 | 415 | | |
415 | 416 | | |
416 | | - | |
| 417 | + | |
417 | 418 | | |
418 | 419 | | |
419 | 420 | | |
420 | 421 | | |
421 | 422 | | |
422 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
423 | 430 | | |
424 | 431 | | |
425 | 432 | | |
| |||
0 commit comments