Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3913c19a authored by Rémy Oudompheng's avatar Rémy Oudompheng Committed by Greg Kroah-Hartman
Browse files

staging: rtl8188eu: add missing delay in polling loops.



Previously the code could exit with failure too early.

Signed-off-by: default avatarRémy Oudompheng <remyoudompheng@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ed737494
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;