]> git.baikalelectronics.ru Git - uboot.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)
commit6545cc48317f59f152a0d5adc911a9983179ea78
treef84d6c9f544b6a5d1cd47a86343aad92fed36758
parentbc5cf7c1e71bec52305ddb5c4d07d27ea209e2ca
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