Avoid timeout problem.
This commit is contained in:
parent
7a52a73fbc
commit
4dbcdcc282
1 changed files with 1 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ static int await_ide(int (*done)(struct controller *ctrl),
|
|||
if (result) {
|
||||
return 0;
|
||||
}
|
||||
if (timeout-- == 0) {
|
||||
if (timeout-- <= 0) {
|
||||
break;
|
||||
}
|
||||
udelay(1000); /* Added to avoid spinning GRW */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue