Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1898095ybl; Sat, 25 Jan 2020 11:15:53 -0800 (PST) X-Google-Smtp-Source: APXvYqx0ytXNAJWlHZpgmM4/AGfqUN/HleIL1hK3H6lGGC6rhe/oELFPnAWVQzexCvM4diKN2LKC X-Received: by 2002:aca:51c9:: with SMTP id f192mr3173587oib.10.1579979753310; Sat, 25 Jan 2020 11:15:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579979753; cv=none; d=google.com; s=arc-20160816; b=FGzb+OyjPb6YcGbXrCuo9/qyieA+yE+o502ri/VLatzV+uqidga1ytfp/39sKWXo0J 8RqjDYkMPCk9KNsiY9tfFstNS5mf17r8nnG3PLaP7FSPrOvt6ayWK4yYYziFydBswj9r EHL5vRzmGF1i5F1/tGyyjoJUCuiKdx6wALfZ65wuiz3k02ImNVpJYDfjZYf24+4dhie6 GHghbFM/P87k+snZaFlU/k9EmreICAmh7GT7fFvBsUik1gH2dg5vt9BuOtGRR1HeeEO6 O6bsoV/mjH+mHHs2iOtX8wo85LiMQednosrw26m5/GuHHCLmvG0YS8ZcZzXPsDkr/lCS FFeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3XcHSYNUM9E/Eovh6qCZ5s+Oh8ez8QfrPzGx1rJlEoI=; b=hFz8wTAoR4X/fJGcpfzoVHEvZMDtr8Go4sQWuk1X2PGylW2POOpaXdaRgOpgy5fw6u +sGUDaAqWJykImNMyliRKxwPJ4KjkjC4Zo+shu1hPFKbZTrqUmB2B6jPiER3mlaq1Jns 7Wb0ODSN5GB9AfRk9hDnvWO6/5DP99iAZ7X6liWYmmksqA0JQzvUMGGdc7mVK2Efkan7 TBDETci8kIQ9ALlt1ea6nwaIMPKfxIc8ceqEFuc54/jVSbqKj9CkU1hLzwuvy0XeEqLD 5c4odWQX26JjV+Q2D1Bcv8SFgn8IS6SitL84FurDqSCX+js9EDXbTFtjqvagW5ggbC5x W+kg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si4911893otl.74.2020.01.25.11.15.41; Sat, 25 Jan 2020 11:15:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727233AbgAYTNf (ORCPT + 99 others); Sat, 25 Jan 2020 14:13:35 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:45278 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726448AbgAYTNf (ORCPT ); Sat, 25 Jan 2020 14:13:35 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 979671C213B; Sat, 25 Jan 2020 20:13:33 +0100 (CET) Date: Sat, 25 Jan 2020 20:13:33 +0100 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Vladimir Oltean , Claudiu Manoil , Li Yang , Shawn Guo , Sasha Levin Subject: Re: [PATCH 4.19 320/639] ARM: dts: ls1021: Fix SGMII PCS link remaining down after PHY disconnect Message-ID: <20200125191333.GG14064@duo.ucw.cz> References: <20200124093047.008739095@linuxfoundation.org> <20200124093127.122646308@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eMnpOGXCMazMAbfp" Content-Disposition: inline In-Reply-To: <20200124093127.122646308@linuxfoundation.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --eMnpOGXCMazMAbfp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > [ Upstream commit c7861adbe37f576931650ad8ef805e0c47564b9a ] >=20 > Each eTSEC MAC has its own TBI (SGMII) PCS and private MDIO bus. > But due to a DTS oversight, both SGMII-compatible MACs of the LS1021 SoC > are pointing towards the same internal PCS. Therefore nobody is > controlling the internal PCS of eTSEC0. >=20 > Upon initial ndo_open, the SGMII link is ok by virtue of U-boot > initialization. But upon an ifdown/ifup sequence, the code path from > ndo_open -> init_phy -> gfar_configure_serdes does not get executed for > the PCS of eTSEC0 (and is executed twice for MAC eTSEC1). So the SGMII > link remains down for eTSEC0. On the LS1021A-TWR board, to signal this > failure condition, the PHY driver keeps printing > '803x_aneg_done: SGMII link is not ok'. >=20 > Also, it changes compatible of mdio0 to "fsl,etsec2-mdio" to match > mdio1 device. It actually changes compatible of both devices. > +++ b/arch/arm/boot/dts/ls1021a.dtsi > @@ -584,7 +584,7 @@ > }; > =20 > mdio0: mdio@2d24000 { > - compatible =3D "gianfar"; > + compatible =3D "fsl,etsec2-mdio"; > device_type =3D "mdio"; > #address-cells =3D <1>; > #size-cells =3D <0>; > @@ -592,6 +592,15 @@ > <0x0 0x2d10030 0x0 0x4>; > }; > =20 > + mdio1: mdio@2d64000 { > + compatible =3D "fsl,etsec2-mdio"; And they trigger different code in the driver: .type =3D "mdio", .compatible =3D "gianfar", .data =3D &(struct fsl_pq_mdio_data) { ... .get_tbipa =3D get_gfar_tbipa_from_mdio, }, .compatible =3D "fsl,etsec2-mdio", .data =3D &(struct fsl_pq_mdio_data) { ... .get_tbipa =3D get_etsec_tbipa, }, Are you sure that is good idea for both mainline and stable? Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --eMnpOGXCMazMAbfp Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCXiyTXQAKCRAw5/Bqldv6 8lthAJsFS4MIGcrzWmnFBIdYp4eiyOFHegCdG8BpkQDKgCgDkHc7nkBzU9L3m3M= =mao9 -----END PGP SIGNATURE----- --eMnpOGXCMazMAbfp--