]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: dwc_eth_qos: Fix needless phy auto-negotiation restarts
authorDaniil Stas <daniil.stas@posteo.net>
Sun, 23 May 2021 22:24:48 +0000 (22:24 +0000)
committerRamon Fried <rfried.dev@gmail.com>
Fri, 18 Jun 2021 08:29:17 +0000 (11:29 +0300)
commit07292f8e51dfc9a8f4065e08144955eebff88944
treeea2e4ada8dffe81e5f1b1f728204c64b24f93b15
parent70018635969987c1224b27f62c851ac70264f272
net: dwc_eth_qos: Fix needless phy auto-negotiation restarts

Disabling clk_ck clock leads to link up status loss in phy, which
leads to auto-negotiation restart before each network command
execution.

This issue is especially big for PXE boot protocol because of
auto-negotiation restarts before each configuration filename trial.

To avoid this issue don't disable clk_ck clock after it was enabled.

Signed-off-by: Daniil Stas <daniil.stas@posteo.net>
Cc: Ramon Fried <rfried.dev@gmail.com>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/dwc_eth_qos.c