lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b8075cfa-599d-4648-8e33-68062b1a855f@lunn.ch>
Date: Fri, 15 Aug 2025 19:34:05 +0200
From: Andrew Lunn <andrew@...n.ch>
To: Daniel Golle <daniel@...rotopia.org>
Cc: Xu Liang <lxu@...linear.com>, Heiner Kallweit <hkallweit1@...il.com>,
	Russell King <linux@...linux.org.uk>,
	"David S. Miller" <davem@...emloft.net>,
	Eric Dumazet <edumazet@...gle.com>,
	Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
	netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next 2/2] net: phy: mxl-86110: add basic support for
 MxL86111 PHY

> +	/* For fiber forced mode, power down/up to re-aneg */
> +	if (modes != LINK_INBAND_DISABLE) {
> +		__phy_modify(phydev, MII_BMCR, 0, BMCR_PDOWN);
> +		usleep_range(1000, 1050);
> +		__phy_modify(phydev, MII_BMCR, BMCR_PDOWN, 0);
> +	}

Is a full power down required? To restart autoneg all you normally
need to do it set BMCR_ANRESTART. See genphy_restart_aneg().

> @@ -648,8 +928,24 @@ static struct phy_driver mxl_phy_drvs[] = {
>  		.set_wol		= mxl86110_set_wol,
>  		.led_brightness_set	= mxl86110_led_brightness_set,
>  		.led_hw_is_supported	= mxl86110_led_hw_is_supported,
> -		.led_hw_control_get     = mxl86110_led_hw_control_get,
> -		.led_hw_control_set     = mxl86110_led_hw_control_set,
> +		.led_hw_control_get	= mxl86110_led_hw_control_get,
> +		.led_hw_control_set	= mxl86110_led_hw_control_set,

That should really be in a different patch.

	Andrew

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ