mt76: mt7921: use physical addr to unify register access
authorSean Wang <sean.wang@mediatek.com>
Fri, 15 Jul 2022 19:59:24 +0000 (12:59 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:25:07 +0000 (17:25 +0200)
commitc3bcf1f959f603e1525360523c2fce3a8b7ab3a2
treeb91e5c50428884bf5841b8183e64923cd7e8811f
parent191c16f921ad835d2901a630300daebf6379447e
mt76: mt7921: use physical addr to unify register access

commit f1e2eef111018a4f0d280656be4351c37e9e554b upstream.

Use physical address to unify the register access and reorder the
entries in fixed_map table to accelerate the address lookup for
MT7921e. Cosmetics the patch with adding an extra space to make all
entries in the array style consistent.

Tested-by: Deren Wu <deren.wu@mediatek.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mediatek/mt76/mt7921/dma.c
drivers/net/wireless/mediatek/mt76/mt7921/regs.h