Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2DFFD41A81 for ; Wed, 3 Jul 2024 19:10:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720033811; cv=none; b=T8w7vqOFN242ZpmYLwpW5H0So211ihPAarUcrAtVNoeL+9YUc9NvyU6a054YFIDrONuNwXS4k2xrmDxE4bzlTIynlbyvyEmyV2m5F4VlZGYU1FH2BDKbkhIIhyVLyhKqct2BbRO0a1OZVyZormQQSZM2Td0AfLPQFmIo+cO9lr4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720033811; c=relaxed/simple; bh=3Jtth2Z5iq6FFWQ1ERqR7jOh95JUVLVdwQrrMDib2+Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PXOr5Mr327HQOZjkhtQkU/ZqdIHCfhpu2et1nZHyBStFfztbiMbxXj6Pd10YsOgps1TXcwWdkCmS2yC6jMbJ7Cj5CAD9ibU4ecFBBsMu85Lb1qardVMZllk1X0IJ2utAY1bLij4IZgNoRVaVePx5o1oN44As31SGi2679zDDtAg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=FKG/whSO; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="FKG/whSO" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=scCnbiYENQc9N93uIbyPuit3RJTpk8ZUKMyyqdGf5ms=; b=FKG/whSOTl+O+T/mrp03Nh+AS7 tC89xCvA2YvQs1+tpI+ylUgIkoE5fQCsgclf8VR25hPaNYCBzWzRjtP6xCx0dxztYYXIBkagp18KG 8/2jBRhUAz4l98IS9ObtAJIzAJwAXCEWGQr0XN4LpBpFeL7+gBaKkiXJYIzS1ZD2z0Lc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1sP5MX-001lGB-AS; Wed, 03 Jul 2024 21:09:53 +0200 Date: Wed, 3 Jul 2024 21:09:53 +0200 From: Andrew Lunn To: "Russell King (Oracle)" Cc: Serge Semin , si.yanteng@linux.dev, Huacai Chen , Yanteng Si , hkallweit1@gmail.com, peppe.cavallaro@st.com, alexandre.torgue@foss.st.com, joabreu@synopsys.com, Jose.Abreu@synopsys.com, guyinggang@loongson.cn, netdev@vger.kernel.org, chris.chenfeiyang@gmail.com Subject: Re: [PATCH net-next v13 12/15] net: stmmac: Fixed failure to set network speed to 1000. Message-ID: References: <6ba14d835ff12f479eeced585b9336c1e6219d54@linux.dev> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: > Rather than erroring out, I think it may be better to just adopt > the Marvell solution to this problem to give consistent behaviour > across all PHYs. Yes, expand phy_config_aneg() to look for this condition and enable autoneg. But should we disable it when the condition is reverted? The user swaps to 100Mbps forced? What about other speeds? Is this limited to 1G? Since we have devices without auto-neg for 2500BaseX i assume it is not an issue there. Andrew