[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <a4dd8cb4-f662-4dc7-8311-712c64de6f21@lunn.ch>
Date: Tue, 14 Nov 2023 20:14:45 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Romain Gantois <romain.gantois@...tlin.com>
Cc: davem@...emloft.net, Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Jakub Kicinski <kuba@...nel.org>,
Eric Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org, thomas.petazzoni@...tlin.com,
Florian Fainelli <f.fainelli@...il.com>,
Heiner Kallweit <hkallweit1@...il.com>,
Russell King <linux@...linux.org.uk>,
linux-arm-kernel@...ts.infradead.org,
Vladimir Oltean <vladimir.oltean@....com>,
Luka Perkov <luka.perkov@...tura.hr>,
Robert Marko <robert.marko@...tura.hr>,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <andersson@...nel.org>,
Konrad Dybcio <konrad.dybcio@...ainline.org>
Subject: Re: [PATCH net-next v3 6/8] net: phy: add calibration callbacks to
phy_driver
> +static inline
> +int phy_start_calibration(struct phy_device *phydev)
> +{
> + if (!(phydev->drv &&
> + phydev->drv->calibration_start &&
> + phydev->drv->calibration_stop))
> + return -EOPNOTSUPP;
> +
> + return phydev->drv->calibration_start(phydev);
> +}
> +
> +static inline
> +int phy_stop_calibration(struct phy_device *phydev)
> +{
> + if (!(phydev->drv &&
> + phydev->drv->calibration_stop))
> + return -EOPNOTSUPP;
> +
> + return phydev->drv->calibration_stop(phydev);
> +}
> +
What is the locking model?
Andrew
Powered by blists - more mailing lists