Skip to content
Commit 86062e7a authored by Weijie Gao's avatar Weijie Gao Committed by Daniel Schwierzeck
Browse files

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: default avatarRamon Fried <rfried.dev@gmail.com>
Signed-off-by: default avatarWeijie Gao <weijie.gao@mediatek.com>
parent 528e483a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment