Skip to content
Commit edacf6a4 authored by Andreas Dannenberg's avatar Andreas Dannenberg Committed by Tom Rini
Browse files

net: ti: am65-cpsw-nuss: Use dedicated port mode control registers



The different CPSW sub-system Ethernet ports have different PHY mode
control registers. In order to allow the modes to get configured
independently only the register for the port in question must be
accessed, otherwise we would just be re-configuring the mode for port 1,
while leaving all others at their power-on defaults. Fix this issue by
adding a port-number based offset to the mode control base register
address based on the fact that the control registers for the different
ports are spaced exactly 0x4 bytes apart.

Fixes: 9d0dca11 ("net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver")
Signed-off-by: default avatarAndreas Dannenberg <dannenberg@ti.com>
Reviewed-by: default avatarSiddharth Vadapalli <s-vadapalli@ti.com>
parent 10de1257
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