Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5729614pxv; Wed, 21 Jul 2021 12:28:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0OHJbZWgq0497/Jzjknp8510V7Z2osArdl2Eji4GTrlCj5KyEkm/c8dd3MuBe6b03tJr5 X-Received: by 2002:a05:6638:218:: with SMTP id e24mr32734420jaq.38.1626895725695; Wed, 21 Jul 2021 12:28:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626895725; cv=none; d=google.com; s=arc-20160816; b=VewADmA6Savi+ueBe/dLkcA8970lt2OLIH8uF/pCixA3Gt5g5ZSQuJQbA7T5JULZMx 3r6qO5LwsUQuzj+tKAZtYxITePGffEglp1IZKV8wvE7k9vM3kTZVWS4NELqewot7DIp0 xMPOMptz3JI3G0IfxuQKAFGLtsgciq0n4eNbvIG3D9z/+W8PVY9jOBy1vUrV4rQkplVr 1IuIibd0O4P+5YPFkHmDpeEbgT1ZuJjiOGKgWK87y0TAbmsmWrWgUVDan1N7LzjtPL4E aMQb6IM9OfZ9Cmhqeq8+lZiAlzc1AO/WGqubWTp5Q9+Cp7O0KRpIE5CuwZ9/B7Lrr/Md 8k6g== 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; bh=WaEaZLo99zKGArJnchsGd0Ac07YGVhjisSX1dpfpeSI=; b=qphhGwPy9oL54RhK09LiqkOqOgLsuxtEbg4bcObwqiJe8UhKSea9NBj0DKi1sqsvnr MLtPm7icas8SLVOBYD4DG2RX2hBUtqQ5J1EueM845adS+PFo0KDusQ6Tkq1WEzw/n7hy CKuvb2tkP2HvKt4mVLvhK+zVEbEnPD6KYidSlmS9FkYujDZt220PlT9EqqGSt0adfjsi pjKeGMqqANUdc3h3L/bdKno+2xgwn1KCXKGkrv+GURAD9TNeG7dNksmrA4sQkKUGqdVD bUIyhLAREoQHEusX5F4JLhwBu8G/2/WHCFMDgHzz3Q/GoLJaG7Nvpi+azpoIsBzFr7F9 8zZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=zX+QUfar; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w12si995264iox.55.2021.07.21.12.28.34; Wed, 21 Jul 2021 12:28:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=zX+QUfar; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239718AbhGUOYH (ORCPT + 99 others); Wed, 21 Jul 2021 10:24:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35502 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239486AbhGUOWt (ORCPT ); Wed, 21 Jul 2021 10:22:49 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C7C5C061575; Wed, 21 Jul 2021 08:03:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=WaEaZLo99zKGArJnchsGd0Ac07YGVhjisSX1dpfpeSI=; b=zX+QUfarnn/fehC1ZfWAGOfLV blrCO/XHwuqrbighF8tOpVDqHqQaNclmDccY6c3gh9J3aiX4Qt3d7Yv5sQEdBAA9KQbwenKo2TNJn hnMSrRuDKQpotqEUtXVddkBDhnkupwutBzM3dmC+IP2YZe8vRtEjkvZlRfnj3i1nCpdC5bhpMwtkT nWhm+XhKfJqXKpS++Nk1/cvxfpYHooK1IYjn2vMYzLdhW1KnlTdIEe5kTIqS4TjF6K2nHi4ysXHsm y8ep21XcgiayhhxaFYu8vlVRJbz+fe1zl/ZlK2OWOl+NnqyqR0M72TNvAPThzKPIFNT1uwtIiSMuY dhGvwHwVg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:46432) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m6DkV-0007tl-8J; Wed, 21 Jul 2021 16:03:03 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1m6DkS-0008ND-OM; Wed, 21 Jul 2021 16:03:00 +0100 Date: Wed, 21 Jul 2021 16:03:00 +0100 From: "Russell King (Oracle)" To: Arnd Bergmann Cc: Andrew Lunn , Heiner Kallweit , Arnd Bergmann , "David S. Miller" , Jakub Kicinski , David Bauer , Michael Walle , Ioana Ciornei , Ansuel Smith , Fabio Estevam , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: phy: at803x: fix at803x_match_phy_id mismatch Message-ID: <20210721150300.GA22278@shell.armlinux.org.uk> References: <20210721150141.1737124-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210721150141.1737124-1-arnd@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King (Oracle) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Patch already sent by Vladimir, and just applied. On Wed, Jul 21, 2021 at 05:01:28PM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > There are two conflicting patches in net-next, one removed > the at803x_get_features() function and the other added another > user: > > drivers/net/phy/at803x.c: In function 'at803x_get_features': > drivers/net/phy/at803x.c:706:14: error: implicit declaration of function 'at803x_match_phy_id' [-Werror=implicit-function-declaration] > > Change the new caller over to an open-coded comparison as well. > > Fixes: 8887ca5474bd ("net: phy: at803x: simplify custom phy id matching") > Fixes: b856150c8098 ("net: phy: at803x: mask 1000 Base-X link mode") > Signed-off-by: Arnd Bergmann > --- > drivers/net/phy/at803x.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c > index 0790ffcd3db6..bdac087058b2 100644 > --- a/drivers/net/phy/at803x.c > +++ b/drivers/net/phy/at803x.c > @@ -703,7 +703,7 @@ static int at803x_get_features(struct phy_device *phydev) > if (err) > return err; > > - if (!at803x_match_phy_id(phydev, ATH8031_PHY_ID)) > + if (phydev->drv->phy_id != ATH8031_PHY_ID) > return 0; > > /* AR8031/AR8033 have different status registers > -- > 2.29.2 > > -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!