Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp226948pxv; Thu, 24 Jun 2021 06:42:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWip88P/XNR88h7++wf/1/q7KgW3rwyjv7krF4jS7XXcyVF1nm4THyxF8dzwZrsgwEj7Zl X-Received: by 2002:a5d:88c4:: with SMTP id i4mr4275560iol.210.1624542127854; Thu, 24 Jun 2021 06:42:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624542127; cv=none; d=google.com; s=arc-20160816; b=y0Mn9G5MO4dLTAP1HJuVLLIXbKxmnAlUqiI6GuUdbB63J1Gui4wzO+yQumpo6131gH H5q4ckyArvEgYoNrSWAvdhnf5GKO2NkN+KxebBnnN96zeCdlgcfgigMRq7+arq4gyc3e Bx2HoqVWPjrxxkVZ94cp1n9u7rE/zSoDoruj5tTQeOTlXkk01/L2Gh8Tq2xfWcg3XcMq 2etblGaWwd4Rq5XJ0oRzXCjoa8I8/Brfyj9ZHx2Hnk04Jtp30f0XxeFFVdwCWjnG3jLL 9MfbdvI9Kz8MgUjRA34xxirLKoUPmIxuUbaqUURt2RVyJ94RQLVIj6uUH0XM1dEYRQ5x pYzg== 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=kJoNj9EV1XTA3nOzVNZZ5d15uvZW2jJVc5PSAJpiypM=; b=wajlqULJkXAISKXOxm/oJZwqlnOasJKybNjC6H3LSCjWVM18lWOTbjMYkVnhg40v5q p5NtsAupLLpVDufTcvYX20BwIxiewgqQ01YoJJmYlr44sieZBi4v76QLVrdKKjkTNxbq tL59HxFLC6JnljfTWUPEcOZbKqf+zHIJr9cX23ekNfz3waHebJHVl2HTUj9Bm0M/0s0P pk7EoiUADxhwNS6bAwYjvgV6lmVdZIdL5HBfIiq2/Y0c6yZEUkv4UwCkhA8Zsji6cAMo 9gPMv24q2J6CMrBxucqgM/dMwzbRcAotj038U+WnmsqLT+dWcwtYS3m19jEni736n0Wo EGPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=niF93v22; 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 n3si2797190ioh.98.2021.06.24.06.41.54; Thu, 24 Jun 2021 06:42:07 -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=niF93v22; 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 S231474AbhFXNnA (ORCPT + 99 others); Thu, 24 Jun 2021 09:43:00 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:53750 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229995AbhFXNnA (ORCPT ); Thu, 24 Jun 2021 09:43:00 -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=kJoNj9EV1XTA3nOzVNZZ5d15uvZW2jJVc5PSAJpiypM=; b=niF93v22kDwoh3YOc+RIXkezY3 Yfa1uVichJuoJb6DQzSf+5cCFhhk/qibdhVqv6VqWLUiozFRA40y3NLKPFyTFrmgmO7YDUZmM9mzn iE1sg6CaSuLwuIjEb+uQTwX04CAa4DVit6fNjGEx3NSdHdhnqtB5YRGNwO7HX9hT4sOg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1lwPac-00AycZ-7y; Thu, 24 Jun 2021 15:40:18 +0200 Date: Thu, 24 Jun 2021 15:40:18 +0200 From: Andrew Lunn To: "Voon, Weifeng" Cc: "Ling, Pei Lee" , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Jakub Kicinski , Maxime Coquelin , Russell King , "Ong, Boon Leong" , Wong Vee Khee , "Wong, Vee Khee" , "Tan, Tee Min" , "Sit, Michael Wei Hong" , "netdev@vger.kernel.org" , "linux-stm32@st-md-mailman.stormreply.com" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH net-next V1 3/4] net: stmmac: Reconfigure the PHY WOL settings in stmmac_resume() Message-ID: References: <20210621094536.387442-1-pei.lee.ling@intel.com> <20210621094536.387442-4-pei.lee.ling@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > No, the interrupt will not be discarded. If the PHY is in interrupt mode, the > interrupt handler will triggers and ISR will clear the WOL status bit. > The condition here is when the PHY is in polling mode, the PHY driver does not > have any other mechanism to clear the WOL interrupt status bit. > Hence, we need to go through the PHY set_wol() again. I would say you have a broken setup. If you are explicitly using the interrupt as a wakeup source, you need to be servicing the interrupt. You cannot use polled mode. Andrew