RE: [PATCH net-next v2 13/14] ravb: Update EMAC configuration mode comment

From
Biju Das <biju.das.jz@bp.renesas.com>
Date
2021-10-10 09:37:17
Also in
linux-renesas-soc
Reply to
Sergei Shtylyov, 2021-10-10
Hi Sergey,
-----Original Message-----
From: Sergei Shtylyov <redacted>
Sent: 10 October 2021 10:28
To: Biju Das <biju.das.jz@bp.renesas.com>; David S. Miller
[off-list ref]; Jakub Kicinski [off-list ref]
Cc: Sergey Shtylyov <redacted>; Geert Uytterhoeven
[off-list ref]; Sergey Shtylyov [off-list ref]; Adam
Ford [off-list ref]; Andrew Lunn [off-list ref]; Yuusuke Ashizuka
[off-list ref]; Yoshihiro Shimoda
[off-list ref]; netdev@vger.kernel.org; linux-renesas-
soc@vger.kernel.org; Chris Paterson [off-list ref]; Biju
Das [off-list ref]; Prabhakar Mahadev Lad <prabhakar.mahadev-
lad.rj@bp.renesas.com>
Subject: Re: [PATCH net-next v2 13/14] ravb: Update EMAC configuration
mode comment

On 10.10.2021 10:29, Biju Das wrote:
quoted
Update EMAC configuration mode comment from "PAUSE prohibition"
to "EMAC Mode: PAUSE prohibition; Duplex; TX; RX; CRC Pass Through;
Promiscuous".

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Suggested-by: Sergey Shtylyov <redacted>
---
v1->v2:
  * No change
V1:
  * New patch.
---
  drivers/net/ethernet/renesas/ravb_main.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/renesas/ravb_main.c
b/drivers/net/ethernet/renesas/ravb_main.c
index 9a770a05c017..b78aca235c37 100644
--- a/drivers/net/ethernet/renesas/ravb_main.c
+++ b/drivers/net/ethernet/renesas/ravb_main.c
@@ -519,7 +519,7 @@ static void ravb_emac_init_gbeth(struct net_device
*ndev)
quoted
  	/* Receive frame limit set register */
  	ravb_write(ndev, GBETH_RX_BUFF_MAX + ETH_FCS_LEN, RFLR);

-	/* PAUSE prohibition */
+	/* EMAC Mode: PAUSE prohibition; Duplex; TX; RX; CRC Pass Through;
+Promiscuous */
    Promiscuous mode, really? Why?!
This is TOE related and is recommendation from BSP/HW team. If you think it is wrong.
I can take this out. Please let me know. Currently the board is booting and everything works without issues.

The meaning of promiscuous in H/W manual as follows.

Promiscuous Mode
1: All the frames except for PAUSE frame are received. Self-addressed unicast,
different address unicast, multicast, and broadcast frames are all transferred to
TOE. PAUSE frame reception is controlled by PFR bit.
0: Self-addressed unicast, multicast, and broadcast frames are received, then
transferred to TOE.

Regards,
Biju
quoted
  	ravb_write(ndev, ECMR_ZPF | ((priv->duplex > 0) ? ECMR_DM : 0) |
  			 ECMR_TE | ECMR_RE | ECMR_RCPT |
  			 ECMR_TXF | ECMR_RXF | ECMR_PRM, ECMR);
MBR, Sergey
Thread (28 messages) 28 messages, 4 authors, 2021-10-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help