Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp1343844rdb; Sat, 18 Nov 2023 12:20:20 -0800 (PST) X-Google-Smtp-Source: AGHT+IFYl0tr+uab4t5vMRFdpsIPiNsUgryvLCyqosemKKBNilZPlqD6GGSlVNocEQmhLca+f2u5 X-Received: by 2002:a05:6a20:4a23:b0:187:dadd:7e9d with SMTP id fr35-20020a056a204a2300b00187dadd7e9dmr2382522pzb.10.1700338820255; Sat, 18 Nov 2023 12:20:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700338820; cv=none; d=google.com; s=arc-20160816; b=VtzlGP1Sxz80p+gtTHxHmPdLa0+8O3w3St1cjn5f+V5i/nAxeN+YfLczox724Kv/YO ze2/GSFX8d5p0ptqARKbo+2Um+OvfgV+fQCnQlo0tuoIRKLAEcRN21jFEaNuoaGx+Guq EvWYCKMAYtRyoHYu9PT/2wScIwl2qooxKR8cZP+WuUPe648u5eWheNYcn+pbmPWkvcYp Uw6XIratp/SwX36P7K9uM4jsNotmH8Ua5nfUnpqjWMoTjH2xIyfNC8ee1KVO4I+gxwr0 CZkumB2Pk+aNcpRqYYObwEzXNMFs2FkU7vyU0T03xW79g3JTr0dJxCGjZUOxgljAQka4 vNFQ== 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=SjXWAYmFEc1rO45Mv1FCK3wC/fa6+5kmEE0zIU9kiS0=; fh=dP4WUns96RGJo+cjdAwwabZFM4uwBQbiAuvwlZ8COdE=; b=R0goOfDK7W6Q0FHZmvx3+CbIjauxB8XXilpOnU55VAMczFNhq9jW/8/HOkxwlYBdfz TQAjKo4SkIWtg1DOxNRDrwyUZASrhPX3SV8RVrVd+w8hppMKq1X6BKEuMDylbbAYjo0s 8Qn2KIYbe+AaSfaGh7p0kTBOF0D4D7hcLaK9pRCuZOLJ+qA8UpSO8oFtmme9IYAsVhxE SWyHiR8bfry1kyaZNHihTuOwYpCxY6Ig+IjEeMUxmdIQTfBQggS6lDnEdDfoM4E42di+ 0Bp5sRye9CQFr+XqLxkeDjvT9jaBzeNw0rL3emIGOAcUzfAigyqzb4AHmtvf/tbN4P1R jM3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=VLP+pfvd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id a1-20020a17090a8c0100b0027d11201a11si7270391pjo.170.2023.11.18.12.20.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 18 Nov 2023 12:20:20 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=VLP+pfvd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id 37E8B804A722; Sat, 18 Nov 2023 12:20:17 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229887AbjKRUUF (ORCPT + 99 others); Sat, 18 Nov 2023 15:20:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229662AbjKRUUE (ORCPT ); Sat, 18 Nov 2023 15:20:04 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 863A71A1; Sat, 18 Nov 2023 12:19:59 -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=SjXWAYmFEc1rO45Mv1FCK3wC/fa6+5kmEE0zIU9kiS0=; b=VLP+pfvdw1d3r5xTGcSD0PaueI fRcAAr7XA7s+pc4BUmgqQDuhNbefPXcsMgi+BixYwYq/TQY7uZ6ZZyfBYw0XOj/et2KfurHfzYDXa vFJrZg5IX99IXX5Gs3NS/pKMSgKajnXaQpRB1icjMs+NwQwAb5YezfZlmeZFj2S9y+OA=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r4Rn2-000WiP-4j; Sat, 18 Nov 2023 21:19:40 +0100 Date: Sat, 18 Nov 2023 21:19:40 +0100 From: Andrew Lunn To: "Russell King (Oracle)" Cc: Luo Jie , 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 agentk.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 (agentk.vger.email [0.0.0.0]); Sat, 18 Nov 2023 12:20:17 -0800 (PST) > 10G_QXGMII is defined in the Cisco USXGMII multi-port document as one > of several possibilities for a USXGMII-M link. The Cisco document can > be a little confusing beause it states that 10G_QXGMII supports 10M, > 100M, 1G and 2.5G, and then only talks about a 10G and 100M/1G MAC. > > For 10G_QXGMII, there are 4 MAC interfaces. These are connected to a > rate "adaption" through symbol replication block, and then on to a > clause 49 PCS block. > > There is then a port MUX and framing block, followed by the PMA > serdes which communicates with the remote end over a single pair of > transmit/receive serdes lines. > > Each interface also has its own clause 37 autoneg block. > > So, for an interface to operate in SGMII mode, it would have to be > muxed to a different path before being presented to the USXGMII-M > block since each interface does not have its own external data lane > - thus that's out of scope of USXGMII-M as documented by Cisco. Hi Russell I think it helps. Where i'm having trouble is deciding if this is actually an interface mode. Interface mode is a per PHY property. Where as it seems 10G_QXGMII is a property of the USXGMII-M link? Should we be representing the package with 4 PHYs in it, and specify the package has a PMA which is using 10G_QXGMII over USXGMII-M? The PHY interface mode is then internal? Its just the link between the PHY and the MUX? By saying the interface mode is 10G_QXGMII and not describing the PMA mode, are we setting ourselves up for problems in the future? Could there be a PMA interface which could carry different PHY interface modes? If we decide we do want to use 10G_QXGMII as an interface made, i think the driver should be doing some validation. If asked to do anything else, it should return -EINVAL. And i don't yet understand how it can also do 1000BaseX and 2500BaseX and SGMII? Andrew