Skip to contentSkip to conversation

mvgbe: enable the reception of packets with an odd number of preamble nibbles

PATCH New Klaus Flittner 3 participants 3 messages Jan 31, 2011 – Apr 13, 2011 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mvgbe: enable the reception of packets with an odd number of preamble nibbles

With the current hardware initialisation of the driver all packets with an odd number of preamble nibbles are dropped. Some switches seem to send all packets with such an preamble.

According to the functional specifications of the marvell 88F6180, 6190, 6192 and 6281 the reception of such packets can be enabled by setting bit 22 in register PSC1.

---
 drivers/net/mvgbe.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/net/mvgbe.c +3 -0
index c701f43..f1081a2 100644
@@ -446,6 +446,9 @@ static int mvgbe_init(struct eth_device *dev)
        MVGBE_REG_WR(regs->psc0, MVGBE_MAX_RX_PACKET_9700BYTE
                        | (MVGBE_REG_RD(regs->psc0) & MRU_MASK));
 
+       /* Receive packets with odd number of preamble nibbles */
+       MVGBE_REG_BITS_SET(regs->psc1, 1 << 22);
+
        /* Enable port initially */
        MVGBE_REG_BITS_SET(regs->psc0, MVGBE_SERIAL_PORT_EN);
#1 lore raw

PATCH 1/1 mvgbe: enable the reception of packets with an odd number of preamble nibbles

Dear Klaus Flittner,

Quoted 18 lines · In message <[email protected]> you wrote:

With the current hardware initialisation of the driver all packets with an odd number of preamble nibbles are dropped. Some switches seem to send all packets with such an preamble.

According to the functional specifications of the marvell 88F6180, 6190, 6192 and 6281 the reception of such packets can be enabled by setting bit 22 in register PSC1.

---
 drivers/net/mvgbe.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
drivers/net/mvgbe.c +0 -0
index c701f43..f1081a2 100644

drivers/net/mvgbe.c static int mvgbe_init(struct eth_device *dev) · line 453

Quoted 8 lines
drivers/net/mvgbe.c +3 -0
@@ -446,6 +446,9 @@ static int mvgbe_init(struct eth_device *dev)
        MVGBE_REG_WR(regs->psc0, MVGBE_MAX_RX_PACKET_9700BYTE
                        | (MVGBE_REG_RD(regs->psc0) & MRU_MASK));
 
+       /* Receive packets with odd number of preamble nibbles */
+       MVGBE_REG_BITS_SET(regs->psc1, 1 << 22);
+
        /* Enable port initially */
        MVGBE_REG_BITS_SET(regs->psc0, MVGBE_SERIAL_PORT_EN);

Your patch is white space corrupted and does not apply:

Applying: mvgbe: enable the reception of packets with an odd number of preamble nibbles Using index info to reconstruct a base tree...
error: patch failed: drivers/net/mvgbe.c:446
error: drivers/net/mvgbe.c: patch does not apply
Did you hand edit your patch?
It does not apply to blobs recorded in its index.
Cannot fall back to three-way merge.
Patch failed at 0001 mvgbe: enable the reception of packets with an odd number of preamble nibbles

Please resubmit after fixing your mailer problems.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I have made mistakes, but have never made the mistake of  claiming  I
never made one.                                     - James G. Bennet
#2 lore raw

PATCH 1/1 mvgbe: enable the reception of packets with an odd number of preamble nibbles

Quoted 11 lines

-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Wolfgang Denk
Sent: Wednesday, April 13, 2011 12:20 AM
To: Klaus Flittner
Cc: u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH] mvgbe: enable the reception of packets with an odd number of preamble nibbles

Quoted 11 lines

Dear Klaus Flittner,

Quoted 1 line · In message <[email protected]> you wrote:

With the current hardware initialisation of the driver all packets

with

Quoted 6 lines

an odd number of preamble nibbles are dropped. Some switches seem to send all packets with such an preamble.

According to the functional specifications of the marvell 88F6180, 6190, 6192 and 6281 the reception of such packets can be enabled by setting bit 22 in register PSC1.

Klaus Flittner

Do you thing setting this by default will not disturb functionality on other hardware? If so, how about encapsulating it in #ifdef with SYS_CONFIG_xx ?

Regards..
Prafulla . .