Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp750842rwo; Wed, 2 Aug 2023 03:44:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlHEyj4x1fAd07uE15HI89ma2c9fsDaGat8jmxBez06Y2z2WrGXInKgZqpB+IadJZg7u+Ujb X-Received: by 2002:a17:902:d4c8:b0:1bb:b34b:73a with SMTP id o8-20020a170902d4c800b001bbb34b073amr18645364plg.25.1690973056840; Wed, 02 Aug 2023 03:44:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690973056; cv=none; d=google.com; s=arc-20160816; b=yQLf6mbmveV36C4Wu8InHNaiYlnFjKqWVxt/56obmrTLWexqkaHvgONtdFgrFq/4RA ISXgCWTsgNME+OM3V22NCXjKmzWDh9JHt3T12L7kTPj5OeMHVGhbrHGQX04b1eF85yJI gflYxzWR/9JOyo2zRANYZRLuHiYfO5L4l6bt4CaJB/zuTtos+SCi1313AP4aiLVV9ivP gnSfM2zACDn/P13kByHeu+hgkgfmJeI39XFeV/84EPBGhPoOUHWxXOBCEHGybmibrjqa jx5Q2Yq95sBM6udNjrFjX5lp+HGTG97v3/p+jOurZK65xamKacPF9jKyG4xtdaI4LprX mFFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=a5NjeYH3HnsFOY6h/fPBHbvlp/RSe0G0J/X9vljpGpA=; fh=mnkM71XEz7uQiqm5fmpPF/660U51b3L09sq2Z20nbGQ=; b=qaX77nO1T0nMjh1rtioTkVdybqpwFdasn99MJhrtfZ+ga62mxzcRDAk+yepwZ8E2C9 4XJRBoP55lho6Ez9HeuzEVyakvhaDMVUSgSc+6YE8DH1uWyvvpMYTKUTi1vO4xt1qBIT qQwt9aZJi0AjYsmpYtcXLtr5sBDx3y19gpVbqVDiaoD85ZyU6fve3BhCf2R+viaqZLzp HnTNOoqJi2Rke2Tz3Q+ptzzmXJ0ErEqYeqywNoz4rKyzm6Pui7SnrdpoWldPh23dPQfW 9YC6WNhylrXZFlZous3/hcUTw3TXqs2pSeoFNMUCmboK3LRcHxZhpPIhzGrpj5Nk/0y5 WMtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mtU59eVc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j3-20020a170903028300b001b3f6d89579si11180670plr.513.2023.08.02.03.44.01; Wed, 02 Aug 2023 03:44:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=mtU59eVc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233127AbjHBJv1 (ORCPT + 99 others); Wed, 2 Aug 2023 05:51:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232803AbjHBJvZ (ORCPT ); Wed, 2 Aug 2023 05:51:25 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B17FB212B; Wed, 2 Aug 2023 02:51:23 -0700 (PDT) Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3726xPt9002676; Wed, 2 Aug 2023 09:50:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=qcppdkim1; bh=a5NjeYH3HnsFOY6h/fPBHbvlp/RSe0G0J/X9vljpGpA=; b=mtU59eVcWaafJHOFq8n+96hhjQvsRo4v98zRJ5tg4yeNNnS//JU9qsOT5Z5w3u307uW/ fKO0VbUV0MSN0ipqxLt3xIbIkd+5def8//iYKWjsP2nNdXD2bNWpiC6AaC1bNQMyEfpX LeRcOskRQZfhRDS1AVx4jCd3k9+lDcPu5JH1T+v/EsQUK1f0xEGz7VDwpIH1oXg0k6GM zmKmYxK3E9vfwxIOy4W0tgcu6ygQCvCJLJV5Zqg8jDho7QEfoC72J/OW9gGGn2cRYOUW v/qC08/VPJqBuelyhrRAT0b+RgjocyDlgMB4sTEwxy7mv3qPSSGJMuSchM0PgUMbHeH8 3w== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3s6yq4avh9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Aug 2023 09:50:47 +0000 Received: from nalasex01c.na.qualcomm.com (nalasex01c.na.qualcomm.com [10.47.97.35]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 3729olVr013411 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 2 Aug 2023 09:50:47 GMT Received: from [10.253.73.93] (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.30; Wed, 2 Aug 2023 02:50:44 -0700 Message-ID: <5b647893-6208-e360-fea8-ba7496f6bc61@quicinc.com> Date: Wed, 2 Aug 2023 17:50:41 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Subject: Re: [PATCH v3 1/2] net: phy: at803x: fix the wol setting functions To: Paolo Abeni , Leo Li , Andrew Lunn CC: Heiner Kallweit , Russell King , "David S . Miller" , Jakub Kicinski , David Bauer , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Viorel Suman , Wei Fang References: <20230728215320.31801-1-leoyang.li@nxp.com> <20230728215320.31801-2-leoyang.li@nxp.com> <8071d8c5-1da3-47a0-9da2-a64ee80db6e5@lunn.ch> <9912df2897bed863ad541807354d49db95970668.camel@redhat.com> Content-Language: en-US From: Jie Luo In-Reply-To: <9912df2897bed863ad541807354d49db95970668.camel@redhat.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: ePQbXI9HmfjcDAASCbowBFtEqOtazpux X-Proofpoint-GUID: ePQbXI9HmfjcDAASCbowBFtEqOtazpux X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-08-02_04,2023-08-01_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 mlxscore=0 malwarescore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 phishscore=0 adultscore=0 suspectscore=0 mlxlogscore=999 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308020087 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/1/2023 5:16 PM, Paolo Abeni wrote: > On Mon, 2023-07-31 at 14:58 +0000, Leo Li wrote: >>> -----Original Message----- >>> From: Andrew Lunn >>> Sent: Saturday, July 29, 2023 3:14 AM >>> To: Leo Li >>> Cc: Heiner Kallweit ; Russell King >>> ; David S . Miller ; Jakub >>> Kicinski ; David Bauer ; >>> netdev@vger.kernel.org; linux-kernel@vger.kernel.org; Viorel Suman >>> ; Wei Fang >>> Subject: Re: [PATCH v3 1/2] net: phy: at803x: fix the wol setting functions >>> >>> On Fri, Jul 28, 2023 at 04:53:19PM -0500, Li Yang wrote: >>>> In commit 7beecaf7d507 ("net: phy: at803x: improve the WOL feature"), >>>> it seems not correct to use a wol_en bit in a 1588 Control Register >>>> which is only available on AR8031/AR8033(share the same phy_id) to >>>> determine if WoL is enabled. Change it back to use >>>> AT803X_INTR_ENABLE_WOL for determining the WoL status which is >>>> applicable on all chips supporting wol. Also update the >>>> at803x_set_wol() function to only update the 1588 register on chips having >>> it. >>> >>> Do chips which do not have the 1588 register not have WoL? Or WoL >>> hardware is always enabled, but you still need to enable the interrupt. >> >> Some of them do and some don't, which is removed in the other patch >> from the series. Since I don't find the register to enable it, I >> guess it always enabled. >> >>> >>> Have you tested on a range of PHY? It might be better to split this patch up a >>> bit. If it causes regressions, having smaller patches can make it easier to find >>> which change broken it. >> >> No, I only have AR8035 to test with. Changes for other chips are >> according to the datasheet. It would be good if others having the >> hardware can test it too. > > Adding Luo Jie for awareness. > > @Luo Jie: do you have access to other chips handled by this driver > other then AR8035? could you please test this series: > > https://patchwork.kernel.org/project/netdevbpf/list/?series=770734 > > ? > > Thanks! > > Paolo > Hi Paolo & Leo, To make WoL feature working, we need to enable bit MDIO_MMD_PCS.AT803X_PHY_MMD3_WOL_CTRL.AT803X_WOL_EN on both PHY qca8081 and at803x, which does not depend on the 1588 feature. The bit AT803X_INTR_ENABLE.AT803X_INTR_ENABLE_WOL is just for triggering the external WoL interrupt PIN when the WOL interrupt occurs. Thanks, Jie