[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cf3bd081-25ed-8747-89d0-24ff5eab1870@gmail.com>
Date: Sun, 24 Apr 2022 16:35:45 -0700
From: Florian Fainelli <f.fainelli@...il.com>
To: Jonathan Lemon <jonathan.lemon@...il.com>,
bcm-kernel-feedback-list@...adcom.com, andrew@...n.ch,
hkallweit1@...il.com, linux@...linux.org.uk,
richardcochran@...il.com
Cc: netdev@...r.kernel.org, kernel-team@...com
Subject: Re: [PATCH net-next v1 2/4] net: phy: broadcom: Add Broadcom PTP
hooks to bcm-phy-lib
On 4/23/2022 7:23 PM, Jonathan Lemon wrote:
> Add the public bcm_ptp_probe() and bcm_ptp_config_init() functions
> to the bcm-phy library. The PTP functions are contained in a separate
> file for clarity, and also to simplify the PTP clock dependencies.
>
> Signed-off-by: Jonathan Lemon <jonathan.lemon@...il.com>
> ---
> drivers/net/phy/bcm-phy-lib.c | 13 +++++++++++++
> drivers/net/phy/bcm-phy-lib.h | 3 +++
> 2 files changed, 16 insertions(+)
>
> diff --git a/drivers/net/phy/bcm-phy-lib.c b/drivers/net/phy/bcm-phy-lib.c
> index 287cccf8f7f4..b9d2d1d48402 100644
> --- a/drivers/net/phy/bcm-phy-lib.c
> +++ b/drivers/net/phy/bcm-phy-lib.c
> @@ -816,6 +816,19 @@ int bcm_phy_cable_test_get_status_rdb(struct phy_device *phydev,
> }
> EXPORT_SYMBOL_GPL(bcm_phy_cable_test_get_status_rdb);
>
> +#if !IS_ENABLED(CONFIG_BCM_NET_PHYPTP)
> +struct bcm_ptp_private *bcm_ptp_probe(struct phy_device *phydev)
> +{
> + return NULL;
> +}
> +EXPORT_SYMBOL_GPL(bcm_ptp_probe);
> +
> +void bcm_ptp_config_init(struct phy_device *phydev)
> +{
> +}
> +EXPORT_SYMBOL_GPL(bcm_ptp_config_init);
> +#endif
I would place those in bcm-phy-lib.h instead of in bcm-phy-lib.c and
have them be static inline stubs.
--
Florian
Powered by blists - more mailing lists