Article View: linux.kernel.netdev
Article #1859Re: [PATCH RFC v3 05/12] net: pcs: Add NXP S32G XPCS driver
From: Jan Petrous
Date: Sun, 11 Oct 2026 05:56
Date: Sun, 11 Oct 2026 05:56
55 lines
8837 bytes
8837 bytes
On Sun, Sep 20, 2026 at 07:07:23PM +0200, Andrew Lunn wrote: > > +#define SR_MII_CTRL 0x1f0000 > > This is 0x1f0000 + MII_BMCR > > > +#define SS13 BIT(13) > > #define BMCR_SPEED100 0x2000 /* Select 100Mbps */ > > > +#define AN_ENABLE BIT(12) > > #define BMCR_ANENABLE 0x1000 /* Enable auto negotiation */ > > > +#define RESTART_AN BIT(9) > > #define BMCR_ANRESTART 0x0200 /* Auto negotiation restart */ > > > +#define DUPLEX_MODE BIT(8) > > #define BMCR_FULLDPLX 0x0100 /* Full duplex */ > > > +#define SS6 BIT(6) > > #define BMCR_SPEED1000 0x0040 /* MSB of Speed (1000) */ > > > +#define SR_MII_STS 0x1f0001 > > This is 0x1f0000 + MII_BMSR > > > +#define LINK_STS BIT(2) > > #define BMSR_LSTATUS 0x0004 /* Link status */ > > Please go through all these register definitions and throw out all the > ones which follow 801.3 and use the values from include/uapi/linux/mii.h > > Andrew > Done for the next version. SR_MII_CTRL and SR_MII_STS and their bit definitions are gone; the driver uses MII_BMCR, MII_BMSR and the BMCR_* and BMSR_* bits from mii.h, addressed in MDIO_MMD_VEND2 rather than through the flat 0x1fxxxx offsets. Most of that code goes away anyway: with the move to pcs-xpcs (see the patch 4 thread), the SGMII configuration and link state handling are done by pcs-xpcs, which already uses mii.h. What stays in the S32G driver is the PMA/PLL bring-up, and the definitions left there are the Synopsys vendor registers at 0x8000 and above in MMD 31, which have no mii.h equivalent. VR_MII_DIG_CTRL1, the one of them pcs-xpcs already defines, is taken from pcs-xpcs.h. Thanks, Jan
Technical Details
Message-ID:
<asslHXK2nfOii3nQ@lsv051416.swis.nl-cdc01.nxp.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344396-linux-kernel-netdev=dewy.ruReferences:
<20260919-s32g_serdes-v3-0-9d68868c1e89@oss.nxp.com> <20260919-s32g_serdes-v3-5-9d68868c1e89@oss.nxp.com> <c2c4dbc4-e6b4-47a0-9852-d116c6d21f89@lunn.ch>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344396-linux-kernel-netdev=dewy.ru From: jan.petrous@oss.nxp.com (Jan Petrous) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH RFC v3 05/12] net: pcs: Add NXP S32G XPCS driver Date: Sun, 11 Oct 2026 07:56:45 +0200 Organization: Usenet Network Message-ID: <asslHXK2nfOii3nQ@lsv051416.swis.nl-cdc01.nxp.com> References: <20260919-s32g_serdes-v3-0-9d68868c1e89@oss.nxp.com> <20260919-s32g_serdes-v3-5-9d68868c1e89@oss.nxp.com> <c2c4dbc4-e6b4-47a0-9852-d116c6d21f89@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1479606"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:IWq8svCcPSkH0Cq1wj/X0fqMX+Q= sha256:pyqQ06ztKoQsSItdPQGWAufdviIWcxpQnCOOnrBVSvE= sha1:PWMtZtv3oaIqLMZtEG1pFRaW7Xg= sha256:fSE/A+dzWmo5AIyrJvl/4CzU9zEO0KEtoqpI+CZaf94= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id A5C1510F9A5; Sun, 11 Oct 2026 08:57:15 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -0.651 X-Spam-Status: No, score=-0.651 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Z37dyDMPGD-x; Sun, 11 Oct 2026 08:57:12 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-344396-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=oss.nxp.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 852FC10F97F; Sun, 11 Oct 2026 08:57:08 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id A40A731E27; Sun, 11 Oct 2026 05:56:57 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D604A3D6CAA; Sun, 11 Oct 2026 05:56:55 +0000 (UTC) X-Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1D9A43B47DC; Sun, 11 Oct 2026 05:56:52 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=92.121.34.13 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791698215; cv=none; b=ZKj5OWVZ0sFMV4QDsZFiMLAyK8hUDXOaGKFKnbXaidr+pTsw+6wk3mYBBORJ5LUxamtd0jfduCBKk8/cvNT477s5ybbkb3ixXG8kptmbWWVBtQ4jfTPr+UcfFOenSvS0uyfu1q73PMnctnpEC9m31FB6WbfGJsUMXp8DkG/yGbQ= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791698215; c=relaxed/simple; bh=4gBbNK9faYCyHxAUkKHZo50K5oxxxmUq9hLXpUewhac=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=uiGnsRz0MSPmpEw7CELx26847MJDoEr9j8uDR3RRu15CaM6kmnos2bB5/b4dup/MKtPdNMdTZBLPZ6r8Dy37SpkVpeWFizctU5RknwyZmEpyg5roZDoCR1+kND/ecUCcnEgxOjiAAYv5JYoS6zUnnZGR3iwj8sqGPfbs+NsvB4E= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com; spf=pass smtp.mailfrom=oss.nxp.com; arc=none smtp.client-ip=92.121.34.13 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.nxp.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.nxp.com X-Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 3B95F1A00BA; Sun, 11 Oct 2026 07:56:45 +0200 (CEST) X-Received: from inva024.eu-rdc02.nxp.com (inva024.eu-rdc02.nxp.com [134.27.226.22]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 1926F1A00B4; Sun, 11 Oct 2026 07:56:45 +0200 (CEST) X-Received: from lsv051416.swis.nl-cdc01.nxp.com (lsv051416.swis.nl-cdc01.nxp.com [10.168.48.122]) by inva024.eu-rdc02.nxp.com (Postfix) with ESMTP id 7B39720301; Sun, 11 Oct 2026 07:56:44 +0200 (CEST) X-Cc: Ciprian Marian Costea <ciprianmarian.costea@oss.nxp.com>, NXP S32 Linux Team <s32@nxp.com>, Vinod Koul <vkoul@kernel.org>, Neil Armstrong <neil.armstrong@linaro.org>, Manivannan Sadhasivam <mani@kernel.org>, Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley <conor+dt@kernel.org>, Ghennadi Procopciuc <ghennadi.procopciuc@nxp.com>, Andrew Lunn <andrew+netdev@lunn.ch>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Geert Uytterhoeven <geert+renesas@glider.be>, Magnus Damm <magnus.damm@gmail.com>, Lorenzo Pieralisi <lpieralisi@kernel.org>, Krzysztof Wilczyński <kwilczynski@kernel.org>, Bjorn Helgaas <bhelgaas@google.com>, Bogdan Hamciuc <bogdan.hamciuc@nxp.com>, Ionut Vicovan <ionut.vicovan@nxp.com>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, Clark Wang <xiaoning.wang@nxp.com>, Philipp Zabel <p.zabel@pengutronix.de>, Maxime Chevallier <maxime.chevallier@bootlin.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, Chester Lin <chester62515@gmail.com>, Matthias Brugger <mbrugger@suse.com>, Ghennadi Procopciuc <ghennadi.procopciuc@oss.nxp.com>, Frank Li <Frank.Li@nxp.com>, Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix Kernel Team <kernel@pengutronix.de>, Fabio Estevam <festevam@gmail.com>, Richard Cochran <richardcochran@gmail.com>, linux-arm-kernel@lists.infradead.org, linux-phy@lists.infradead.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-renesas-soc@vger.kernel.org, imx@lists.linux.dev, linux-pci@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, Vincent Guittot <vincent.guittot@linaro.org>, Alexandru-Catalin Ionita <alexandru-catalin.ionita@nxp.com>, Bogdan Roman <bogdan-gabriel.roman@nxp.com> X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <c2c4dbc4-e6b4-47a0-9852-d116c6d21f89@lunn.ch> X-Virus-Scanned: ClamAV using ClamSMTP