net: phy: smsc: export functions for use by meson-gxl PHY driver
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 18 Mar 2023 20:32:41 +0000 (21:32 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Mar 2023 10:24:09 +0000 (10:24 +0000)
commita69e332b4ef9f697a4558bab9c442a02b3659fcb
tree6ec650873c68fa1812f7e133b91c83b8763d2b36
parent26271394cf2e92d4112a937045157e3b1db09929
net: phy: smsc: export functions for use by meson-gxl PHY driver

The Amlogic Meson internal PHY's have the same register layout as
certain SMSC PHY's (also for non-c22-standard registers). This seems
to be more than just coincidence. Apparently they also need the same
workaround for EDPD mode (energy detect power down). Therefore let's
export SMSC PHY driver functionality for use by the meson-gxl PHY
driver.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Chris Healy <healych@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/smsc.c
include/linux/smscphy.h