Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp303116rdf; Tue, 21 Nov 2023 03:17:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IFrXrUVMUgombGAcZiiOQUYHqEo2tOb3W3sf36o7fHb5PpEAyzfF6V/tObgABhiiTrsLZVu X-Received: by 2002:a05:6a00:139e:b0:6bd:4ab7:5f69 with SMTP id t30-20020a056a00139e00b006bd4ab75f69mr11529966pfg.12.1700565445296; Tue, 21 Nov 2023 03:17:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700565445; cv=none; d=google.com; s=arc-20160816; b=duydrqvGdkRAwKFj6CuhAD/pMLho60B9IipoKqEE9yobTW1Ck2UWITx+Ds1h072MVm fNYH3Xq2rr1ltcGMvxRVhTABdhfjs8uU6XGxXl0E3fH3DQnkdm3+NJNfebXV/x3xYMzf put0eF9nkrjtL4XqiEqyjkJf4ArOLxPPjETo5oHzSibsRmffAYr1YjpbWUfIzc2hGO7f CEXfBvvOhIpd1gYOKMuo1QuTUkuFZZbokCJrnfAv6gQG+8PsiG6aX4SFGlT+ffXy+WEk dPvX/oR2gE3ThzB9YXTbLcC512FvloY4e1D8QIyivjQBdYnG/7+h0PiKrN2mHCf/E3bx O8Cg== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=M9DOrdJVKMsr8o6F5WAHynnyalc9MnI3i2BK37d48Bs=; fh=x3iYL8efK45L9es3qWTJB9fqseA7sseAXuX4GqBw38A=; b=rKZ9oyL5oVn+WS9pFCi6UIwm+mODyiTIpnstzuoURILIJn9i8hYxw/VfmAQ2gAojQm Sk/udQR7qFazw/KxLnXenue8BHhY9mkVp89u8EzuBFO5kRxu6TIuMfZVSM+F49rbOl7U CEbF+ebAbakgtKJ8dIFdWHd47blwXe+SYGduWVAVQOP6lwl6hLoJxFzQcHUUd0wZkZWU zMEwz9Io07bygTnY0BrCmK80NiakdalJzzkOWoeTdK27/OYVQqMB6OK9XHPWcfqN147N 0r2lRbfyT+C9xYpKv4lvEZoX3s0+Hbi/kYFyWb8PRGTyqqdZU+/S1sdW6HiSUzu4rt79 bLDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MqoOrrMP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id w10-20020a63160a000000b005b403446f1dsi9940120pgl.129.2023.11.21.03.17.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 03:17:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MqoOrrMP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 81D6D8050D38; Tue, 21 Nov 2023 03:15:45 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232229AbjKULPg (ORCPT + 99 others); Tue, 21 Nov 2023 06:15:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229481AbjKULPe (ORCPT ); Tue, 21 Nov 2023 06:15:34 -0500 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E14319C; Tue, 21 Nov 2023 03:15:30 -0800 (PST) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3ALA99hm005185; Tue, 21 Nov 2023 11:15:15 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=M9DOrdJVKMsr8o6F5WAHynnyalc9MnI3i2BK37d48Bs=; b=MqoOrrMPDIgqJAIFe0l3PAOKMehydECbcWJnSVjdnSKQD3rYREO4d76C/Fjy5hJ1MZNv QCuU4w0aAdoEMHyKvJ76Cvk/yT+NHIt2HD5W93EYzeLTVNtiT+lBQvTJPSlqtgS2qTTx Na0x7KYRYgkr2OZxFezfGJF4R3/XDzJ/k/xxDxFdcc5RqWoLtEXJhUk3fG8Xyh5pm1GA B1XKZ3feoQvAl56dBMgbJx3t3E7Lel4OPkNyiNqwWlRMsdrQJVad7NKtRG+nLV3vt3NB 5u7o3QuAsG06XJvKXq+QYUpFxj1eM8pHLDcJ1HLJuiNwZnme7ma2v1vwj6qJ4gCKM742 tQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3ugge19evg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 11:15:15 +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 3ALBFErn009234 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 21 Nov 2023 11:15:14 GMT Received: from [10.253.72.26] (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.40; Tue, 21 Nov 2023 03:15:10 -0800 Message-ID: Date: Tue, 21 Nov 2023 19:15:08 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 3/6] net: phy: at803x: add QCA8084 ethernet phy support Content-Language: en-US To: "Russell King (Oracle)" , Andrew Lunn CC: , , , , , , , , , , , , References: <20231118062754.2453-1-quic_luoj@quicinc.com> <20231118062754.2453-4-quic_luoj@quicinc.com> <1eb60a08-f095-421a-bec6-96f39db31c09@lunn.ch> <1d4d7761-6b42-48ec-af40-747cb4b84ca5@lunn.ch> From: Jie Luo In-Reply-To: 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-GUID: itCDhuVuSbrHvoLLJx9XAomaO2avh_Rr X-Proofpoint-ORIG-GUID: itCDhuVuSbrHvoLLJx9XAomaO2avh_Rr X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-21_04,2023-11-21_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 malwarescore=0 mlxscore=0 adultscore=0 mlxlogscore=941 phishscore=0 priorityscore=1501 bulkscore=0 suspectscore=0 spamscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311210087 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 21 Nov 2023 03:15:45 -0800 (PST) On 11/21/2023 12:18 AM, Russell King (Oracle) wrote: > On Mon, Nov 20, 2023 at 04:34:55PM +0100, Andrew Lunn wrote: >> Are you saying there is a USXGMII-M level link change status? The link >> between the SoC and the PHY package is up/down? If it is down, all >> four MAC-PHY links are down. If it is up, it is possible to carry >> frames between the SoC and the PHY package, but maybe the PHYs >> themselves are down? > > It shouldn't do. Each "channel" in the USXGMII-M link has its own > autoneg block at both ends, each conveys link status independently. > > The MAC side structure is: > > > +----------+ +-----+ > .-XGMII-> Rate | PCS | | > MAC1 <-MDI-> PHY <-+ | Adaption <--> Clause 49 <-> | > `-GMII--> | | | > +-----^----+ | | > | | | > +-----v---- + | | > | Autoneg | | | > | Clause 37 | | | > +-----------+ | | > | Mux <--> PMA <--> > | | > ....... USXGMII-M > > <------------------------------------------------------> > These blocks are repeated for each channel > > The spec goes on to state that there must be a USXGMII enable bit that > defaults to disabled and the PHY should assume normal XGMII/XFI > operation. When enabled, autoneg follows a slight modification of > clause 37-6. > > As far as the USXGMII-M link, I believe 2.7.8 in the USXGMII-M > documentation covers this, which is "hardware autoneg programming > sequence". It states that "if 10G link is lost or regained, the > software is expected to disable autoneg and re-enable autoneg". I > think "10G link" refers to the USXGMII-M connection, which means > the loss of that link shold cause software to intervene in each > of the PCS autoneg blocks. It is, however, rather unclear. > The link status of PHY is updated, software should do the corresponding QXGMII mode configuration per channel for this PHY. The PCS QXGMII configuration reflects the current link status of the connected PHY.