wifi: rt2x00: rework MT7620 PA/LNA RF calibration
authorShiji Yang <yangshiji66@outlook.com>
Thu, 19 Oct 2023 11:58:58 +0000 (19:58 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 25 Oct 2023 09:06:16 +0000 (12:06 +0300)
commitcca74bed37af1c8217bcd8282d9b384efdbf73bd
tree1cbafe85e9150de416b6a7108a7f521cd9b10707
parenta28533c6be1711584bf3ec978309d5c590029821
wifi: rt2x00: rework MT7620 PA/LNA RF calibration

1. Move MT7620 PA/LNA calibration code to dedicated functions.
2. For external PA/LNA devices, restore RF and BBP registers before
   R-Calibration.
3. Do Rx DCOC calibration again before RXIQ calibration.
4. Add some missing LNA related registers' initialization.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Acked-by: Stanislaw Gruszka <stf_xl@wp.pl>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/TYAP286MB0315979F92DC563019B8F238BCD4A@TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM
drivers/net/wireless/ralink/rt2x00/rt2800lib.c
drivers/net/wireless/ralink/rt2x00/rt2x00.h