mbox series

[net-next,0/4] net: phy: move getting (R)MII refclock to phylib

Message ID 0c529488-0fd8-19e1-c5a9-9cf1fab78ed3@gmail.com (mailing list archive)
Headers show
Series net: phy: move getting (R)MII refclock to phylib | expand

Message

Heiner Kallweit March 24, 2023, 6:01 p.m. UTC
>From c578be6534254bfc3fd627d9d7be07b1bb46f92c Mon Sep 17 00:00:00 2001
Few PHY drivers (smsc, bcm7xxx, micrel) get and enable the (R)MII
reference clock in their probe() callback. Move this common
functionality to phylib, this allows to remove it from drivers.

Heiner Kallweit (4):
  net: phylib: add getting reference clock
  net: phy: smsc: remove getting reference clock
  net: phy: micrel: remove getting reference clock
  net: phy: bcm7xxx: remove getting reference clock

 drivers/net/phy/bcm7xxx.c    | 20 --------------------
 drivers/net/phy/micrel.c     |  7 ++-----
 drivers/net/phy/phy_device.c |  6 ++++++
 drivers/net/phy/smsc.c       |  9 +--------
 include/linux/phy.h          |  5 +++++
 5 files changed, 14 insertions(+), 33 deletions(-)