From: Florian Fainelli <f.fainelli@gmail.com>
To: Heiner Kallweit <hkallweit1@gmail.com>,
Justin Chen <justinpopo6@gmail.com>,
netdev@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org,
bcm-kernel-feedback-list@broadcom.com
Cc: justin.chen@broadcom.com, f.fainelli@gmail.com,
davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
pabeni@redhat.com, robh+dt@kernel.org,
krzysztof.kozlowski+dt@linaro.org, opendmb@gmail.com,
andrew@lunn.ch, linux@armlinux.org.uk, richardcochran@gmail.com,
sumit.semwal@linaro.org, christian.koenig@amd.com
Subject: Re: [PATCH net-next 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller
Date: Wed, 19 Apr 2023 09:33:50 -0700 [thread overview]
Message-ID: <932bb2c6-71ce-525f-fbb2-a0a742ee8e12@gmail.com> (raw)
In-Reply-To: <03dadae3-3a89-cdb0-7cd1-591d62735836@gmail.com>
On 4/18/23 23:35, Heiner Kallweit wrote:
> On 19.04.2023 02:10, Justin Chen wrote:
>> Add support for the Broadcom ASP 2.0 Ethernet controller which is first
>> introduced with 72165. This controller features two distinct Ethernet
>> ports that can be independently operated.
>>
>> This patch supports:
[snip]
>> + intf->tx_spb_index = spb_index;
>> + intf->tx_spb_dma_valid = valid;
>> + bcmasp_intf_tx_write(intf, intf->tx_spb_dma_valid);
>> +
>> + if (tx_spb_ring_full(intf, MAX_SKB_FRAGS + 1))
>> + netif_stop_queue(dev);
>> +
>
> Here it may be better to use the new macros from include/net/netdev_queues.h.
> It seems your code (together with the related part in tx_poll) doesn't consider
> the queue restart case.
> In addition you should check whether using READ_ONCE()/WRITE_ONCE() is needed,
> e.g. in ring_full().
Thanks Heiner. Can you trim the parts you are not quoting otherwise one
has to scroll all the way down to where you responded. Thanks!
--
Florian
next prev parent reply other threads:[~2023-04-19 16:34 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-19 0:10 [PATCH net-next 0/6] Brcm ASP 2.0 " Justin Chen
2023-04-19 0:10 ` [PATCH net-next 1/6] dt-bindings: net: " Justin Chen
2023-04-19 12:20 ` Rob Herring
2023-04-21 7:29 ` Krzysztof Kozlowski
2023-04-24 18:14 ` Justin Chen
2023-04-24 18:16 ` Florian Fainelli
2023-04-19 0:10 ` [PATCH net-next 2/6] dt-bindings: net: brcm,unimac-mdio: Add asp-v2.0 Justin Chen
2023-04-21 7:30 ` Krzysztof Kozlowski
2023-04-19 0:10 ` [PATCH net-next 3/6] net: bcmasp: Add support for ASP2.0 Ethernet controller Justin Chen
2023-04-19 1:05 ` Andrew Lunn
2023-04-19 6:35 ` Heiner Kallweit
2023-04-19 16:33 ` Florian Fainelli [this message]
2023-04-24 21:18 ` Justin Chen
2023-04-19 0:10 ` [PATCH net-next 4/6] net: phy: mdio-bcm-unimac: Add asp v2.0 support Justin Chen
2023-04-19 1:05 ` Andrew Lunn
2023-04-19 0:10 ` [PATCH net-next 5/6] net: phy: bcm7xxx: Add EPHY entry for 74165 Justin Chen
2023-04-19 1:06 ` Andrew Lunn
2023-04-19 0:10 ` [PATCH net-next 6/6] MAINTAINERS: ASP 2.0 Ethernet driver maintainers Justin Chen
2023-04-19 0:19 ` [PATCH net-next 0/6] Brcm ASP 2.0 Ethernet controller 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=932bb2c6-71ce-525f-fbb2-a0a742ee8e12@gmail.com \
--to=f.fainelli@gmail.com \
--cc=andrew@lunn.ch \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=christian.koenig@amd.com \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=justin.chen@broadcom.com \
--cc=justinpopo6@gmail.com \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kuba@kernel.org \
--cc=linaro-mm-sig@lists.linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
--cc=opendmb@gmail.com \
--cc=pabeni@redhat.com \
--cc=richardcochran@gmail.com \
--cc=robh+dt@kernel.org \
--cc=sumit.semwal@linaro.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome