lkml.org 
[lkml]   [2023]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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

\
 
 \ /
  Last update: 2023-11-20 13:59    [W:0.368 / U:1.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site