mxm_wifiex: fix build error for udelay

When build on 32-bit platform, error log shows:
ERROR: modpost: "__bad_udelay" [mwifiex/moal.ko] undefined!

32-bit platform udelay has 2000us limition. Split it as workaround.

Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
This commit is contained in:
Luke Wang 2024-10-15 15:49:48 +08:00 committed by Sherry Sun
parent fd7dd188a1
commit f45013f26a

View file

@ -3322,7 +3322,8 @@ static int woal_sdiommc_reset_fw(moal_handle *handle)
ret = -EFAULT;
goto done;
}
udelay(4000);
udelay(2000);
udelay(2000);
/** wait SOC fully wake up */
for (tries = 0; tries < MAX_POLL_TRIES; ++tries) {
ret = handle->ops.write_reg(handle, reset_reg, 0xba);