From: Florian Fainelli <florian.fainelli@broadcom.com>
To: Justin Chen <justin.chen@broadcom.com>,
netdev@vger.kernel.org, devicetree@vger.kernel.org
Cc: rafal@milecki.pl, linux@armlinux.org.uk, hkallweit1@gmail.com,
bcm-kernel-feedback-list@broadcom.com, opendmb@gmail.com,
conor+dt@kernel.org, krzk+dt@kernel.org, robh@kernel.org,
pabeni@redhat.com, kuba@kernel.org, edumazet@google.com,
davem@davemloft.net, andrew+netdev@lunn.ch
Subject: Re: [PATCH net-next 4/5] net: bcmasp: Add support for asp-v3.0
Date: Thu, 17 Apr 2025 11:13:45 -0700 [thread overview]
Message-ID: <84187c48-43bf-41a9-9151-05de335a172a@broadcom.com> (raw)
In-Reply-To: <20250416224815.2863862-5-justin.chen@broadcom.com>
On 4/16/25 15:48, Justin Chen wrote:
> The asp-v3.0 is a major HW revision that reduced the number of
> channels and filters. The goal was to save cost by reducing the
> feature set.
>
> Changes for asp-v3.0
> - Number of network filters were reduced.
> - Number of channels were reduced.
> - EDPKT stats were removed.
> - Fix a bug with csum offload.
>
> Signed-off-by: Justin Chen <justin.chen@broadcom.com>
> ---
[snip]
> MODULE_DEVICE_TABLE(of, bcmasp_mdio_of_match);
> @@ -1285,6 +1310,17 @@ static int bcmasp_probe(struct platform_device *pdev)
> * how many interfaces come up.
> */
> bcmasp_core_init(priv);
> +
> + priv->mda_filters = devm_kzalloc(dev, sizeof(*priv->mda_filters)
> + * priv->num_mda_filters, GFP_KERNEL);
Nit: those are candidates for devm_kcalloc().
> + if (!priv->mda_filters)
> + return -ENOMEM;
> +
> + priv->net_filters = devm_kzalloc(dev, sizeof(*priv->net_filters)
> + * priv->num_net_filters, GFP_KERNEL);
Likewise.
--
Florian
next prev parent reply other threads:[~2025-04-17 18:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-16 22:48 [PATCH net-next 0/5] net: bcmasp: Add v3.0 and remove v2.0 Justin Chen
2025-04-16 22:48 ` [PATCH net-next 1/5] dt-bindings: net: brcm,asp-v2.0: " Justin Chen
2025-04-17 5:52 ` Krzysztof Kozlowski
2025-04-17 17:40 ` Justin Chen
2025-04-16 22:48 ` [PATCH net-next 2/5] dt-bindings: net: brcm,unimac-mdio: " Justin Chen
2025-04-16 22:48 ` [PATCH net-next 3/5] net: bcmasp: Remove support for asp-v2.0 Justin Chen
2025-04-22 18:32 ` Simon Horman
2025-04-22 20:20 ` Russell King (Oracle)
2025-04-16 22:48 ` [PATCH net-next 4/5] net: bcmasp: Add support for asp-v3.0 Justin Chen
2025-04-17 18:13 ` Florian Fainelli [this message]
2025-04-16 22:48 ` [PATCH net-next 5/5] net: phy: mdio-bcm-unimac: Add asp-v3.0 and remove asp-v2.0 Justin Chen
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=84187c48-43bf-41a9-9151-05de335a172a@broadcom.com \
--to=florian.fainelli@broadcom.com \
--cc=andrew+netdev@lunn.ch \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=justin.chen@broadcom.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=opendmb@gmail.com \
--cc=pabeni@redhat.com \
--cc=rafal@milecki.pl \
--cc=robh@kernel.org \
/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.