Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1957083rwo; Thu, 3 Aug 2023 02:29:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlGbsrng/nzQyST7b+K1xjEH+zcG5brBKYpPLTmqkU2mOUeZXJdkYu7SG6VWcrmo0K/Swsr2 X-Received: by 2002:a05:6a20:3953:b0:133:38cb:2b93 with SMTP id r19-20020a056a20395300b0013338cb2b93mr22595486pzg.9.1691054973675; Thu, 03 Aug 2023 02:29:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691054973; cv=none; d=google.com; s=arc-20160816; b=tT0Ad48w8LgCp894SOQRhNVq4V1zJEIkC34BgfmqfwxWq6nrkg6HbIDHJj8cWOoVrV qG9CixWZnHhej0PT9OeU2MC9i7u870XTl21gnf0pytn+slbnnicB5tYgu2pl7JsiGiga dat4QHOYbCg94r7QsgZ2+5bRYCIdVjWzE+rqHnOn1fHWr0yu6yxdDgGSrkw6O3koAOfl rxOum3SunzBQTJfR+3d2blyYT7egyRiTwmEQ3com8IW55BV3HkaYdHPdfjcAjXE2WNTX kLbTQFBxZXiL/Wg1HMucrEzT4lK9T5uQnNPK2psQOlxQd7V9L0ZRxb/PmAw7dP0slWXb 8atw== 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=YXtuZ2n5jga89rhZDLO410sBa+4jMqiuCMADBBP02zE=; fh=lmfmCH9cckLt3/lOyNrjf08WP6hecpWvaHgFEr/GOPI=; b=SMgSnFgPWqgqeAsKYdsOfZEBLHhnXoPMVYnZUOvd2B7b91+kV+x37TGKYb+0hqyAzK IvV6Vm+nFQglVXf2r0oNXwnuRGuTmQTsJAErZ2SZo1bH6NOyqh5f9HH3FU6t3obMQgjd 0W6U5dSCPFZOUZe6izmZKGfoE7u1uQa852Erny3E/acqiJb5DKaB+125UCg1evAgoLTS 26rlQatt7yyDB1463pjk+ei4z7BcuG0WIstird4XxC123E77H2upZq6yrwGXmH3nw8F+ GPM23YEWRziSAmlDILPlkgCBgtix1IIgUQMdH5xS8BMyrZ4fUo/Pc8KbboN4imk06fOr /FOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=gbcMZXB0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y36-20020a056a00182400b0066883879b57si12632754pfa.51.2023.08.03.02.29.15; Thu, 03 Aug 2023 02:29:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=gbcMZXB0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S235025AbjHCJMj (ORCPT + 99 others); Thu, 3 Aug 2023 05:12:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50534 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233308AbjHCJMH (ORCPT ); Thu, 3 Aug 2023 05:12:07 -0400 Received: from pandora.armlinux.org.uk (unknown [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 661BE30FA; Thu, 3 Aug 2023 02:11:46 -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=YXtuZ2n5jga89rhZDLO410sBa+4jMqiuCMADBBP02zE=; b=gbcMZXB0Zl7jTZAO6Xp5xKovyB sjgOMSju3pu3/9ZOXeGOAUixyobtf8qiYkuWa/CUTllmwZYvClPRDjcHoMEgk1kuA7eFgBXDBAOua YdjA1y14qsHhIFllWTMY1y6XxusNUq0OFXlgrlXejPKnFr1Yp0Tw0+s6IPYao1ruN2h6GX660Pv2z l9pmQBYSeqVXPijk1biHtNt8sAohRoIJFN68HW9Vu9JXiEohZazFppLplumRppO+SZC+MXdIh3O/i 7/HB/g3/V3D/6FnyCBKnbU99/lw+p7z1wwYMc5bSgscQQ626LRGNnBjQ7UuazsZrgPqB+Ki5ov1sB qADgm0+A==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:39958) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1qRUMr-0006dY-2x; Thu, 03 Aug 2023 10:11:37 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1qRUMq-0002my-8Q; Thu, 03 Aug 2023 10:11:36 +0100 Date: Thu, 3 Aug 2023 10:11:36 +0100 From: "Russell King (Oracle)" To: Li Yang Cc: Andrew Lunn , Heiner Kallweit , "David S . Miller" , Jakub Kicinski , David Bauer , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Viorel Suman , Wei Fang Subject: Re: [PATCH v4 1/2] net: phy: at803x: fix the wol setting functions Message-ID: References: <20230802191347.6886-1-leoyang.li@nxp.com> <20230802191347.6886-2-leoyang.li@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230802191347.6886-2-leoyang.li@nxp.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 02, 2023 at 02:13:46PM -0500, Li Yang wrote: > In commit 7beecaf7d507 ("net: phy: at803x: improve the WOL feature"), it > seems not correct to use a wol_en bit in a 1588 Control Register which is > only available on AR8031/AR8033(share the same phy_id) to determine if WoL > is enabled. Change it back to use AT803X_INTR_ENABLE_WOL for determining > the WoL status which is applicable on all chips supporting wol. Also update > the at803x_set_wol() function to only update the 1588 register on chips > having it. After this change, disabling wol at probe from commit > d7cd5e06c9dd ("net: phy: at803x: disable WOL at probe") is no longer > needed. Change it to just disable the WoL bit in 1588 register for > AR8031/AR8033 to be aligned with AT803X_INTR_ENABLE_WOL in probe. > > Fixes: 7beecaf7d507 ("net: phy: at803x: improve the WOL feature") > Signed-off-by: Li Yang > Reviewed-by: Viorel Suman > Reviewed-by: Wei Fang Reviewed-by: Russell King (Oracle) Thanks! -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!