From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 926E0C04A6A for ; Thu, 3 Aug 2023 09:12:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235052AbjHCJMk (ORCPT ); Thu, 3 Aug 2023 05:12:40 -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) 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!