From: Wei Fang <wei.fang@nxp.com>
To: "Clark Wang (OSS)" <xiaoning.wang@oss.nxp.com>
Cc: Claudiu Manoil <claudiu.manoil@nxp.com>,
Vladimir Oltean <vladimir.oltean@nxp.com>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Richard Cochran <richardcochran@gmail.com>,
"imx@lists.linux.dev" <imx@lists.linux.dev>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Clark Wang <xiaoning.wang@nxp.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"Daniel Baluta (OSS)" <daniel.baluta@oss.nxp.com>,
"frieder.schrempf@kontron.de" <frieder.schrempf@kontron.de>
Subject: RE: [PATCH net-next V2 2/7] net: enetc: netc-blk-ctrl: factor out common link MII protocol helpers
Date: Fri, 27 Nov 2026 10:16:11 +0000 [thread overview]
Message-ID: <AS4PR04MB9338537AFBCF3777CCE72B6D88412@AS4PR04MB9338.eurprd04.prod.outlook.com> (raw)
In-Reply-To: <20261127094729.1061755-3-xiaoning.wang@oss.nxp.com>
> #define IMX95_CFG_LINK_PCS_PROT(a) (0x8 + (a) * 4)
> @@ -78,6 +77,9 @@
> #define IMX95_ENETC0_BUS_DEVFN 0x0
> #define IMX95_ENETC1_BUS_DEVFN 0x40
> #define IMX95_ENETC2_BUS_DEVFN 0x80
> +#define IMX95_ENETC0_LINK 0
> +#define IMX95_ENETC1_LINK 1
> +#define IMX95_ENETC2_LINK 2
It can be simplified as follows:
#define IMX95_ENETC_LINK(a) (a)
Also, IMX94_ENETC0/1/2_LINK can be refined as follows:
#define IMX94_ENETC_LINK(a) (3 + (a))
>
> #define IMX94_ENETC0_BUS_DEVFN 0x100
> #define IMX94_ENETC1_BUS_DEVFN 0x140
> @@ -95,8 +97,15 @@
> /* Flags for different platforms */
> #define NETC_HAS_NETCMIX BIT(0)
>
> +struct netc_link {
> + u32 bus_devfn;
> + u8 link_id;
> +};
This only applies to ENETC links. Would it be more appropriate to
name it netc_enetc_link?
next prev parent reply other threads:[~2026-11-27 10:16 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 9:47 [PATCH net-next V2 0/7] net: enetc: add i.MX952 NETC v4.6 support xiaoning.wang
2026-11-27 9:47 ` [PATCH net-next V2 1/7] dt-bindings: net: netc-blk-ctrl: add compatible string for i.MX952 platforms xiaoning.wang
2026-11-27 9:47 ` [PATCH net-next V2 2/7] net: enetc: netc-blk-ctrl: factor out common link MII protocol helpers xiaoning.wang
2026-11-27 10:16 ` Wei Fang [this message]
2026-11-27 9:47 ` [PATCH net-next V2 3/7] net: enetc: netc-blk-ctrl: share ENETC port MDIO PHY address config xiaoning.wang
2026-11-27 9:47 ` [PATCH net-next V2 4/7] net: enetc: add i.MX952 NETC blocks control support xiaoning.wang
2026-11-27 9:47 ` [PATCH net-next V2 5/7] net: enetc: look up VF ptp-timer from its PF device node xiaoning.wang
2026-11-27 9:47 ` [PATCH net-next V2 6/7] net: enetc: add i.MX952 ENETC support xiaoning.wang
2026-11-27 9:47 ` [PATCH net-next V2 7/7] ptp: netc: use 133MHz as the default reference clock rate for i.MX952 xiaoning.wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AS4PR04MB9338537AFBCF3777CCE72B6D88412@AS4PR04MB9338.eurprd04.prod.outlook.com \
--to=wei.fang@nxp.com \
--cc=andrew+netdev@lunn.ch \
--cc=claudiu.manoil@nxp.com \
--cc=conor+dt@kernel.org \
--cc=daniel.baluta@oss.nxp.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@kernel.org \
--cc=frieder.schrempf@kontron.de \
--cc=imx@lists.linux.dev \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=robh@kernel.org \
--cc=vladimir.oltean@nxp.com \
--cc=xiaoning.wang@nxp.com \
--cc=xiaoning.wang@oss.nxp.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®