Re: [PATCH v4 1/2] phy: add new phy_notify_state() api

From: Peter Griffin

Date: Wed Nov 12 2025 - 11:17:18 EST


Hi Russell,

On Wed, 12 Nov 2025 at 16:14, Russell King (Oracle)
<linux@xxxxxxxxxxxxxxx> wrote:
>
> On Wed, Nov 12, 2025 at 04:05:58PM +0000, Peter Griffin wrote:
> > +int phy_notify_state(struct phy *phy, union phy_notify state)
> ...
> > @@ -255,6 +266,7 @@ int phy_reset(struct phy *phy);
> > int phy_calibrate(struct phy *phy);
> > int phy_notify_connect(struct phy *phy, int port);
> > int phy_notify_disconnect(struct phy *phy, int port);
> > +int phy_notify_state(struct phy *phy, union phy_notify state);
> > static inline int phy_get_bus_width(struct phy *phy)
> > {
> > return phy->attrs.bus_width;
> > @@ -412,6 +424,13 @@ static inline int phy_notify_disconnect(struct phy *phy, int index)
> > return -ENOSYS;
> > }
> >
> > +static inline int phy_notify_phystate(struct phy *phy, union phy_notify state)
>
> Should this be phy_notify_state() ?

Yes, that's a good point! Let me send a new version fixing that.

Peter