Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp6043693pxv; Wed, 7 Jul 2021 18:25:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmIsiqnDo5mRv9a3fdSSgz+44T9ymjIv1hOYAlSnctEv6NL9IOksMmPcDDGYLHcyNkyDRi X-Received: by 2002:a17:906:4745:: with SMTP id j5mr7370690ejs.75.1625707535704; Wed, 07 Jul 2021 18:25:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625707535; cv=none; d=google.com; s=arc-20160816; b=TF3eeAKeurg3NMNvwS8X4G96LRhAMnzd2AAPrUdt/lB9vVQTt+WMnQzEPs9T8UNqKD keh2Z6Sywn7qfrJlhJCFPQs53IgNzKA9CJCjJlV4TULUx7Es7AT/IVQqDPfuO3im21un EEdaVVWZYACnSXhfJ2L9hawGqKbdl1R/UY/X9scJJVEB5PjGnzrz3UnWKrihcHoQfrV2 PvTwCCO6fSHRf6bTGxuJR1H+xLzSnYGs6LfGSzms33ypH2duogdMpxjvwFRHbdu2Ev8J 8u81iYck7rKO0slqScEwYdcryBrlADBgAPpIdCvY2WY4HfCQHrDrQiFqyZwpMCoXbvaR m7sA== 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=ovUhsJzbNbZZdnPqx60FWO8v2ARmfuy/fc9baIQeuvQ=; b=SurxmGl0KswghhOacDrp+dUm/zh20iCocSrFoEzMl+ylsyIvdm03Wevhp4dymxodca enbzem+PrMkjryMh1sir6lN/O/CEk707NJ+xPT23RdgaCWn1oKg+O6XBOR4xcT3zCzFK tC7NWXtYO29KjOt3k6FY018bhezlA0WpE++AzCXFGTGkpxV+x/ZE4J+vHJkhIaXk/kI1 eZY0ac9tszpbZ8A43HN1AHG6ULK0eX8TVBZgCyt/qPrw11P5FqWIgNFDDm94J9aOC3BO vgAOGHoU6/Y+D0yFeYkz+THiFHwDn2teLYk5qZMRhm300tsXyQMrd1AW7vlAYsDCCLEG FHpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="FK5R+d8/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jz26si730018ejc.747.2021.07.07.18.25.00; Wed, 07 Jul 2021 18:25:35 -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=pass header.i=@lunn.ch header.s=20171124 header.b="FK5R+d8/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230164AbhGHB0c (ORCPT + 99 others); Wed, 7 Jul 2021 21:26:32 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:45540 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230106AbhGHB0b (ORCPT ); Wed, 7 Jul 2021 21:26:31 -0400 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=ovUhsJzbNbZZdnPqx60FWO8v2ARmfuy/fc9baIQeuvQ=; b=FK5R+d8/0Kzl4UC+pa0aQzgHP1 w3ygLiLtAUth8bAwswh0DnmdwIqLeGsyfKNN6nPe9ciJGcP63IeyK40hR4cOi4o2AO9z5Hvk28eCW QEMCF55lZ0fdlonx+iZmuAwaCPGRcVDAvkIcAkSLknV4E8nssj09HZjX1kxTVIAl+OZI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1m1IlN-00CaFe-P7; Thu, 08 Jul 2021 03:23:37 +0200 Date: Thu, 8 Jul 2021 03:23:37 +0200 From: Andrew Lunn To: mohammad.athari.ismail@intel.com Cc: Heiner Kallweit , "David S . Miller" , Russell King , Jakub Kicinski , Florian Fainelli , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net] net: phy: reconfigure PHY WOL in resume if WOL option still enabled Message-ID: References: <20210708004253.6863-1-mohammad.athari.ismail@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210708004253.6863-1-mohammad.athari.ismail@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 08, 2021 at 08:42:53AM +0800, mohammad.athari.ismail@intel.com wrote: > From: Mohammad Athari Bin Ismail > > When the PHY wakes up from suspend through WOL event, there is a need to > reconfigure the WOL if the WOL option still enabled. The main operation > is to clear the WOL event status. So that, subsequent WOL event can be > triggered properly. > > This fix is needed especially for the PHY that operates in PHY_POLL mode > where there is no handler (such as interrupt handler) available to clear > the WOL event status. I still think this architecture is wrong. The interrupt pin is wired to the PMIC. Can the PMIC be modelled as an interrupt controller? That would allow the interrupt to be handled as normal, and would mean you don't need polling, and you don't need this hack. Andrew