]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: ti: am65-cpsw-nuss: Use dedicated port mode control registers
authorAndreas Dannenberg <dannenberg@ti.com>
Wed, 14 Jun 2023 22:28:53 +0000 (17:28 -0500)
committerTom Rini <trini@konsulko.com>
Fri, 14 Jul 2023 19:21:07 +0000 (15:21 -0400)
commitedacf6a44d2383f9137a99ffdf61a24de4a47307
tree33d35b4d4a6ef894107c72f91b205b9cdf7f79aa
parent10de1257079905ac383e7abf346a04221cafa620
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: 9d0dca1199d1 ("net: ethernet: ti: Introduce am654 gigabit eth switch subsystem driver")
Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Siddharth Vadapalli <s-vadapalli@ti.com>
drivers/net/ti/am65-cpsw-nuss.c