]> git.baikalelectronics.ru Git - kernel.git/commit
net: macb: add capability to not set the clock rate
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Wed, 9 Dec 2020 13:03:33 +0000 (15:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Dec 2020 00:19:20 +0000 (16:19 -0800)
commit79688342fe90f13b07014b7b82dcd62bff72c927
tree97af9c3d83b9ddda835d7a50442e9b7fbee43d70
parente9e5c2e5d34b0f35c4e212ea1de649a8025a1f07
net: macb: add capability to not set the clock rate

SAMA7G5's ethernet IPs TX clock could be provided by its generic clock or
by the external clock provided by the PHY. The internal IP logic divides
properly this clock depending on the link speed. The patch adds a new
capability so that macb_set_tx_clock() to not be called for IPs having
this capability (the clock rate, in case of generic clock, is set at the
boot time via device tree and the driver only enables it).

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.h
drivers/net/ethernet/cadence/macb_main.c