]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: ignore tx_clk if MII is used
authorMichael Walle <michael@walle.cc>
Wed, 20 Jan 2021 19:43:03 +0000 (20:43 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 22 Jan 2021 03:50:47 +0000 (19:50 -0800)
commit76151128f0c141f70d4baf238c2798afb73a9480
tree9f0bdf98f78d966e3f3b9a8c31cd269235cb4c24
parent246e6f88947727315081cadc8aae0cebce97c237
net: macb: ignore tx_clk if MII is used

If the MII interface is used, the PHY is the clock master, thus don't
set the clock rate. On Zynq-7000, this will prevent the following
warning:
  macb e000b000.ethernet eth0: unable to generate target frequency: 25000000 Hz

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20210120194303.28268-1-michael@walle.cc
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cadence/macb_main.c