Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp3294245imm; Fri, 25 May 2018 03:14:40 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrshIvIK7DtemlzO4uJTjyjPqrl3h6wXzgbkkYtU0F9FPnl3XuvxJ9vwrCTHfXoaV4XL9MO X-Received: by 2002:a62:859a:: with SMTP id m26-v6mr1877371pfk.247.1527243280144; Fri, 25 May 2018 03:14:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527243280; cv=none; d=google.com; s=arc-20160816; b=jut31VIWRTtsc4VqSazW6EZ9Tz/vPJZaBZpt/YoNkqOkzMYc0trUz4QK8wBYwo6MUY EGFwUvWTFs7t00JpIcwI9FaRmKnspdbe+4hMLjSJqjsa7RfhIVbFoeK/gJ8JSlldzLJR DpfZxGTVU0mkX+ZwVbamzmE6LH4sKDWbZwfM1yENENFtVdkRcqmQ4cyV7axaQ407AKAx unSkhXcSjg56/X4DyR6GwuTm6fXNV/8ebLCbAJKwJjK3fxd4VtaYj8N4hsHFFHXygyi8 H+oRGoaHzsPhiuSITTnDKQgfLDDUCIvuhTYGjP9+0K94bsZ3ktzry2DhHvtcgVPy0P3B xqFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=Z+f2vtx1gehbLezjQ80IUZO9lABZLaxcsWmpxODoKxE=; b=TtHc8+H+U/OADBdIx7NujD8ijk7MneY0562tHH7d8U5tbf0x9nmxORP5Un+WIeB1hi z2mUtHOx1DDxSdh7K+TnVeh4vpZaD72j8aQmSUB/03ISpk7BnjkOSl4zMa058tvXp2fY +vBkcYqp5dgys18/2XdAiDz9uy+lWJhRXXwT6unWDYeclbMqHT2eRLd8HNgKKEYagGqH PPBP9q4qqScwPQHMR5ey5nj4Bdjbdx3InjsaGr+7yfZxcvg272+wzyKMXvbWJxN22Xtv hZKOganPW2fC5D6wLGKsRuuFtgfA6kyiNSWQiCpDkrNpD/2vbeAfz7R28AU4O8ETaaIO tAlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kresin-me.20150623.gappssmtp.com header.s=20150623 header.b=nuB6Am9G; 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 w22-v6si22946904plq.196.2018.05.25.03.14.24; Fri, 25 May 2018 03:14:40 -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=@kresin-me.20150623.gappssmtp.com header.s=20150623 header.b=nuB6Am9G; 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 S936079AbeEYKNE (ORCPT + 99 others); Fri, 25 May 2018 06:13:04 -0400 Received: from mail-ot0-f194.google.com ([74.125.82.194]:44936 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936026AbeEYKNC (ORCPT ); Fri, 25 May 2018 06:13:02 -0400 Received: by mail-ot0-f194.google.com with SMTP id g7-v6so5454576otj.11 for ; Fri, 25 May 2018 03:13:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kresin-me.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Z+f2vtx1gehbLezjQ80IUZO9lABZLaxcsWmpxODoKxE=; b=nuB6Am9G3sqkWXnfyRs2jVCeJd7OVvRQCIqJkOWcvC+J3LnNZL8Hy+iHAsYNpLldMb qpuaVTuvTVjspxwHHP/42QZVeagI/awviTXsB2p0SN4FUvGEkvBpUVvTMdtIIByRqjAy 8/MTa3jQG2Eie0IygM7XGV1kEJvWX/h3NNcmkUeLZFoq/x/Fci8S76oViRd2RjbDKIYP WVdTnyOjVzn2nKvdw0KLp38TAi6gzXobF/DasnYbgSHMVuS/eWm9fH3zoOglC2mGmlWf Y8UHBRH4aoyZJS+sT7lk0C4oF1/W/PSDhSU+KfuglS+M7aPQ9mk33ZJs/PFlJLgc1O5R TAkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Z+f2vtx1gehbLezjQ80IUZO9lABZLaxcsWmpxODoKxE=; b=BFWxG3lcKq7+myEKd9xp+VvouSVnlToRlKKAHsf27N4swchzwt8+cjYiIuoE6oayZu BxJydBOd99KqhLN+TSFC0r3esTJnci3g694zWkJ2B4+UnsrIS8zLSk2d3MXhZCXBSk9d 8J6uMQCWNPV4n/33ARgdYo09jKZQvUwNuDHc8Cae049OpL9pnVKhsRhpCWi1psvnMTI6 afTeARvYIz5v57En6/HmnZzozQIRMk3amhZp2OmkQy449Uy0DjEidAV9/5Dq2ewPF7RT Y6X7cVO0hvp51+hT2A2eg4RsJGM5N+rUMbk08+qJnIAElhg0clSuvuNVOFGS1KsEy+7u O/rA== X-Gm-Message-State: ALKqPwdR4eq+KZ/dnLEKDAVO7e6WNN8MR3YsnRY2L3Cmf2Tu738TvH74 lnlS9IikaMxZ5yfbvNWoClKlY7d5 X-Received: by 2002:a9d:49a8:: with SMTP id g40-v6mr1149024otf.223.1527243181698; Fri, 25 May 2018 03:13:01 -0700 (PDT) Received: from mail-ot0-f178.google.com (mail-ot0-f178.google.com. [74.125.82.178]) by smtp.gmail.com with ESMTPSA id o9-v6sm19566092otd.18.2018.05.25.03.13.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 May 2018 03:13:00 -0700 (PDT) Received: by mail-ot0-f178.google.com with SMTP id i5-v6so5478703otf.1 for ; Fri, 25 May 2018 03:13:00 -0700 (PDT) X-Received: by 2002:a9d:2184:: with SMTP id s4-v6mr1017884otb.237.1527243180225; Fri, 25 May 2018 03:13:00 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:4081:0:0:0:0:0 with HTTP; Fri, 25 May 2018 03:12:39 -0700 (PDT) X-Originating-IP: [193.151.80.5] In-Reply-To: <20180524120733.GA24269@jamesdev> References: <1523176203-18926-1-git-send-email-dev@kresin.me> <20180521163932.GA12779@jamesdev> <20180524120733.GA24269@jamesdev> From: Mathias Kresin Date: Fri, 25 May 2018 13:12:39 +0300 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] MIPS: lantiq: gphy: Drop reboot/remove reset asserts To: James Hogan Cc: John Crispin , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Martin Blumenstingl , hauke@hauke-m.de, stable@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-05-24 15:07 GMT+03:00 James Hogan : > 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 le= t >> > some bootloader fail to initialise the GPHYs. The bootloader don't >> > expect the GPHYs in reset, as they aren't during power on. >> > >> > 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. >> > >> > Fixes: 126534141b45 ("MIPS: lantiq: Add a GPHY driver which uses the R= CU syscon-mfd") >> > Cc: stable@vger.kernel.org # 4.14+ >> > Signed-off-by: Mathias Kresin >> >> 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 *pd= ev) > > 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? Yes the patch is tested. It is committed to OpenWrt on top of 4.14 since a while. It is as simple as I didn't noticed the warnings. Thanks a lot for fixing the warnings Mathias