]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3f8ef4d79c826c25a2a623b501993677426d3087
tree950fcba35c31deb5528ca2e0abdd04b8bd6303b1
parentc0421f6be80935b03fa7922ae7bb2c569f14adb8
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