[PATCH v1] phy: avoid adjust_link call if link remains down

Oleksij Rempel o.rempel at pengutronix.de
Tue May 28 23:54:57 PDT 2024


On Wed, May 29, 2024 at 08:24:21AM +0200, Sascha Hauer wrote:
> > +	if (!phydev->link && phydev->link == oldlink)
> > +		return 0;
> 
> I've changed the check to (!phydev->link && !oldlink) which is a bit
> easier to read.

Thank you! :)

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list