From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.99]:39314 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966620AbeEXMHj (ORCPT ); Thu, 24 May 2018 08:07:39 -0400 Date: Thu, 24 May 2018 13:07:34 +0100 From: James Hogan To: Mathias Kresin Cc: john@phrozen.org, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, martin.blumenstingl@googlemail.com, hauke@hauke-m.de, stable@vger.kernel.org Subject: Re: [PATCH] MIPS: lantiq: gphy: Drop reboot/remove reset asserts Message-ID: <20180524120733.GA24269@jamesdev> References: <1523176203-18926-1-git-send-email-dev@kresin.me> <20180521163932.GA12779@jamesdev> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BOKacYhQ+x31HxR3" Content-Disposition: inline In-Reply-To: <20180521163932.GA12779@jamesdev> Sender: stable-owner@vger.kernel.org List-ID: --BOKacYhQ+x31HxR3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, May 21, 2018 at 05:39:32PM +0100, James Hogan wrote: > On Sun, Apr 08, 2018 at 10:30:03AM +0200, Mathias Kresin wrote: > > While doing a global software reset, these bits are not cleared and let > > some bootloader fail to initialise the GPHYs. The bootloader don't > > expect the GPHYs in reset, as they aren't during power on. > >=20 > > The asserts were a workaround for a wrong syscon-reboot mask. With a > > mask set which includes the GPHY resets, these resets aren't required > > any more. > >=20 > > Fixes: 126534141b45 ("MIPS: lantiq: Add a GPHY driver which uses the RC= U syscon-mfd") > > Cc: stable@vger.kernel.org # 4.14+ > > Signed-off-by: Mathias Kresin >=20 > Applied for 4.17. Thanks for the acks/reviews folk! drivers/soc/lantiq/gphy.c: In function =E2=80=98xway_gphy_remove=E2=80=99: drivers/soc/lantiq/gphy.c:198:6: warning: unused variable =E2=80=98ret=E2= =80=99 [-Wunused-variable] int ret; ^~~ drivers/soc/lantiq/gphy.c:196:17: warning: unused variable =E2=80=98dev=E2= =80=99 [-Wunused-variable] struct device *dev =3D &pdev->dev; ^~~ Easily fixed, I can drop those two lines: diff --git a/drivers/soc/lantiq/gphy.c b/drivers/soc/lantiq/gphy.c index 8c31ae750987..feeb17cebc25 100644 --- a/drivers/soc/lantiq/gphy.c +++ b/drivers/soc/lantiq/gphy.c @@ -193,9 +193,7 @@ static int xway_gphy_probe(struct platform_device *pdev) static int xway_gphy_remove(struct platform_device *pdev) { - struct device *dev =3D &pdev->dev; struct xway_gphy_priv *priv =3D platform_get_drvdata(pdev); - int ret; iowrite32be(0, priv->membase); However it does raise the question, it sounds like a fix, but was this patch tested and the warning just overlooked? Cheers James --BOKacYhQ+x31HxR3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQS7lRNBWUYtqfDOVL41zuSGKxAj8gUCWwarBAAKCRA1zuSGKxAj 8jdfAQDtnf7symakcWD4AS3WzH47QVijebMTfKH00E6gisIwBgD+LwAIaWipyGiS eMh14y1Gq1rNYFesjlI+TGlrdRrzhw4= =b82W -----END PGP SIGNATURE----- --BOKacYhQ+x31HxR3--