Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4832847rwb; Tue, 8 Aug 2023 14:54:12 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEkb+EuzW1PIsVQneKZx/uoLpQtbmrfSc/dHP9dLelo92m2Flhst25DMX73T25nsAwibBax X-Received: by 2002:a17:903:428c:b0:1bc:66a3:9a4b with SMTP id ju12-20020a170903428c00b001bc66a39a4bmr1122558plb.5.1691531652422; Tue, 08 Aug 2023 14:54:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691531652; cv=none; d=google.com; s=arc-20160816; b=OXl2COeY00eP3TCm9w4JEjyQxnqsECgNKaCowMUmehZGXyzj/HHX4kWGf05h1WdKel Kt1Qvv4+aURzejq+93Nw/E2K1WRwR1bDetztRbtcPIYHZ3NjtUXw5cew2GSRdglkbvHp gRC+ISjzpCE6zfyDwQauxYEoT/T2TaiSBNvk0hLtYJ/udxD9LLdy/pRmp7RTdAAyaK85 wu/z7ZAZm+xG3SaM0mXHayknPDOoolcw/zRDzO9bzZkXvcmNJ1VipoXkyf+vzcsuT5qR U7bDdONWfPsnq4L7aRH9cYB5+B0vIiMiMhMphViCS/khgeHsPBg21WpjjLytoTpod6Se AbvA== 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=kugZc95gGx+gT4+czXKHKOoAY3GLr6Xku/WMAGPw3Fk=; fh=mb/wKBSXaMnCPcpKivVpbkJlr4y+lXu/QNTlXvuVx8M=; b=UGWT7sY6BgEkXpZkHB+qPEG/yIVKE0dfSzY2fGSfyVdg/b7LQuG/mTZ4oM5jlr6B7S c+/yVYuGw0puLAujNbsPXuDyOfBSWozjEdRqLh5lv63X1o+bGaH5+tlTny6ShNp3+x4S k7W0RRwh86ygburPzReUtcUbvT4dl3G75uDuWW8gaUTyytWaB/6Ut89UvWxS3fqfW4e3 1q08YTx3pFnbRFUw80WxMeDrLqUgyzA3PUqtctWAXfum2s02Qr0sHZhbdH0/MMm4sS6S GXsydllyl3HpOfq8AWgr5DlmGFKMD+nFACzau4KWESIp7cxEWl+IxvoEZcHwwqwN6XMZ dHsA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=qksDPq++; 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=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a170902ea0400b001bc650255b6si5015340plg.390.2023.08.08.14.53.59; Tue, 08 Aug 2023 14:54:12 -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=@lunn.ch header.s=20171124 header.b=qksDPq++; 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=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236040AbjHHVKk (ORCPT + 99 others); Tue, 8 Aug 2023 17:10:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235936AbjHHVKW (ORCPT ); Tue, 8 Aug 2023 17:10:22 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEC368936; Tue, 8 Aug 2023 13:54:58 -0700 (PDT) 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=kugZc95gGx+gT4+czXKHKOoAY3GLr6Xku/WMAGPw3Fk=; b=qksDPq++8sAH+kPljwpqHKKOfm 8hVaowMT091tsZwRUs4vx+9cnNbDYHgiiq4thEEL8FkfsLgyjM9X62rP7qMiFV+UQ7dEKsU30VZi7 XkcdSzHRaOQRdNodZ54QDgC89ldeNENuoFT4DZgYQZnd3nobOcDPxpkrwkNLbPPWUzHU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qTTj5-003WBH-1N; Tue, 08 Aug 2023 22:54:47 +0200 Date: Tue, 8 Aug 2023 22:54:47 +0200 From: Andrew Lunn To: "Hawkins, Nick" Cc: "christophe.jaillet@wanadoo.fr" , "simon.horman@corigine.com" , "Verdun, Jean-Marie" , "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" , "netdev@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 4/5] net: hpe: Add GXP UMAC Driver Message-ID: <06d1bc6a-0584-4d62-a2f4-61a42f236b3c@lunn.ch> References: <20230802201824.3683-1-nick.hawkins@hpe.com> <20230802201824.3683-5-nick.hawkins@hpe.com> <933D6861-A193-4145-9533-A7EE8E6DD32F@hpe.com> <61c541c9-be30-4a43-aa85-53816d5848f9@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,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 Tue, Aug 08, 2023 at 08:39:39PM +0000, Hawkins, Nick wrote: > Hi Andrew, > > Thank you for your feedback, I have several follow up questions: > > > So what you call a PHY is probably a PCS. Please look at the API used > > in driver/net/pcs/. The real PHYs are external. > > I doubled checked the internal PHY is considered a PHY, but I believe > I can represent it as a PCS. Is there proper documentation somewhere? register set? Is there registers to kick off Base1000X/SGMII auto-neg? Somewhere to get the results of the auto-neg? Since this is Base1000X/SGMII you want to know if the link between it and the external PHY has established. And if there is not an external PHY, but an SFP, this auto neg is with the link peer, not the PHY. If it follows 802.3 clause 37, there should already be a lot of helper code for you. Is this is licensed core? > To confirm: I believe you are suggesting that > we create a driver here for the handling of the internal PHY but not the > external PHY? The patches seem to suggest your board has an external Marvell PHY. So i would expect it to use drivers/net/phy/marvell.c. Other boards, using other PHYs, would use other PHY drivers. > If so would it be leveraging the MDIO driver already created in this > patchset? Or perhaps would it be replacing it for the internal PHY? Many of the PCS drivers in driver/net/pcs are MDIO devices, so yes, it would be layered on top of it. Andrew