devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH next-next v4 0/2] Add support for partial store and forward
@ 2023-06-13  5:43 Pranavi Somisetty
  2023-06-13  5:43 ` [PATCH net-next v4 1/2] dt-bindings: net: cdns,macb: Add rx-watermark property Pranavi Somisetty
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Pranavi Somisetty @ 2023-06-13  5:43 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni, robh+dt, krzysztof.kozlowski+dt,
	nicolas.ferre, claudiu.beznea
  Cc: git, michal.simek, harini.katakam, radhey.shyam.pandey,
	pranavi.somisetty, netdev, linux-kernel, devicetree

Add support for partial store and forward mode in Cadence MACB.

Link for v1:
https://lore.kernel.org/all/20221213121245.13981-1-pranavi.somisetty@amd.com/

Changes v2:
1. Removed all the changes related to validating FCS when Rx checksum
offload is disabled.
2. Instead of using a platform dependent number (0xFFF) for the reset
value of rx watermark, derive it from designcfg_debug2 register.
3. Added a check to see if partial s/f is supported, by reading the
designcfg_debug6 register.
4. Added devicetree bindings for "rx-watermark" property.
Link for v2:
https://lore.kernel.org/all/20230511071214.18611-1-pranavi.somisetty@amd.com/

Changes v3:
1. Fixed DT schema error: "scalar properties shouldn't have array keywords"
2. Modified description of rx-watermark in to include units of the watermark value
3. Modified the DT property name corresponding to rx_watermark in pbuf_rxcutthru to
"cdns,rx-watermark".
4. Followed reverse christmas tree pattern in declaring variables.
5. Return -EINVAL when an invalid watermark value is set.
6. Removed netdev_info when partial store and forward is not enabled.
7. Validating the rx-watermark value in probe itself and only write to the register
in init.
8. Writing a reset value to the pbuf_cuthru register before disabing partial store
and forward is redundant. So removing it.
9. Removed the platform caps flag.
10. Instead of reading rx-watermark from DT in macb_configure_caps,
reading it in probe.
11. Changed Signed-Off-By and author names on the macb driver patch.
Link for v3:
https://lore.kernel.org/all/20230530095138.1302-1-pranavi.somisetty@amd.com/

Changes v4:
1. Modified description for "rx-watermark" property in the DT bindings.
2. Changed the width of the rx-watermark property to uint32.
3. Removed redundant code and unused variables.
4. When the rx-watermark value is invalid, instead of returning EINVAL,
do not enable partial store and forward. 

Maulik Jodhani (1):
  net: macb: Add support for partial store and forward

Pranavi Somisetty (1):
  dt-bindings: net: cdns,macb: Add rx-watermark property

 .../devicetree/bindings/net/cdns,macb.yaml    | 11 ++++++++
 drivers/net/ethernet/cadence/macb.h           | 12 +++++++++
 drivers/net/ethernet/cadence/macb_main.c      | 27 +++++++++++++++++++
 3 files changed, 50 insertions(+)

-- 
2.36.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-06-15  8:50 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-06-13  5:43 [PATCH next-next v4 0/2] Add support for partial store and forward Pranavi Somisetty
2023-06-13  5:43 ` [PATCH net-next v4 1/2] dt-bindings: net: cdns,macb: Add rx-watermark property Pranavi Somisetty
2023-06-15  8:23   ` Krzysztof Kozlowski
2023-06-15  8:50     ` Nicolas Ferre
2023-06-13  5:43 ` [PATCH net-next v4 2/2] net: macb: Add support for partial store and forward Pranavi Somisetty
2023-06-14  8:51   ` Claudiu.Beznea
2023-06-15  8:46   ` Nicolas Ferre
2023-06-15  7:50 ` [PATCH next-next v4 0/2] " patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).