Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp2053498imm; Thu, 24 May 2018 05:08:44 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo2a6QiONGDTm1gRHzXQ1aSUqa4KSl0dUmFwSsS5dmVajZdZ6RRDcG4h3JWtMNRWJkoHcFJ X-Received: by 2002:a17:902:a702:: with SMTP id w2-v6mr7029324plq.8.1527163724160; Thu, 24 May 2018 05:08:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527163724; cv=none; d=google.com; s=arc-20160816; b=e5u6GTWdKyekI2gGdZCv7p/qvO7UUx4aqIgyccEVwx8dRhpz8Q2hjcbpeSkI9eYyQ+ 59x2MBGqc2Hc/yWS82IVpaCDStitYGSKvpEGVk1XNa0SMiC+ou6Lmes++blnsHZgKqbB 6Mt6+swhXhVtnE4rNWsneaLHH4Y5HBqY+pQdnFaQxeM2v/nKnSA5BylrSXUEIzLk0roV mV3ZyOPMQ3VvoIRRWWWCsksNgUKKyaZiOdS7AemtVk+U0Vp/FE5Sql2SmBZJlXZ42QYc lb6T+Un9JFBH4pGy1GtvJbu0SLR7J0ksBeg3lOOACkR2+WMi40FZMOmL2zilqTK4vnFw aRbg== 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:dkim-signature:arc-authentication-results; bh=MYEEWmNwjXT//WMpjpbgGbNnKeq/nzZp781VhKoiyaA=; b=TuJ2/9qcK5nj19ZmpcpzkxfHqGyPi+jJUH1rEs/VU998Wk2SOgLWkzNT+sy376dtQJ 5hb73S+v7OVaALcpjMjhoD/LHLsIEtf2hNbrTG1Tbsq21SHybAUpIuaRK7Oj8e4UFJ1t DNy0JBzZQK9x1rUQItVMG4CUbpX+glQ1rfhamG40pScXezeiNPVsprJ9ZvOcuKADwyI5 00ZDSrdayCtfNDGRdcFf7rDkFC7Db4si0rPQ7EqK60BxE3tAqyHR5xn5+Ucnqzn9Kysf QtWiZO1MrY9Y8/PfTWFJ31/x40RW1OdGrfB1KNo3o7AbOcfTiSO4RweOmCGllym7tNT3 lhvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tfEQcXl8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q4-v6si20646481plb.312.2018.05.24.05.08.29; Thu, 24 May 2018 05:08:44 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=default header.b=tfEQcXl8; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S969695AbeEXMHp (ORCPT + 99 others); Thu, 24 May 2018 08:07:45 -0400 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 Received: from jamesdev (jahogan.plus.com [212.159.75.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9A2722086E; Thu, 24 May 2018 12:07:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527163659; bh=oFQMv20n5zhKMN13AJMgHbdP+ap2VysQ2JjPgbAAIZI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tfEQcXl89aGDGXnYF9MDoIETZlfJzeOOGQMLoeVwkvk/eoQx8V37VRMiV0vgcMzTD 4KrfSMdE8/OIGKW9uCZNP06Zvy9IL2rALwCfLRT93EE6afWg7kX+yQSLtfd1O8NHLS bkM/dDqESHWJbaJl9cGLPL/0/1l1C25VaQcOitzU= 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> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --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--