]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: dwc_eth_qos: Enable clock in probe
authorMarek Vasut <marex@denx.de>
Sat, 13 Nov 2021 02:23:52 +0000 (03:23 +0100)
committerRamon Fried <rfried.dev@gmail.com>
Thu, 2 Dec 2021 06:35:44 +0000 (08:35 +0200)
commit3fbd17aadf792735846a5f2052b3f68f7075201f
treef84d6c9f544b6a5d1cd47a86343aad92fed36758
parent8777033722719a37eac8d07efa3e4b3a665612e1
net: dwc_eth_qos: Enable clock in probe

Enable DWC IP clock in driver probe, so the MII access is possible even
outside of active network transfers. This is particularly useful when
using 'mii' or 'mdio' commands to explore PHY state, neither of which
works with DWMAC currently due to the disabled clock.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Patrice Chotard <patrice.chotard@foss.st.com>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Ramon Fried <rfried.dev@gmail.com>
Cc: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
drivers/net/dwc_eth_qos.c