On 1/5/21 8:03 PM, Andrew Lunn wrote:
On Tue, Jan 05, 2021 at 06:53:48PM +0100, Marek Vasut wrote:
On 1/5/21 6:38 PM, Andrew Lunn wrote:
+static void smsc_link_change_notify(struct phy_device *phydev)
+{
+ struct smsc_phy_priv *priv = phydev->priv;
+
+ if (!priv->vddio)
+
On Tue, Jan 05, 2021 at 06:53:48PM +0100, Marek Vasut wrote:
> On 1/5/21 6:38 PM, Andrew Lunn wrote:
> > > +static void smsc_link_change_notify(struct phy_device *phydev)
> > > +{
> > > + struct smsc_phy_priv *priv = phydev->priv;
> > > +
> > > + if (!priv->vddio)
> > > + return;
> > > +
>
On 1/5/21 6:38 PM, Andrew Lunn wrote:
+static void smsc_link_change_notify(struct phy_device *phydev)
+{
+ struct smsc_phy_priv *priv = phydev->priv;
+
+ if (!priv->vddio)
+ return;
+
+ if (phydev->state == PHY_HALTED)
+ regulator_disable(priv->vddio)
> +static void smsc_link_change_notify(struct phy_device *phydev)
> +{
> + struct smsc_phy_priv *priv = phydev->priv;
> +
> + if (!priv->vddio)
> + return;
> +
> + if (phydev->state == PHY_HALTED)
> + regulator_disable(priv->vddio);
> +
> + if (phydev->state