]> git.dujemihanovic.xyz Git - u-boot.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)
commit86062e7a5deb8b32112f6c05403b6a2e5d9f1853
tree20a82ed33407d7f74b27ebf1ee7edde00f026d40
parent528e483a09db22798aec022fc6ca2f4ab40670d4
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