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 X-Spam-Level: X-Spam-Status: No, score=-5.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 504F2C07E9B for ; Thu, 8 Jul 2021 01:23:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 302506197B for ; Thu, 8 Jul 2021 01:23:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230228AbhGHB0c (ORCPT ); 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