net: gem: ignore tx_clk if MII is used
authorMartin Kaistra <martin.kaistra@linutronix.de>
Tue, 15 Apr 2025 15:04:00 +0000 (17:04 +0200)
committerMichal Simek <michal.simek@amd.com>
Mon, 2 Jun 2025 07:13:49 +0000 (09:13 +0200)
commit6759bd73e9cf491c5049f87b84e627920efb5824
tree578dd0b47d3703289dd9494cb16541b36b4ed8e8
parent90df44fb4f0e1cbe18b02080ef8bf9e365f867b8
net: gem: 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
error:
  zynq_gem ethernet@e000b000: failed to set tx clock rate 25000000

Signed-off-by: Martin Kaistra <martin.kaistra@linutronix.de>
Link: https://lore.kernel.org/r/20250415150400.136723-1-martin.kaistra@linutronix.de
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/net/zynq_gem.c