Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp307861pxv; Thu, 8 Jul 2021 03:03:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTGoIF9bY97cHIV1OMOggEfBuFBGJ/6U0kj036V5EVtBGZCD8lcGBs/xs1lJc24nqqX4Q7 X-Received: by 2002:a92:8750:: with SMTP id d16mr4613072ilm.281.1625738618633; Thu, 08 Jul 2021 03:03:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1625738618; cv=pass; d=google.com; s=arc-20160816; b=fYSgLVKrXWAy+V7d7+lY2GRR915kx6qdPCVK+iJ+km5cUsWuWW1dhtuOOxvqf5cMXH Pz16zo6RxaFp8FvfCY3mpb/xV+pA17LTwv98ssj66MRfUhk7EQ+GVn/edRBmUoRQyLST c5CdhfyYi5Udc5yYmcpUpirc6vy6xdGCCA6g2/8KAOa9DpiwEmWySNa4CuNyUA9eZOTR Hkd+pprfUr7GzD6509Lzqjh1fskYFU3tELeS6OYavMjbM0GtAPCOTTdDJ/JvdBzVf15r J31g8yo+VfXMVjzmZ1om3ouC/pHyiXtydXYd2zhT2Ow/2hLuODarIoX6XXg8XI5SJnN3 nrcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :dlp-reaction:dlp-product:dlp-version:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=NLIENqxLiUJT/FqnP3bC67JyEm8C9/ZPXb9rL+Ax/FA=; b=GTvnLM0qc2D5gF1+H6PkBnvYoyXMijvdSxGjHD/fb7hpQ2G9/UJ9Wxw4BuwhqjcgIG vcnz7K7ISFtmhYjk9NdDyZkJwcmCF4Wyy2vS0aRWmMjtZy5n1y57rm+lpeQEjANmGOao LTuSAuEWkN83QQ8LbVUHhaFrGhKP6LU/PZxIRRRQ/GFJ6Qe0GtuwLOPKXmxCeKTJ7vfl 2MATqO2wFMYzo4pvqCNmXTWXoii/71ixwKZSPpdJFf+hApOzagSaYtA29bblwcXQzywc KyNPpOYVp+QjsSGKQf9HIjPGsgkCVGqCMoTN2x/SLPH2mRop05Gn/Pfd/Jb5IDdyXopc g3jg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=At50V4ne; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k5si1992323ilr.142.2021.07.08.03.03.26; Thu, 08 Jul 2021 03:03:38 -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=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=At50V4ne; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231417AbhGHKF3 (ORCPT + 99 others); Thu, 8 Jul 2021 06:05:29 -0400 Received: from mga04.intel.com ([192.55.52.120]:61203 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231324AbhGHKF2 (ORCPT ); Thu, 8 Jul 2021 06:05:28 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10038"; a="207654909" X-IronPort-AV: E=Sophos;i="5.84,222,1620716400"; d="scan'208";a="207654909" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2021 03:02:47 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.84,222,1620716400"; d="scan'208";a="410855562" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orsmga006.jf.intel.com with ESMTP; 08 Jul 2021 03:02:46 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Thu, 8 Jul 2021 03:02:46 -0700 Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Thu, 8 Jul 2021 03:02:46 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.170) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.4; Thu, 8 Jul 2021 03:02:46 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=S/DbyNN3oSqCHpEOQY+CoZmHIUBj1BeUR8kosAA0nsMTMjoQjhN5qsIXRe2EQibBfwf6hjy9HnowtY6NHqCmZpv7Q4SpnvnVBM+NKY9u9ifAnNgYx+oDtMD+5SIc4Yexr7BfmZvVBReZt//Oy6490IG04awObqG4rbwOd2gD4W7zVNqggCgCdXkxeXUv2jDfTWah7/St4wl6H3wtZksKw/9c34+XQEZ2P4YltMHhQLw1+tTRZPzFWLhlxWuU0i4+MIrqydcjAH/4DdTig6vklfDWdgCrJ14FEWuKQ0t4rNrXsB1oYuQNcfO29b6b6kTqbQUaurnBpUHhr43KAm6xoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NLIENqxLiUJT/FqnP3bC67JyEm8C9/ZPXb9rL+Ax/FA=; b=ea6l4Xvsg5k2gcRA8Sl+SwKPOZgEluYOE6BZU4t/K2+L8B+Hv3UKS6CxRleEZvC71SDs4GLlD07UlI4BA8rC5vOGm3F8kqaTVOmssLDo3CHDiilphsG2rM7nf6Zqi9TYfl8HmNgpCgShfG7kO1dsQGIHW8t4r7yRns2IMEyiRCXfCYh5ILrqrvnns544T9/urDF/Eaz+iCYDm2H79WyC/UnSfzRTK394kbhxCEZ9hHHiZk6wtD4eVcjxIMVNLQ0XoRarEdNSX0X5LKuvdaUuuy8OxsRxLDxrDYOzjOxQoRS7AESqTlwwE/GZkkfyUUelZrqDw76Q8PzhJNVkzBGkaw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NLIENqxLiUJT/FqnP3bC67JyEm8C9/ZPXb9rL+Ax/FA=; b=At50V4neUpE7K40lEqBFBi9KBQUD3KXultLEDJbpLt2GBxaYflH5s2jXzx3xusJlTMBi/Dz2LxYt9W2k3jXL5jQicTS74eMPsm2ta0Lbp/tjK8Kx3xFizh+2agvc6vjaYnBnxZ2XrUdXEVwLN5jfpERaDnMz70jkv5SuaH5JKLc= Received: from CO1PR11MB4771.namprd11.prod.outlook.com (2603:10b6:303:9f::9) by MWHPR11MB1856.namprd11.prod.outlook.com (2603:10b6:300:10f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.21; Thu, 8 Jul 2021 10:02:42 +0000 Received: from CO1PR11MB4771.namprd11.prod.outlook.com ([fe80::cd48:e076:4def:2290]) by CO1PR11MB4771.namprd11.prod.outlook.com ([fe80::cd48:e076:4def:2290%5]) with mapi id 15.20.4308.021; Thu, 8 Jul 2021 10:02:42 +0000 From: "Ismail, Mohammad Athari" To: Andrew Lunn 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 Thread-Topic: [PATCH net] net: phy: reconfigure PHY WOL in resume if WOL option still enabled Thread-Index: AQHXc5JVSuHoO6yBxk2FsVeJf8muoas4SJuAgACEr2A= Date: Thu, 8 Jul 2021 10:02:42 +0000 Message-ID: References: <20210708004253.6863-1-mohammad.athari.ismail@intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-version: 11.5.1.3 dlp-product: dlpe-windows dlp-reaction: no-action authentication-results: lunn.ch; dkim=none (message not signed) header.d=none;lunn.ch; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6f06638a-8259-4f17-288a-08d941f786ee x-ms-traffictypediagnostic: MWHPR11MB1856: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:7691; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: TUVuM1HMWKNtIt4Fh7Qum34eIqBNmaEcaY5JaUMWWtxK7aAMhH/BI7fmzMmd4vdPDPF28GDJM0H5Pam4gdGvwy/52Ysq+RBHkFI1QRsDheaZGGrxu2iANh9TD/nAoPtCn3jXLSfHeCzcGR5DeCYJaFOYrXH66vOrFHWjNyprKv6NOC5hvzf0wXK/xYUDklWa6f22N5LdElB632xCY9kT7RfSPn4AOMyvrsidCsXmiSxjfxQzpRMKbCYKMO+gvaalrSbxNfnSbmMm0UiwMDyAyJjZyXsy59K3Mt+aZEWwnBxXE+Y8S05v7WfhB0+K5WNZt1b05qiSzfYLc2FLG/isHfy8NSwp+ntMkziVn54vCsabo3kQaOqfW0fHuf+pu/U4CCZ1VRq0v3npj+xhDiO+XFxnCfBqAL53UALIffoV88l/NHu1eP1zaJyVrPtXf54hdbMzoDYlxIfXao3s79ZsERQPKY+XYQz7+DqbBdXtAEAsuKNdthK3uPAihoToMAOHTBTFmQtFMCk3E23v7vhg0VbKkC/Ow/DZT67Gmk/SObQQutKDAC5mV5SznHPBsBGWV44YNrPAz+evrFu94GzCcSmg1xIiImJsGvUaeVK0EyuDSpelyrAQeKfkzPVQ98sng0vNx6RIVygV+SmXZ4HEQQ== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO1PR11MB4771.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(136003)(366004)(39860400002)(376002)(396003)(346002)(7696005)(38100700002)(5660300002)(122000001)(8936002)(33656002)(66946007)(55016002)(52536014)(186003)(26005)(8676002)(66476007)(76116006)(9686003)(6506007)(53546011)(64756008)(6916009)(2906002)(66446008)(55236004)(316002)(71200400001)(54906003)(86362001)(83380400001)(66556008)(4326008)(478600001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?YEW+Gvwc94VYYcqxjLpzWTWLsuO1MCq1VrYKibQ9d76yr9fgUgOILfdVo9?= =?iso-8859-1?Q?aEjqn/9mw8q19k28HhH8OuIkL+0c5NnuezNUJADCEIC4aJbka/ncgJS6Oo?= =?iso-8859-1?Q?XuQ8yAw7XiiiLaL6WyPWiSnKUZ2T626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?yDVkBiW6pSeojSIkmQkjp70geFXsMJWcAHqRd+pY/MOFsswIrm4KHEvSVW?= =?iso-8859-1?Q?awoGf7cW2U8kDtUsJ/eATy2DRztIL6cgszh6i8r2DKUGhqb5dzZLT/TOTz?= =?iso-8859-1?Q?AHoOW8Y4oYxcVV7c59LtuuisghaZdSOnL14gkoIkpVOOzyfkAXVLEo+paf?= =?iso-8859-1?Q?YjElvrA7yyp4lVJjlHavfGNz7iWbi00kxxmjO1pfaKEvkAlDw1W49ZoS4F?= =?iso-8859-1?Q?nEkukb1nQKK9xNxTIzP+2a8jusKvmf1cQdpYutjQlYrhCJt7yDDzDwIk/Q?= =?iso-8859-1?Q?9c/qOCSzYj6LUbjKTasiVjwBXNkMLbazovH59RlFDbpuYQ6mmNj9esE5yk?= =?iso-8859-1?Q?fX/Rai07Jd?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB4771.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f06638a-8259-4f17-288a-08d941f786ee X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2021 10:02:42.4575 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: SHSDJeua4X+YbYumGbgwhoa2grpeBPLrWV9bdQPemQGsByUNpbJ4DGQlObEBHwW/m0Tetmwn1SBFA8BaKkbon/eAJuN/vFFfjwKTDJ4fJthDBfl6WZiT9eonvOt+h9Cn X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR11MB1856 X-OriginatorOrg: intel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Andrew Lunn > Sent: Thursday, July 8, 2021 9:24 AM > To: Ismail, Mohammad Athari > Cc: Heiner Kallweit ; David S . Miller > ; Russell King ; Jakub Kicins= ki > ; 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 >=20 > On Thu, Jul 08, 2021 at 08:42:53AM +0800, mohammad.athari.ismail@intel.co= m > 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. >=20 > I still think this architecture is wrong. >=20 > The interrupt pin is wired to the PMIC. Can the PMIC be modelled as an in= terrupt > controller? That would allow the interrupt to be handled as normal, and w= ould > mean you don't need polling, and you don't need this hack. Hi Andrew, In our platform, the PHY interrupt pin is not connected to Host CPU. So, th= e CPU couldn`t service the PHY interrupt.=A0 The PHY interrupt pin is conne= cted to a power management controller (PMC) as a HW wake up signal. The PMC= itself couldn't act as interrupt controller to service the PHY interrupt. During WOL event, the WOL signal is sent to PMC through the PHY interrupt p= in to wake up the PMC. Then, the PMC will wake up the Host CPU and the whol= e system. Therefore, for our platform, PHY_POLL mode is chosen in PHY driver. -Athari- >=20 > Andrew