Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1231091rdb; Sat, 18 Nov 2023 07:55:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IEWb9clqhR469SlAfnUKs91Es1kUxyP39G9UjV9B+WviUtvRD9GMWJToGp7kXDn/LSMrMW5 X-Received: by 2002:a17:902:d2ca:b0:1cf:5782:7c74 with SMTP id n10-20020a170902d2ca00b001cf57827c74mr522838plc.7.1700322919377; Sat, 18 Nov 2023 07:55:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700322919; cv=none; d=google.com; s=arc-20160816; b=yuO96RkpFhbZQUqM8R5rGf0JrCgFWxU+AdU4CqdnrD/kjxpoyjW60kbkUdPEJlwq9t kVYXv1WLPpVIV3AC1ZUDXskc8FEv0feuqlLltAyq488UzGx40dO9ag576RyGu4LIfz9B FVlUaGndUUly+HA/LVqha98fO7Jil8x6ykbZ5xq28kfGQk9nNsKo9DEZtGuoZKXPNwOi n0WnLm5WzUTGDnXQcrXRUxW8S67v2CJj90cIHFwcV47vsYeS1SBMNEXS4RRmJWsSs5fl O6IK4NFwSygm1AMXG5tAEkUwKgpeDQIq1GSAXDeoTqbch66iphPw5J7FPNb3HGyEDiPa tjUg== 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=1hYM5k/OHJIzmc6ChT9Yo9Kr+sThyS1yvMvl/d2IeDU=; fh=HFFMPfTrgAtEasjaTE8ApBNCMU926X5MmrEQhdzlmx8=; b=JHrrS9yhtz/IujioerUUSd8ZH2bJIHJWhv6E72WV9Yuji4OEifQwRYq0/B2i3hPUq0 Qlyvfx8yKUeOiEDcUx/Ri+rvKPUh3l8lP4bSqotEPeBlqNslAj9AuT1pBsw2isK5XqZw O2ZG0jplwsLZAyeI4dYRfnIFFuHpmytHpyXW6Sk2huKz74oklKCv/ZxrqR1gDmvKaQjJ oXDE/y1GBRjyw5DFvxkU67zqJ/DKLqMLZOGD8B+YxPnS2w46UFWWfLitDsy3nQtoOYRC DfsJxpeia6dp+DKhHF8EEOPc/ewZtdjUpgMYjOmol3zFTpdwZ5VkhEBgJHpdifOawPSR j0cg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=nm3gHz3a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id n4-20020a170902f60400b001c624cbc92dsi4622765plg.296.2023.11.18.07.55.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 07:55:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=nm3gHz3a; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D93EE80B8E53; Sat, 18 Nov 2023 07:55:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231423AbjKRPyr (ORCPT + 99 others); Sat, 18 Nov 2023 10:54:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230498AbjKRPxh (ORCPT ); Sat, 18 Nov 2023 10:53:37 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D86E71FF7; Sat, 18 Nov 2023 07:51:54 -0800 (PST) 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=1hYM5k/OHJIzmc6ChT9Yo9Kr+sThyS1yvMvl/d2IeDU=; b=nm3gHz3aDSLq2/llOzW0U+nuKn o2SNCFi4rcF7TqLhPDzjkyCehL4mE51lMojstFVeXqTHRP1h2YOzZlP4cDCbn7xhn3a/9TEm6F5qJ VkFlZJv8e8E0qeKWJv4aHmvgFm7K9F3EF8b7Lke2vIqCVMYsSOKockkdUeaeaVyIFRK4=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r4Nbi-000Vtr-FC; Sat, 18 Nov 2023 16:51:42 +0100 Date: Sat, 18 Nov 2023 16:51:42 +0100 From: Andrew Lunn To: Luo Jie Cc: 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, linux@armlinux.org.uk, 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: <1eb60a08-f095-421a-bec6-96f39db31c09@lunn.ch> References: <20231118062754.2453-1-quic_luoj@quicinc.com> <20231118062754.2453-4-quic_luoj@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231118062754.2453-4-quic_luoj@quicinc.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 18 Nov 2023 07:55:18 -0800 (PST) On Sat, Nov 18, 2023 at 02:27:51PM +0800, Luo Jie wrote: > Add qca8084 PHY support, which is four-port PHY with maximum > link capability 2.5G, the features of each port is almost same > as QCA8081 and slave seed config is not needed. > > Three kind of interface modes supported by qca8084. > PHY_INTERFACE_MODE_10G_QXGMII, PHY_INTERFACE_MODE_2500BASEX and > PHY_INTERFACE_MODE_SGMII. Sorry for joining the conversation late. I'm trying to get my head around QXGMII. Let me describe what i think is happening, and then you can correct me.... You have 4 MACs, probably in a switch. The MII interfaces from these MACs go into a multiplexer, and out comes QXGMII? You then have a SERDES interface out of the switch and into the PHY package. Inside the PHY package there is a demultiplexor, giving you four MII interfaces, one to each PHY in the package. If you have the PHY SERDES running in 2500BaseX, you have a single MAC, no mux/demux, and only one PHY is used? The other three are idle. Same from SGMII? So the interface mode QXGMII is a property of the package. It is not really a property of one PHY. Having one PHY using QXGMII and another SGMII does not work? Andrew