mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
staging: rtl8188eu: add missing delay in polling loops.
Previously the code could exit with failure too early. Signed-off-by: Rémy Oudompheng <remyoudompheng@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ed73749426
commit
3913c19ae7
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,7 @@ s32 iol_execute(struct adapter *padapter, u8 control)
|
|||
start = jiffies;
|
||||
while ((reg_0x88 = usb_read8(padapter, REG_HMEBOX_E0)) & control &&
|
||||
jiffies_to_msecs(jiffies - start) < 1000) {
|
||||
;
|
||||
udelay(5);
|
||||
}
|
||||
|
||||
reg_0x88 = usb_read8(padapter, REG_HMEBOX_E0);
|
||||
|
@ -242,6 +242,7 @@ static s32 _LLTWrite(struct adapter *padapter, u32 address, u32 data)
|
|||
status = _FAIL;
|
||||
break;
|
||||
}
|
||||
udelay(5);
|
||||
} while (count++);
|
||||
|
||||
return status;
|
||||
|
|
Loading…
Reference in a new issue