Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1563299rdb; Thu, 7 Dec 2023 02:48:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IFEPJr366rIopqP/sonxK18jHgoZUQLig1/tE6wixc5RWeeNxhGyDeYZhyiXagdb0CV24Cc X-Received: by 2002:a05:6808:1183:b0:3b9:cccb:a4e9 with SMTP id j3-20020a056808118300b003b9cccba4e9mr2650467oil.95.1701946081443; Thu, 07 Dec 2023 02:48:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701946081; cv=none; d=google.com; s=arc-20160816; b=KH8MO6QMXeN2/LWweyLmrGN7BeGUfwrHL7endQVdGfexT797SlpVDRMBV6ykszQmpn yWj9ed0W6zqXlLK2XZgEk3dKb5kHsEcxJ4amsp9pwWwgKVB8ao8jdqAk9ygYEQBuIUsr lFgzH9pvZYpGrR8v3G8Jh3EPK8dRil6QFDODRTB14r5yrE8J1gYcVOONWmHDCxXoYg+M cMU1S7+TLa2m0IFQZI6bJhL2S69UX2+zcPxks4xajiZpC6jKsr/Qas2sxqjyWISqEG9Z 74uuevb4C8itmT2zU6Dbcnw1zT1m5uGpy9uSOMKaMwakc2Ie6KGwt0Ylv5FmXeu0MpBS baxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ktSp3moRHDdSXNk4zatlXahnF9on1Y5nS6HFXFMtcVg=; fh=dv3vv/yU/8C0s+y9eqKrihWHPSUs2sagaUXqLTF17lg=; b=xjDrK19S7NZvuF3o7/fCf2oWXxfIBUJv0l8Oxs9rL1SWFu6r/+4JZI7Ia9SiLuCLws 2sH1HOTSrmMomNmmsDTanbDsfYE+/fRSeL2pwNO1Lck1L7QhaisGCE8iSTXbzeCk+rdp a3dQO4uq93UdksH0w5oSPaa7OSaYZyuuK7c6Vz/3nlo+nVBLEdTiAw1IXTArK6FoCpHz 5JBsaHI7zncuwoUg+ofW+Me46Z284ET1TV4IZUOoC7FW9Jag+GLX22iwMfHJxqhqNNmp 0kmVmfEaJRqoRRLp39UskUbrNdaDCCcewZGG87jZ+BURsW/ygJ3Zped9icx+landdcjJ pbkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Na4rlRqc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id f6-20020a631f06000000b005c1b58a321asi1011051pgf.411.2023.12.07.02.48.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 02:48:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=Na4rlRqc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 3985C8047549; Thu, 7 Dec 2023 02:47:58 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231372AbjLGKrm (ORCPT + 99 others); Thu, 7 Dec 2023 05:47:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230055AbjLGKrl (ORCPT ); Thu, 7 Dec 2023 05:47:41 -0500 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 241D7D54; Thu, 7 Dec 2023 02:47:45 -0800 (PST) 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=ktSp3moRHDdSXNk4zatlXahnF9on1Y5nS6HFXFMtcVg=; b=Na4rlRqcXs2nWrU581A6dAgX2x 07SymGbQ/HN6yFJA/oNvRSNsAvs7N8uJ5RiS3r7O53wPI/bHYwG8AqY0F/wEAiy6lAd6ycLS49unL 1tBIm0Q+BIvG3qGhATdNJfMyaXDEuBeVAtZHgmjYZRQ+K3YKF8s/Ph3yEc+Sxpdc5147mtAu6lk// gK3vmB51KulGre9ujF0l1WUioSof18HF2jtI6vDA7iiSQI8mx8F8bdjV7FjnEdMcQk8H5dQRqGOd5 ZjUU6UtXVuZL6h0uDfANcu1VG5zbRnGvqUEvVzXg2y4o54AQYD/o4KZM6WXvGCNSdyZeVRUfTdISv BvpB6JDg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:60806) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rBBur-0000yU-18; Thu, 07 Dec 2023 10:47:37 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rBBus-0003fg-C7; Thu, 07 Dec 2023 10:47:38 +0000 Date: Thu, 7 Dec 2023 10:47:38 +0000 From: "Russell King (Oracle)" To: Christian Marangi Cc: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net-next PATCH v3 02/13] net: phy: at803x: move disable WOL to specific at8031 probe Message-ID: References: <20231206235728.6985-1-ansuelsmth@gmail.com> <20231206235728.6985-3-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231206235728.6985-3-ansuelsmth@gmail.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Thu, 07 Dec 2023 02:47:58 -0800 (PST) On Thu, Dec 07, 2023 at 12:57:17AM +0100, Christian Marangi wrote: > Move the WOL disable call to specific at8031 probe to make at803x_probe > more generic and drop extra check for PHY ID. > > Keep the same previous behaviour by first calling at803x_probe and then > disabling WOL. > > Signed-off-by: Christian Marangi > Reviewed-by: Andrew Lunn > --- > drivers/net/phy/at803x.c | 29 +++++++++++++++++++---------- > 1 file changed, 19 insertions(+), 10 deletions(-) > > diff --git a/drivers/net/phy/at803x.c b/drivers/net/phy/at803x.c > index ef203b0807e5..85302d96d133 100644 > --- a/drivers/net/phy/at803x.c > +++ b/drivers/net/phy/at803x.c > @@ -886,15 +886,6 @@ static int at803x_probe(struct phy_device *phydev) > priv->is_fiber = true; > break; > } > - > - /* Disable WoL in 1588 register which is enabled > - * by default > - */ > - ret = phy_modify_mmd(phydev, MDIO_MMD_PCS, > - AT803X_PHY_MMD3_WOL_CTRL, > - AT803X_WOL_EN, 0); > - if (ret) > - return ret; > } > > return 0; > @@ -1591,6 +1582,24 @@ static int at803x_cable_test_start(struct phy_device *phydev) > return 0; > } > > +static int at8031_probe(struct phy_device *phydev) > +{ > + int ret; > + > + ret = at803x_probe(phydev); > + if (ret) > + return ret; > + > + /* Disable WoL in 1588 register which is enabled > + * by default > + */ > + ret = phy_modify_mmd(phydev, MDIO_MMD_PCS, > + AT803X_PHY_MMD3_WOL_CTRL, > + AT803X_WOL_EN, 0); > + > + return ret; return phy_modify_mmd(...) ? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!