]> git.baikalelectronics.ru Git - uboot.git/commit
net: mediatek: use regmap api to modify ethsys registers
authorWeijie Gao <weijie.gao@mediatek.com>
Fri, 20 May 2022 03:23:37 +0000 (11:23 +0800)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Wed, 13 Jul 2022 21:03:37 +0000 (23:03 +0200)
commit7ed154a8753363509d66ae42a023d2d0bf07367b
tree20a82ed33407d7f74b27ebf1ee7edde00f026d40
parent1c01dcb92c25311ff1aca5dad907e673647fb6d5
net: mediatek: use regmap api to modify ethsys registers

The address returned by regmap_get_range() is not remapped. Directly r/w
to this address is ok for ARM platforms since it's idential to the virtual
address.

But for MIPS platform only virtual address should be used for access.
To solve this issue, the regmap api regmap_read/regmap_write should be used
since they will remap address before accessing.

Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
drivers/net/mtk_eth.c