linux/drivers/net/phy
Vladimir Oltean 60495b6622 net: phy: provide phylib stubs for hardware timestamping operations
net/core/dev_ioctl.c (built-in code) will want to call phy_mii_ioctl()
for hardware timestamping purposes. This is not directly possible,
because phy_mii_ioctl() is a symbol provided under CONFIG_PHYLIB.

Do something similar to what was done in DSA in commit 5a17818682
("net: dsa: replace NETDEV_PRE_CHANGE_HWTSTAMP notifier with a stub"),
and arrange some indirect calls to phy_mii_ioctl() through a stub
structure containing function pointers, that's provided by phylib as
built-in even when CONFIG_PHYLIB=m, and which phy_init() populates at
runtime (module insertion).

Note: maybe the ownership of the ethtool_phy_ops singleton is backwards,
and the methods exposed by that should be later merged into phylib_stubs.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20230801142824.1772134-12-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-08-02 19:11:06 -07:00
..
mscc net: phy: mscc: fix packet loss due to RGMII delays 2023-06-27 09:31:51 -07:00
adin1100.c
adin.c
amd.c
aquantia_hwmon.c net: phy: aquantia: constify pointers to hwmon_channel_info 2023-04-09 19:02:09 -07:00
aquantia_main.c net: phy: aquantia: add AQR112 and AQR412 PHY IDs 2022-11-15 20:34:27 -08:00
aquantia.h
at803x.c net: phy: at803x: add qca8081 fifo reset on the link changed 2023-07-17 10:15:14 +01:00
ax88796b.c
bcm7xxx.c net: phy: bcm7xxx: Add EPHY entry for 74165 2023-07-17 07:39:04 +01:00
bcm63xx.c
bcm87xx.c
bcm54140.c net: phy: bcm54140: constify pointers to hwmon_channel_info 2023-04-09 19:02:09 -07:00
bcm84881.c
bcm-cygnus.c
bcm-phy-lib.c net: phy: broadcom: Add support for setting LED brightness 2023-06-09 10:38:43 +01:00
bcm-phy-lib.h net: phy: broadcom: Add support for setting LED brightness 2023-06-09 10:38:43 +01:00
bcm-phy-ptp.c
broadcom.c net: phy: broadcom: drop brcm_phy_setbits() and use phy_set_bits() instead 2023-06-24 15:05:40 -07:00
cicada.c
cortina.c
davicom.c
dp83tc811.c
dp83td510.c net: phy: dp83td510: fix kernel stall during netboot in DP83TD510E PHY driver 2023-06-22 19:43:55 -07:00
dp83640_reg.h
dp83640.c
dp83822.c net: phy: dp83822: Fix null pointer access on DP83825/DP83826 devices 2023-01-28 00:23:58 -08:00
dp83848.c
dp83867.c Revert "net: phy: dp83867: perform soft reset and retain established link" 2023-06-20 20:20:22 -07:00
dp83869.c net: phy: dp83869: support mii mode when rgmii strap cfg is used 2023-05-09 11:57:53 +02:00
et1011c.c
fixed_phy.c
icplus.c
intel-xway.c
Kconfig net: phy: nxp-c45-tja11xx: add TJA1120 support 2023-08-01 21:06:25 -07:00
linkmode.c
lxt.c
Makefile net: phy: provide phylib stubs for hardware timestamping operations 2023-08-02 19:11:06 -07:00
marvell10g.c net: phy: marvell10g: fix 88x3310 power up 2023-07-23 11:47:07 +01:00
marvell-88q2xxx.c net: phy: marvell-88q2xxx: add driver for the Marvell 88Q2110 PHY 2023-07-20 12:24:06 +02:00
marvell-88x2222.c net: phy/pcs: Explicitly include correct DT includes 2023-07-26 21:55:37 -07:00
marvell.c net: phy: marvell: Fix inconsistent indenting in led_blink_set 2023-04-24 19:01:47 -07:00
mdio_bus.c net: mdio_bus: validate "addr" for mdiobus_is_registered_device() 2023-07-25 20:07:57 -07:00
mdio_device.c net: mdio: fix unbalanced fwnode reference count in mdio_device_release() 2022-12-06 12:50:00 +01:00
mdio_devres.c net: mdio: fix owner field for mdio buses registered using device-tree 2023-03-19 10:48:35 +00:00
mdio-boardinfo.c
mdio-boardinfo.h
mdio-open-alliance.h drivers/net/phy: add helpers to get/set PLCA configuration 2023-01-11 08:35:02 +00:00
mediatek-ge-soc.c net: phy/pcs: Explicitly include correct DT includes 2023-07-26 21:55:37 -07:00
mediatek-ge.c net: phy: add driver for MediaTek SoC built-in GE PHYs 2023-06-12 11:55:04 +01:00
meson-gxl.c net: phy: meson-gxl: enable edpd tunable support for G12A internal PHY 2023-04-04 18:56:01 -07:00
micrel.c net: micrel: Change to receive timestamp in the frame for lan8841 2023-06-21 15:05:46 +01:00
microchip_t1.c net: phy: microchip: run phy initialization during each link update 2023-01-23 22:34:19 -08:00
microchip_t1s.c net: phy: microchip_t1s: add support for Microchip LAN865x Rev.B0 PHYs 2023-05-30 11:49:55 +02:00
microchip.c net: lan78xx: fix accessing the LAN7800's internal phy specific registers from the MAC driver 2023-03-02 22:21:07 -08:00
mii_timestamper.c
motorcomm.c net: phy: motorcomm: Add pad drive strength cfg support 2023-07-24 10:36:45 +01:00
mxl-gpy.c net: phy: mxl-gpy: extend interrupt fix to all impacted variants 2023-06-01 09:59:36 -07:00
national.c
ncn26000.c drivers/net/phy: add driver for the onsemi NCN26000 10BASE-T1S PHY 2023-01-11 08:35:03 +00:00
nxp-c45-tja11xx.c net: phy: nxp-c45-tja11xx: reset PCS if the link goes down 2023-08-01 21:06:26 -07:00
nxp-cbtx.c net: phy: add basic driver for NXP CBTX PHY 2023-04-21 20:04:09 -07:00
nxp-tja11xx.c net: phy: nxp-tja11xx: constify pointers to hwmon_channel_info 2023-04-09 19:02:09 -07:00
phy_device.c net: phy: provide phylib stubs for hardware timestamping operations 2023-08-02 19:11:06 -07:00
phy_led_triggers.c
phy-c45.c net: phy: c45: detect the BASE-T1 speed from the ability register 2023-07-20 12:24:06 +02:00
phy-core.c drivers/net/phy: add the link modes for the 10BASE-T1S Ethernet PHY 2023-01-11 08:35:02 +00:00
phy.c net: phy: provide phylib stubs for hardware timestamping operations 2023-08-02 19:11:06 -07:00
phylink.c net: phylink: explicitly invalidate link_state members in mac_config 2023-07-25 15:02:03 +02:00
qsemi.c
realtek.c net: phy: realtek: Disable clock on suspend 2023-06-07 09:52:24 +01:00
rockchip.c
sfp-bus.c net: sfp: add support for setting signalling rate 2023-05-18 19:52:31 -07:00
sfp.c net: sfp: add support for HXSX-ATRI-1 copper SFP+ module 2023-05-23 20:34:22 -07:00
sfp.h net: sfp: add support for setting signalling rate 2023-05-18 19:52:31 -07:00
smsc.c net: phy: smsc: add WoL support to LAN8740/LAN8742 PHYs 2023-07-26 21:24:40 -07:00
spi_ks8995.c net: phy: ks8995: drop of_match_ptr for ID table 2023-03-15 08:11:02 +00:00
ste10Xp.c
stubs.c net: phy: provide phylib stubs for hardware timestamping operations 2023-08-02 19:11:06 -07:00
swphy.c
swphy.h
teranetics.c
uPD60620.c
vitesse.c
xilinx_gmii2rgmii.c net: phy: xgmiitorgmii: Fix refcount leak in xgmiitorgmii_probe 2022-12-30 07:46:10 +00:00