From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: "\\Jitendra Vegiraju" <jitendra.vegiraju@broadcom.com>
Cc: netdev@vger.kernel.org, alexandre.torgue@foss.st.com,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, mcoquelin.stm32@gmail.com,
bcm-kernel-feedback-list@broadcom.com, richardcochran@gmail.com,
ast@kernel.org, daniel@iogearbox.net, hawk@kernel.org,
john.fastabend@gmail.com, rohan.g.thomas@altera.com,
linux-kernel@vger.kernel.org,
linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org, bpf@vger.kernel.org,
andrew+netdev@lunn.ch, horms@kernel.org, sdf@fomichev.me,
me@ziyao.cc, siyanteng@cqsoftware.com.cn,
prabhakar.mahadev-lad.rj@bp.renesas.com,
weishangjuan@eswincomputing.com, wens@kernel.org,
vladimir.oltean@nxp.com, lizhi2@eswincomputing.com,
boon.khai.ng@altera.com, maxime.chevallier@bootlin.com,
matthew.gerlach@altera.com, chenchuangyu@xiaomi.com,
yangtiezhu@loongson.cn, ovidiu.panait.rb@renesas.com,
chenhuacai@kernel.org, florian.fainelli@broadcom.com,
quic_abchauha@quicinc.com
Subject: Re: [PATCH net-next v7 2/5] net: stmmac: Add DW25GMAC support in stmmac core driver
Date: Fri, 13 Mar 2026 23:13:45 +0000 [thread overview]
Message-ID: <abSaKe3d4fcBMqLm@shell.armlinux.org.uk> (raw)
In-Reply-To: <20260313222206.778760-3-jitendra.vegiraju@broadcom.com>
On Fri, Mar 13, 2026 at 03:22:03PM -0700, \Jitendra Vegiraju wrote:
> @@ -42,13 +42,18 @@
> #define DWXGMAC_CORE_2_20 0x22
> #define DWXLGMAC_CORE_2_00 0x20
>
> +#define DW25GMAC_CORE_3_20 0x32
> +#define DW25GMAC_CORE_4_00 0x40
> +
Do these live in the same versioning numberspace as DWXGMAC and
DWXLGMAC?
> +int dw25gmac_setup(struct stmmac_priv *priv)
> +{
> + struct mac_device_info *mac = priv->hw;
> +
> + dev_info(priv->device, "\tDW25GMAC\n");
> +
> + priv->dev->priv_flags |= IFF_UNICAST_FLT;
> + mac->pcsr = priv->ioaddr;
> + mac->multicast_filter_bins = priv->plat->multicast_filter_bins;
> + mac->unicast_filter_entries = priv->plat->unicast_filter_entries;
> + mac->mcast_bits_log2 = 0;
> +
> + if (mac->multicast_filter_bins)
> + mac->mcast_bits_log2 = ilog2(mac->multicast_filter_bins);
The above seems to be common amongst the other two setup functions.
Maybe there should be a helper for this?
> +
> + mac->link.caps = MAC_ASYM_PAUSE | MAC_SYM_PAUSE |
> + MAC_1000FD | MAC_2500FD | MAC_5000FD |
> + MAC_10000FD | MAC_25000FD;
> + mac->link.duplex = 0;
> + mac->link.speed10 = XGMAC_CONFIG_SS_10_MII;
> + mac->link.speed100 = XGMAC_CONFIG_SS_100_MII;
> + mac->link.speed1000 = XGMAC_CONFIG_SS_1000_GMII;
> + mac->link.speed2500 = XGMAC_CONFIG_SS_2500_GMII;
> + mac->link.xgmii.speed2500 = XGMAC_CONFIG_SS_2500;
> + mac->link.xgmii.speed5000 = XGMAC_CONFIG_SS_5000;
> + mac->link.xgmii.speed10000 = XGMAC_CONFIG_SS_10000;
> + mac->link.xgmii.speed25000 = XGMAC_CONFIG_SS_25000;
> + mac->link.speed_mask = XGMAC_CONFIG_SS_MASK;
Is there any point populating link.speed10 and link.speed100 ?
You're telling phylink that 10/100M speeds aren't supported in
link.caps, so these speeds won't ever be used.
> +
> + mac->mii.addr = XGMAC_MDIO_ADDR;
> + mac->mii.data = XGMAC_MDIO_DATA;
> + mac->mii.addr_mask = GENMASK(20, 16);
> + mac->mii.reg_mask = GENMASK(15, 0);
> + mac->mii.clk_csr_mask = GENMASK(21, 19);
This will be the third instance of this particular mii data setup.
Please consider adding a function to do this setup.
Thanks.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
next prev parent reply other threads:[~2026-03-13 23:14 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-13 22:22 [PATCH net-next v7 0/5] net: stmmac: Add PCI driver support for BCM8958x \Jitendra Vegiraju
2026-03-13 22:22 ` [PATCH net-next v7 1/5] net: stmmac: Add 25GMAC core type to dwmac_core_type enum \Jitendra Vegiraju
2026-03-13 22:22 ` [PATCH net-next v7 2/5] net: stmmac: Add DW25GMAC support in stmmac core driver \Jitendra Vegiraju
2026-03-13 23:13 ` Russell King (Oracle) [this message]
2026-03-16 20:14 ` Jitendra Vegiraju
2026-03-16 20:14 ` Jitendra Vegiraju
2026-03-16 20:27 ` Jitendra Vegiraju
2026-03-13 22:22 ` [PATCH net-next v7 3/5] net: stmmac: Integrate dw25gmac into hwif handling \Jitendra Vegiraju
2026-03-13 22:22 ` [PATCH net-next v7 4/5] net: stmmac: Add PCI driver support for BCM8958x \Jitendra Vegiraju
2026-03-13 23:01 ` Russell King (Oracle)
2026-03-16 20:34 ` Jitendra Vegiraju
2026-03-19 6:12 ` Jitendra Vegiraju
2026-03-19 8:14 ` Russell King (Oracle)
2026-03-20 17:39 ` Jitendra Vegiraju
2026-03-20 17:39 ` Jitendra Vegiraju
2026-03-13 22:22 ` [PATCH net-next v7 5/5] net: stmmac: Add BCM8958x driver to build system \Jitendra Vegiraju
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=abSaKe3d4fcBMqLm@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=ast@kernel.org \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=boon.khai.ng@altera.com \
--cc=bpf@vger.kernel.org \
--cc=chenchuangyu@xiaomi.com \
--cc=chenhuacai@kernel.org \
--cc=daniel@iogearbox.net \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=florian.fainelli@broadcom.com \
--cc=hawk@kernel.org \
--cc=horms@kernel.org \
--cc=jitendra.vegiraju@broadcom.com \
--cc=john.fastabend@gmail.com \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=lizhi2@eswincomputing.com \
--cc=matthew.gerlach@altera.com \
--cc=maxime.chevallier@bootlin.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=me@ziyao.cc \
--cc=netdev@vger.kernel.org \
--cc=ovidiu.panait.rb@renesas.com \
--cc=pabeni@redhat.com \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=quic_abchauha@quicinc.com \
--cc=richardcochran@gmail.com \
--cc=rohan.g.thomas@altera.com \
--cc=sdf@fomichev.me \
--cc=siyanteng@cqsoftware.com.cn \
--cc=vladimir.oltean@nxp.com \
--cc=weishangjuan@eswincomputing.com \
--cc=wens@kernel.org \
--cc=yangtiezhu@loongson.cn \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.