Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp2336613rdb; Mon, 20 Nov 2023 08:18:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IH999ifqlQz62cRYXwr/3uzS+JXiJUr4irwCVYbMiaaBBmSeCcvo+NddA88VXpsM4aGzyjs X-Received: by 2002:a05:6a00:399f:b0:68e:351b:15b9 with SMTP id fi31-20020a056a00399f00b0068e351b15b9mr9343900pfb.4.1700497128960; Mon, 20 Nov 2023 08:18:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700497128; cv=none; d=google.com; s=arc-20160816; b=m+MblPRMhAnW7wqscmxCW6RnMedBC6ItIrNGtlrPWxorKYzWOm9Pis8UxE7npHuV5K xsw790UEprb99fNmK3hGJWna19kWdxTWM/MuREOomTsHnfdxRf1vTtXc8xyhMs3sMjKr xlG8MuC1w+AoCEdHQX/wst7nvCkRQuJDhQrCszNMht6nA0bGNmaasY+lqWjoYxmF90Ez GpkAPECrannz/Z9UDYrKvlMakhJar0tgrK4PCDXE4iLuLnfe5BHOGgRAPVZ9naAfrKgX 46X/ik7I3UZT09fN4JLy9x9FkuRHKHGX1phIt2teh9FPKCbNWoFTlQxnRUuZuVuuCizS L0fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=6SCBZOZz6Qup6QX990ipAzjI1yY+8rbPKPGIJ6ySC0E=; fh=6NeqHVjJql9uxPM7ctl9eYf221419zMYHtiMKMbuecQ=; b=GNwmfQy9O1Loidy8TCc6WAT2Olm4zFbZTxoRar7gQNKvwDNY8tegOoe1sk4lm7kuPf rjBnd7d++bPlo/21uY1+U8hwLfe4D82wF8YjCm7EwFzuiLKPFwZR26uwpmZWHUxDnoQ8 YkQ/oRRDypZbH5c9OZ30D5OXS1P8drpWn8a9PNL53Sa/EPG13fzt4YZgXCOS33aSYA5M lc9RkbKfJ5J4XwhO7YnwMr5E9p2QtLYA9mLOMWxppO6iOCIJY0u8an9ZJpNS4g3zSPZj B7cdt4wGmDYX4U0d2uF9oqg6FHzIqR8jd+nTIKJ7KHEaPAtxGqbEtGloE97rYlQXiHT4 fi3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=sqnGbTdI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id c8-20020aa79528000000b006c33988ea3esi7872144pfp.402.2023.11.20.08.18.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 08:18:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=sqnGbTdI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 237DB80505C6; Mon, 20 Nov 2023 08:18:33 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233674AbjKTQSZ (ORCPT + 99 others); Mon, 20 Nov 2023 11:18:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233480AbjKTQSY (ORCPT ); Mon, 20 Nov 2023 11:18:24 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 867E2F5; Mon, 20 Nov 2023 08:18:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6SCBZOZz6Qup6QX990ipAzjI1yY+8rbPKPGIJ6ySC0E=; b=sqnGbTdIP9eiY5KVdCOGH68mSL OorK3g1mxqMHwNbBHJzmZcfhye06oLl9D7b2ucdzEubIu2uN7K/5btywoIHQon63OGbQX4+wib9Y0 r9zZuYEbWzRCNaP121etnyiXDueFvlXYvvlkeNTypWFZwyy8op+KMUUZngzSk1XGQ4IxW3ZeMthf8 5ixyIDuhokIU0GdZN3HQWBTnwNcHgBq2DUB4cg6QYKA60cU5qbduXITs9IXyoSTZKDlB6In1gUdX0 f5Z1V/OzX5wWjziNXN4L1CR1jORspQPJOx6eF2drxgSc3r6HJJ4aGkG8bunfLvS9YbYcUawr3B8ZP 5uoezByg==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:57710) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1r56yN-0005rP-1I; Mon, 20 Nov 2023 16:18:07 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1r56yN-0003JU-GV; Mon, 20 Nov 2023 16:18:07 +0000 Date: Mon, 20 Nov 2023 16:18:07 +0000 From: "Russell King (Oracle)" To: Andrew Lunn Cc: Jie Luo , davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, hkallweit1@gmail.com, corbet@lwn.net, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org Subject: Re: [PATCH v5 3/6] net: phy: at803x: add QCA8084 ethernet phy support Message-ID: 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1d4d7761-6b42-48ec-af40-747cb4b84ca5@lunn.ch> Sender: Russell King (Oracle) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, 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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 20 Nov 2023 08:18:33 -0800 (PST) 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. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!