OSDN Git Service

net: phy: broadcom: Add Broadcom PTP hooks to bcm-phy-lib
authorJonathan Lemon <jonathan.lemon@gmail.com>
Wed, 22 Jun 2022 05:04:52 +0000 (22:04 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 24 Jun 2022 03:49:02 +0000 (20:49 -0700)
commit15acf89e1286b91fc46aebf56d9334b33e5ca847
tree950fcba35c31deb5528ca2e0abdd04b8bd6303b1
parent0aeaaa8d9769393e9b76efce2bf051ae28d59ee7
net: phy: broadcom: Add Broadcom PTP hooks to bcm-phy-lib

Add 'struct bcm_ptp_private' to bcm54xx_phy_priv which points to
an optional PTP structure attached to the PHY.  This is allocated
on probe if PHY PTP support is configured, and if the driver supports
PTP for the specified PHY.

Add the bcm_ptp_probe(), bcm_ptp_config_init() and bcn_ptp_stop()
API functions to the bcm-phy library.

Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/bcm-phy-lib.h
drivers/net/phy/broadcom.c