Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp5094921pxv; Tue, 6 Jul 2021 17:39:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyMIpdRwN8iiRUlOPtXht+yqaOCEyU6T9CVDhFXFzEquXaC/prj263nX6Tm6xLTRFrPDqdA X-Received: by 2002:a05:6638:1301:: with SMTP id r1mr19124234jad.29.1625618340711; Tue, 06 Jul 2021 17:39:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1625618340; cv=pass; d=google.com; s=arc-20160816; b=I+nSuSvcJSJZyJZnD+SU7B3byvMq16CNLSZLghRHwhDyhb+0vjGWpOD/bgvnr4Jqaj jBQ2LXdE8hN5FiWECZafX5C5pFlKFHcA72USE+ns4ZguKWnwDYo90rzhUfplJ1o1c3F5 N352Oni7zm5WX+M87ty2tplM1D5bdgMplzah8tdCuE0afzXFvJUrm3OoRw+r3hKqthv3 vla+Nld3BywWjXOOYCvMn0VsbGEH3iQYWcla0PyopZ4c/Qd7e8/nIj3EbqB+9XlRullo +ab3LxOeqv4CyhFNItXZe9QtrfewTtLsZI4mr33L7WYK1yBALwgPqxfkRF+wCx98+4oq kzZQ== 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=eQkQx2NU1DHt90yUXoMUU4PheFeNdjgGGs/SN38mz5o=; b=M+UEMceVmyvPLpKCPN42KBrdU2qcClsVI3MesQEVpnWBXvue4i9msNPsgmcs9/HpAV LIiVscW41W1HuyQTya+83qNo/6rAfzgHlhW3PFwTBsmVlRhdMeazBxM6HDhxraD2hyzM AeRzdGGbPeQaEDj05O2OVVIm5fakZDeE04gzpgKb0Vf3NCKJDlEP42WHFdFwRsaRlkj+ UcIRK71TRV7WE9TDVzgYfkHinDhSJ67dTQjLhn5OHT3+VtL9Zeo0Vn4kOD+fWxqDnd6D GevKoDiyxkMZUrvS7uWUNXILuaGGH5XoB5jyFpSoTpu1MmwUNZevvzwgsqMqjzQGcVDA DERw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=nLGjfywl; 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 u12si20987693ilm.99.2021.07.06.17.38.47; Tue, 06 Jul 2021 17:39:00 -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=nLGjfywl; 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 S229998AbhGGAjb (ORCPT + 99 others); Tue, 6 Jul 2021 20:39:31 -0400 Received: from mga07.intel.com ([134.134.136.100]:32919 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229834AbhGGAjb (ORCPT ); Tue, 6 Jul 2021 20:39:31 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10037"; a="273063365" X-IronPort-AV: E=Sophos;i="5.83,330,1616482800"; d="scan'208";a="273063365" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Jul 2021 17:36:32 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.83,330,1616482800"; d="scan'208";a="457261667" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga008.jf.intel.com with ESMTP; 06 Jul 2021 17:36:32 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Tue, 6 Jul 2021 17:36:32 -0700 Received: from fmsmsx607.amr.corp.intel.com (10.18.126.87) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10; Tue, 6 Jul 2021 17:36:31 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx607.amr.corp.intel.com (10.18.126.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.10 via Frontend Transport; Tue, 6 Jul 2021 17:36:31 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.107) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.4; Tue, 6 Jul 2021 17:36:31 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kKD5ARQu6Xqu0D31tCAG9tAI+YQr9NY5BWdM8SPwo0sqhi4K7rq/tFJjnGnJryHNRuonoRRdzq4E4kN8QZXkyHz5HuI72cx9jmP42gxOH2gAvLzZI1oUwHZ7XcRyrkzJ/8oqSJmzGqs8w499y4Z2HJ8ARUCAF/xg5vOZIdEW2A3EIOBwKdA0rQyOxp16yii3xgnrshLoYxJBz9FNvceK6P2RqVNU9dYONaYde7DuF0WoXK36hqiITjhrXDrxPhf5g5bb/tF9qY1/PPbobOqycDjQYhzhs0O+CKA6/TNRhJ4wMLJ0pTa3m+LtjYxc1r39k3arE7ibocqmKqJygPzm8g== 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=eQkQx2NU1DHt90yUXoMUU4PheFeNdjgGGs/SN38mz5o=; b=Q+IF76J2U9BKQNIwfCa8CwzlP4FXvjgOyqrpmigXfCI2eMYY9xcYNqgZY4ntQ/w4NWWLNxwG6uVNdMfEcMPDSrFvLVqbJTRLap/EGmhf+HtRIx2BhuJMaPM1orc6zYmIgjW0o4MhGFIGfGAxDR4Zv3UrFgW1GunclAkg6zYoPAeupnq/zZYOe8/s8/lQoT3PnTauw1eBE7qOKpcJfTuLpdAGfzB+ExFVpMVQu9/Hjaeo1VpeRp1vVVTHP8bvy/EJK3SKyqM7ueCq6dGPoWex/bK6996gk7Da+gVSCdI+R2AGShKotsbQBWCVKyqtqWDKuC9pj/zut60F3f6vBvaG+A== 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=eQkQx2NU1DHt90yUXoMUU4PheFeNdjgGGs/SN38mz5o=; b=nLGjfywll2cvVXYGsDRk4oKnseNYwYbrK3xh2AZK1UoGkw/sqxGtKSVR0dBmKzQUQqYqrA2LoPF17VTwxJ8pEwnswvRadgPvOBfBWgihGv1aRMSPyVmh69Nzdbq1g84W4csvsuIqWcIxI/YJohvAhokTmyftu/win9BuFs+dLuU= Received: from CO1PR11MB4771.namprd11.prod.outlook.com (2603:10b6:303:9f::9) by MWHPR1101MB2143.namprd11.prod.outlook.com (2603:10b6:301:4f::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.23; Wed, 7 Jul 2021 00:36:30 +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.4287.033; Wed, 7 Jul 2021 00:36:30 +0000 From: "Ismail, Mohammad Athari" To: Andrew Lunn , "Ling, Pei Lee" CC: Heiner Kallweit , Russell King , "davem@davemloft.net" , "Jakub Kicinski" , Ioana Ciornei , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Voon, Weifeng" , "vee.khee.wong@linux.intel.com" , "Wong, Vee Khee" Subject: RE: [PATCH net] net: phy: skip disabling interrupt when WOL is enabled in shutdown Thread-Topic: [PATCH net] net: phy: skip disabling interrupt when WOL is enabled in shutdown Thread-Index: AQHXckWstMlfSA9QTkGVkYpePnnwK6s17SOAgAC7sPA= Date: Wed, 7 Jul 2021 00:36:30 +0000 Message-ID: References: <20210706090209.1897027-1-pei.lee.ling@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: 341dbfb9-5f68-4f42-51b5-08d940df439c x-ms-traffictypediagnostic: MWHPR1101MB2143: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: AzUV4dXkSkXsU8TCGKa/JXSPwf8ZOX7j3NZKqjWaF8YAfkKdZ+7fR3/kGY8TImxDAO7KfWlshbZmQGw2NcixaluY/ESSvZFdJv6JkgVlnfCteP9zHhZvOp4dfLyDYrGu7ej0sUbX03iQWbJOQBGa3m2ywSkqhqf8c2kzhagf1FKyEEW+RRfLj147lhYsqrO/Ap5XVhLtU1K8SGoBdZcixDMdSwDX9szVf2uFnVpIj6nfV5j/fxRX0/y9LyDD7o+HiXVuwakpQ7jho+zoVTa0uhjCvXDNaqdOcP0cKxCWpgpCWMbxurPo7iH4JUUnesxXNzYuqUu29p39KgjkQl3qJ68wvgGXUNBB0l58Jf3Wlj6GF6Nt+BcrL91h6cXd27XrDcQsg3lJygy2BbWC5f5M7x8v+2BxHQFTcUPP3QuLhEh33cxJATJ7YM5DW4dYoicsKL+IjeXiscBLsU1R/ZNplBFL4G50uek8Y8woWUiGGg54bpxVxbJHIaQxLwACa8VBS0z5ySXHWeFJoM6pRXinjpN2ugsz6h0kvTu7b6AeFZFYgyRopd+bbMa8gBb9qxFRziNBJPJ3i0xB9SLz7vseyfphcMFWhOd165alGUiVxMRTrbvRvduxQ/gllIIdhQ2kTi+wUr2bCRqcA/tp6c1PQg== 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:(366004)(346002)(136003)(396003)(376002)(39860400002)(8676002)(4326008)(6636002)(316002)(7696005)(71200400001)(86362001)(8936002)(83380400001)(110136005)(54906003)(66946007)(122000001)(26005)(9686003)(66556008)(55236004)(66476007)(76116006)(53546011)(186003)(478600001)(52536014)(5660300002)(64756008)(33656002)(66446008)(6506007)(55016002)(2906002)(38100700002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messaged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?us-ascii?Q?TCJpFo04opOx3owTtuWlglT16/8gNkCfu72G0yan1clFDNyJypzVc6/kJKHs?= =?us-ascii?Q?jGvg8A0xySREq18LcII+KxPD75tDL5loI30YuHu0HPwP61/aaQZwhDRmfHmR?= =?us-ascii?Q?EdKE8BX3bl7RXRPPRLdW9l5noYtnHQJyNB9m/eCB1dRBmeIPYTjiC+f8LYeF?= =?us-ascii?Q?JjiNXSsrDcRLCWrqfYlJNt1cQausyQzliV8TkN64feJ7g3s8c5+ra0ku00qN?= =?us-ascii?Q?NDBttndPNWqYKOQrF4H/NAGWflt9aC9fDpkxi7FNy2pgRnZw8UGcJdolJUN+?= =?us-ascii?Q?m5sFQkBicvgUDpG9yLNsDAI2FhXj2lV6kz+eJPS0CoOLmXgf6hOi6DHMzYj4?= =?us-ascii?Q?LfTzC0+61eYPcBsYh0rmKBC+PssMq7TPtw5+/OlydfoPz1rP7JD1Ak+jSUG3?= =?us-ascii?Q?frMivI8IY+UaxOf8dt2/91pqOGNJQB5r0lIvKWvVoC1BaUnTettlvlm7dksq?= =?us-ascii?Q?Z5u6brG+nMxwqr3/OMWR+iTy?= Content-Type: text/plain; charset="us-ascii" 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: 341dbfb9-5f68-4f42-51b5-08d940df439c X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Jul 2021 00:36:30.4982 (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: 57LUs96ODrYJ7FbOaTHjCyl6cywveU/rI6F03qXn5fqTyowase+uBx0bthtHfAuup4byBo3jHW933E/dAlb4T/UgpOAqzckXnd7Lw+clULgpn6OR3IVB5q3ypu4ibN+1 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1101MB2143 X-OriginatorOrg: intel.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Andrew Lunn > Sent: Tuesday, July 6, 2021 9:14 PM > To: Ling, Pei Lee > Cc: Heiner Kallweit ; Russell King > ; davem@davemloft.net; Jakub Kicinski > ; Ioana Ciornei ; > netdev@vger.kernel.org; linux-kernel@vger.kernel.org; Voon, Weifeng > ; vee.khee.wong@linux.intel.com; Wong, Vee Khee > ; Ismail, Mohammad Athari > > Subject: Re: [PATCH net] net: phy: skip disabling interrupt when WOL is e= nabled > in shutdown >=20 > On Tue, Jul 06, 2021 at 05:02:09PM +0800, Ling Pei Lee wrote: > > From: Mohammad Athari Bin Ismail > > > > PHY WOL requires WOL interrupt event to trigger the WOL signal in > > order to wake up the system. Hence, the PHY driver should not disable > > the interrupt during shutdown if PHY WOL is enabled. >=20 > If the device is being used to wake the system up, why is it being shutdo= wn? >=20 Hi Andrew, When the platform goes to S5 state (ex: shutdown -h now), regardless PHY WO= L is enabled or not, phy_shutdown() is called. So, for the platform that su= pport WOL from S5, we need to make sure the PHY still can trigger WOL event= . Disabling the interrupt through phy_disable_interrupts() in phy_shutdown(= ) will disable WOL interrupt as well and cause the PHY WOL not able to trig= ger. -Athari- > Andrew