rtw88: use read_poll_timeout_atomic() for poll loop
authorBrian Norris <briannorris@chromium.org>
Fri, 21 Aug 2020 23:57:33 +0000 (16:57 -0700)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 27 Aug 2020 10:04:38 +0000 (13:04 +0300)
commit86fbf26491941352799822c8c324f5c9d8101e62
tree42a070bbc0f9b7214f64c9d7b03070dfdf5a0234
parent22b726cbdd09d9891ede8aa122a950d2d0ae5e09
rtw88: use read_poll_timeout_atomic() for poll loop

This gives the added bonus of not wasting an extra udelay() if we're
timing out -- we double-check the register state one last time before
returning.

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200821235733.1785009-1-briannorris@chromium.org
drivers/net/wireless/realtek/rtw88/mac.c