]> git.baikalelectronics.ru Git - uboot.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)
commit3131003a1840d3f3ef01616824b5a204ee6d2e26
tree33d35b4d4a6ef894107c72f91b205b9cdf7f79aa
parent05d1833c31c44d51dd5a4fc23e1e8cf15d34c225
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: 80c67f2a80df ("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