commit | a182b7e800964423c29312e71025394090c4021f | [log] [tgz] |
---|---|---|
author | developer <developer@mediatek.com> | Fri May 20 11:23:37 2022 +0800 |
committer | Daniel Schwierzeck <daniel.schwierzeck@gmail.com> | Wed Jul 13 23:03:37 2022 +0200 |
tree | 20a82ed33407d7f74b27ebf1ee7edde00f026d40 | |
parent | afa74c2e37634c3f8042f115a9d35fcfd70a3004 [diff] |
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>