]> 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)
commite92463c944e46526ad7b2ac65ad9898dc4c424a9
tree950fcba35c31deb5528ca2e0abdd04b8bd6303b1
parent03652c1d160a7e9c8ecae560e954ad9be6a5ebc0
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