[PATCH v5 18/25] net: mediatek: use regmap api to modify ethsys registers

Daniel Schwierzeck daniel.schwierzeck at gmail.com
Tue May 17 23:51:21 CEST 2022



On 16.05.22 04:43, Weijie Gao wrote:
> 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 at gmail.com>
> Signed-off-by: Weijie Gao <weijie.gao at mediatek.com>
> ---
> v5 changes: none
> v4 changes: new
> ---
>   drivers/net/mtk_eth.c | 22 +++++++++++-----------
>   1 file changed, 11 insertions(+), 11 deletions(-)
> 

Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>

-- 
- Daniel


More information about the U-Boot mailing list