wifi: rt2x00: move up and reuse busy wait functions
authorDaniel Golle <daniel@makrotopia.org>
Sat, 17 Sep 2022 20:27:10 +0000 (21:27 +0100)
committerKalle Valo <kvalo@kernel.org>
Sat, 24 Sep 2022 12:30:55 +0000 (15:30 +0300)
commit685bcf2f9a13827f9542a0682e6368f972359d31
treec6f1a88781ecaf65d271a7e3cb9486667df98eaa
parentd7320a37716891447e81fd3a7f1ccd7dd080a507
wifi: rt2x00: move up and reuse busy wait functions

Move bbp_ready and rf_ready busy wait functions up in the code so they
can more easily be used. Allow specifying register mask in rf_ready
function which is useful for calibration routines which will be added
in follow-up commits.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/3fdb9dc15e76a9f9c1948b4a3a1308a7a5677bb8.1663445157.git.daniel@makrotopia.org
drivers/net/wireless/ralink/rt2x00/rt2800lib.c