Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp2200622rwb; Sat, 29 Jul 2023 01:50:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlHORBM5tUXL4BOG9fiif5IbjnHFVxzTZk5C/k4oGTGpCHZd4/sqmEZ3eZuUoMbwJgrwpIUZ X-Received: by 2002:a17:906:749a:b0:992:61c5:dab0 with SMTP id e26-20020a170906749a00b0099261c5dab0mr1666316ejl.62.1690620613070; Sat, 29 Jul 2023 01:50:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690620613; cv=none; d=google.com; s=arc-20160816; b=lADAUoDUP193lOvFqOJ/hthOyhyXxHA7bdT9HcrV00YcYiKrxkPW/HUScuO/Gi6rfT DVvoDwUI5fJ5lxQmhj4/LEqbPmMjOzY7f5pKWacPgXKYgbzWz3o/ud1VfzDI67EJvl0C aO21G4lmilLy3GXodU11yCBBoEsDsGbMjoGJJHP/TRqhJQ9lrUCwiQ76DQuQcNEaERKI CCFxlDmJBczs8xIR/wuPSyp/2zny8VkdUK3WdLKlmifOm9MSYkpEukyS9xQHwTkd3A3P Z1wn0WSWQA9EXmGSxjuFfTHn4kRSQV+yN7S3955ccD8JtOZndXTbtCAHkKv7LkgQcqLx gNqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=hnM3KPTgwUyw7re4llKJUXi4wpOURF3zaN76tKm3DBI=; fh=++HQ2TXOF/zhOrYzQCwzJXeYI/JQDgVOAZpRbAhGhZs=; b=BXCIwfbdu9otM8dRt71QNA6gr7GzKnP2XPJhs4IanYjK+WVpMJ3wwGfUQinshxNBiD wJ6miMzOnSfk5VrYVvdP5T4SiZSOar6DKWIHLBpn7qlb8Eg+G4eojBrF6J/qobCgEQGW xSz5hGo/3pJqdSlBfwqHZgnJDYiZoMBEoyaGgFBUeb5lX0Z/tIEkIr3VZt+E42FQC2I+ aWsDOxlvfQ+gtDrJVjXQcasQlIVbDiIzY8KXYpwqzVjYCkac9GLIVbZ/M3eNeAdpuAmn UIWsED5iE3BZeKYEDDF7Zs8NsLhEozhOv6LniNuobaZf8x8qhTX4yis+E8A/eo9f+6TC yJJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=wTmRvJIS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id au28-20020a170907093c00b0099bcc4d1c97si4153834ejc.745.2023.07.29.01.49.47; Sat, 29 Jul 2023 01:50:13 -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=pass header.i=@lunn.ch header.s=20171124 header.b=wTmRvJIS; 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=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231134AbjG2IOU (ORCPT + 99 others); Sat, 29 Jul 2023 04:14:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230025AbjG2IOT (ORCPT ); Sat, 29 Jul 2023 04:14:19 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BBA53C35; Sat, 29 Jul 2023 01:14:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=hnM3KPTgwUyw7re4llKJUXi4wpOURF3zaN76tKm3DBI=; b=wTmRvJISRGyt1eGFPTM2/jYd7l olEqp61vf4azmDbhysOU2kTXTcMmUQXPWjcIBXJPyzmEaWYvuB4mToL9I2g055iKcrC70J1ZEpAnw ASJdJSjb6BZQ2Q/Erq79WXtlOmGANNnG8pKzf698rxJdTNgrnj/rKELxjU870iBX8YE4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qPf5S-002a40-JR; Sat, 29 Jul 2023 10:14:06 +0200 Date: Sat, 29 Jul 2023 10:14:06 +0200 From: Andrew Lunn To: Li Yang Cc: Heiner Kallweit , Russell King , "David S . Miller" , Jakub Kicinski , David Bauer , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Viorel Suman , Wei Fang Subject: Re: [PATCH v3 1/2] net: phy: at803x: fix the wol setting functions Message-ID: <8071d8c5-1da3-47a0-9da2-a64ee80db6e5@lunn.ch> References: <20230728215320.31801-1-leoyang.li@nxp.com> <20230728215320.31801-2-leoyang.li@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230728215320.31801-2-leoyang.li@nxp.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Fri, Jul 28, 2023 at 04:53:19PM -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. Do chips which do not have the 1588 register not have WoL? Or WoL hardware is always enabled, but you still need to enable the interrupt. Have you tested on a range of PHY? It might be better to split this patch up a bit. If it causes regressions, having smaller patches can make it easier to find which change broken it. Andrew