wifi: rt2x00: set SoC wmac clock register
authorDaniel Golle <daniel@makrotopia.org>
Sat, 17 Sep 2022 20:29:55 +0000 (21:29 +0100)
committerKalle Valo <kvalo@kernel.org>
Sat, 24 Sep 2022 12:30:57 +0000 (15:30 +0300)
commitcbde6ed406a51092d9e8a2df058f5f8490f27443
treec6de49b3e9b1adf514f39cc465e1b1e76ec704a2
parent0e09768c085709e10ece3b68f6ac921d3f6a9caa
wifi: rt2x00: set SoC wmac clock register

Instead of using the default value 33 (pci), set US_CYC_CNT init based
on Programming guide:
If available, set chipset bus clock with fallback to cpu clock/3.

Reported-by: Serge Vasilugin <vasilugin@yandex.ru>
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/3e275d259f476f597dab91a9c395015ef3fe3284.1663445157.git.daniel@makrotopia.org
drivers/net/wireless/ralink/rt2x00/rt2800lib.c