]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
rtw88: Use udelay instead of usleep in atomic context
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Thu, 23 Apr 2020 07:30:07 +0000 (15:30 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 6 May 2020 08:30:34 +0000 (11:30 +0300)
commitfd5d781964b05ab586e690923dba6eca3cc16723
tree83f969c18484d68ec8403442e6e6a2eb721e1176
parent57a29df341466b5cca43ba3d2d7064426727d7c3
rtw88: Use udelay instead of usleep in atomic context

It's incorrect to use usleep in atomic context.

Switch to a macro which uses udelay instead of usleep to prevent the issue.

Fixes: 6343a6d4b213 ("rtw88: Add delay on polling h2c command status bit")
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200423073007.3566-1-kai.heng.feng@canonical.com
drivers/net/wireless/realtek/rtw88/fw.c