Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp421457pxb; Tue, 19 Oct 2021 05:47:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyselYkoFpKZb2CDYZF+hMKYl2xJnLGb/ypAFEnJrirKqHTgnTWyKCIlBx3WWeex+75cxwr X-Received: by 2002:a17:906:1fc1:: with SMTP id e1mr36132784ejt.515.1634647637706; Tue, 19 Oct 2021 05:47:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634647637; cv=none; d=google.com; s=arc-20160816; b=y5sOsXMslMQ/BxrUnJ96YlXGQdH+VJ+03WnShoaSvH4g6iMbyul/Jx3QtJXXgiiS3Z szCWxdwgMAlSEAL0IyCLSAL0oc6tyPHZ+j7ZPpHjZnQO+HHVwtFQfx9uCl6T9QPtkZ+c EjqJ9GN+uMVhZQKz7B/jTttUPAVmHOMPEzo9h0xwRhwnVK4YkF+xS/7BE5NFwJiPTvMv iJETLoLRw9uyozQaerAJlpn9le3afHKpyf/XH5MR/Hs630lBxFb3m8PP6GkAjAUFrTXH ZRwf3tltdc01ou6ncRagsOSd14VAlrbbfF3XD2Z5aHSyIoeKvp+qn1dI9sn4+V/NK2yy wLMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:sender:dkim-signature; bh=EAEzTgD3dlRVMChpTEmeUHjEeqs0R/ykyjpNvM1MaPo=; b=VZQ4/NTmKFgGyQeVLLNlVxOONF+4naC4btNpbBP7V+2HrpxjrMhcVagSMd/Cddqd+e HpOHK/pBzpMdpA59qzaFjzYNQ+JhENOQpCjpeZaCGSzm+tvsDpVUwcRSgLzqqAB0R1Uf 0E8vsfgJPpZcWWuaFyEyzKmo0Qmae4QE3dffMm/f2ZxF2uiOvQsE0l6JzOEN7RJL7xGF c7WNIVFsgvfyDT0FoixkBoxoNgqjSI1XBJNnThcOHlfBk3icwP4z3AYz40E98sk2nkoo VoT6cGNObpTyhuM5Pf62SUuQQOWNFR2gr7NfO+IGEYBfveO1A1QpLB8QW4sFfYPDuyo+ Wiug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mg.codeaurora.org header.s=smtp header.b=ZmvX4yKo; 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=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j9si19262522edw.49.2021.10.19.05.46.53; Tue, 19 Oct 2021 05:47:17 -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=@mg.codeaurora.org header.s=smtp header.b=ZmvX4yKo; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235627AbhJSMpG (ORCPT + 99 others); Tue, 19 Oct 2021 08:45:06 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:61299 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230514AbhJSMpG (ORCPT ); Tue, 19 Oct 2021 08:45:06 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1634647373; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=EAEzTgD3dlRVMChpTEmeUHjEeqs0R/ykyjpNvM1MaPo=; b=ZmvX4yKo2ccoxPGKsyXTnxtEpqB2AlVWN8cSo9NG5W5se5CDBPmRBjBGuszIJ7oE1dwwvLEp jzW7r+IF1QJVGZEwbKyFg4Dr9wYhJ0sEmbT8PoZrX41TeAzo++zt9Ic6BgO8YOEU0IUy0UYf 3se4lgcn9EoWmsTucPMvS4IraQM= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-east-1.postgun.com with SMTP id 616ebd2eb03398c06ce26134 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 19 Oct 2021 12:42:22 GMT Sender: quic_luoj=quicinc.com@mg.codeaurora.org Received: by smtp.codeaurora.org (Postfix, from userid 1001) id CF637C43616; Tue, 19 Oct 2021 12:42:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.0 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from [10.92.1.38] (unknown [180.166.53.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: luoj) by smtp.codeaurora.org (Postfix) with ESMTPSA id 633B5C4360C; Tue, 19 Oct 2021 12:42:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.codeaurora.org 633B5C4360C Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=fail (p=none dis=none) header.from=quicinc.com Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=quicinc.com Subject: Re: [PATCH v3 03/13] net: phy: at803x: improve the WOL feature To: Andrew Lunn Cc: Luo Jie , hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, sricharan@codeaurora.org References: <20211018033333.17677-1-luoj@codeaurora.org> <20211018033333.17677-4-luoj@codeaurora.org> <0ba3022d-9879-bf85-251d-3f48b9cff93b@quicinc.com> From: Jie Luo Message-ID: <8eebd0aa-7345-7c4b-8435-067b703ad59a@quicinc.com> Date: Tue, 19 Oct 2021 20:42:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/19/2021 8:29 PM, Andrew Lunn wrote: >> Hi Andrew, >> >> when this register AT803X_INTR_STATUS bits are cleared after read, we can't >> clear only WOL interrupt here. > O.K. But you do have the value of the interrupt status register. So > you could call phy_trigger_machine(phydev) if there are any other > interrupt pending. They won't get lost that way. > > Andrew This make sense, thanks for this comment, will add it in the next patch set.