]> git.baikalelectronics.ru Git - uboot.git/commit
net: tsec: add option to set device max-speed via dts
authorAleksandar Gerasimovski <aleksandar.gerasimovski@hitachi-powergrids.com>
Fri, 4 Jun 2021 13:40:58 +0000 (13:40 +0000)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 17 Jun 2021 06:16:11 +0000 (11:46 +0530)
commitf408dea3b968b9d20f3d3f4ec20f7b036fef6035
treea4659ecc6c7dc92dba7f11371ae2400b7c4be5d9
parent14cf2d4c5b327ae75f0acba00c7cd0aadf1a0e76
net: tsec: add option to set device max-speed via dts

Current tsec adapter sets adapter gigabit capabilities by default, and in
reality this must not always be the case.
It is possible that tsec adapter is used for 100Mbps connection, and in
this case setting 1000Mbps capabilities can lead to some side effects such
longer autoneg process.

In our ls102x designs this problem leads to long autoneg times (> 4 sec)
in case board rgmii link is 100Mbps capable only.
Limiting the rgmii link capabilities provides faster and smoother
link establishment.

Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachi-powergrids.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/net/tsec.c