Skip to contentSkip to conversation

FSL eTSEC: Fix typo in rx ring

PATCH Applied Fabien Chouteau 2 participants 3 messages Mar 14, 2014 – Mar 17, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FSL eTSEC: Fix typo in rx ring

---
 hw/net/fsl_etsec/rings.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/net/fsl_etsec/rings.c +2 -2
index 7760272..31e6f58 100644
@@ -592,7 +592,7 @@ void etsec_walk_rx_ring(eTSEC *etsec, int ring_nbr)
 
                 /* TODO: Broadcast and Multicast */
 
-                if (bd.flags | BD_INTERRUPT) {
+                if (bd.flags & BD_INTERRUPT) {
                     /* Set RXFx */
                     etsec->regs[RSTAT].value |= 1 << (7 - ring_nbr);
 
@@ -601,7 +601,7 @@ void etsec_walk_rx_ring(eTSEC *etsec, int ring_nbr)
                 }
 
             } else {
-                if (bd.flags | BD_INTERRUPT) {
+                if (bd.flags & BD_INTERRUPT) {
                     /* Set IEVENT */
                     ievent_set(etsec, IEVENT_RXB);
                 }
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 8 lines · Fabien Chouteau
 hw/net/fsl_etsec/rings.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/net/fsl_etsec/rings.c +0 -0
index 7760272..31e6f58 100644

hw/net/fsl_etsec/rings.c void etsec_walk_rx_ring(eTSEC *etsec, int ring_nbr) · line 596

Quoted 6 lines
hw/net/fsl_etsec/rings.c +1 -1
@@ -592,7 +592,7 @@ void etsec_walk_rx_ring(eTSEC *etsec, int ring_nbr)
 
                 /* TODO: Broadcast and Multicast */
 
-                if (bd.flags | BD_INTERRUPT) {
+                if (bd.flags & BD_INTERRUPT) {
                     /* Set RXFx */

[..etc..]

Hm. Has this code _ever_ worked?? :(

Thanks, applied to -trivial.

/mjt

#2 lore raw
Quoted 11 lines · Michael Tokarev
Quoted 9 lines · Fabien Chouteau
 hw/net/fsl_etsec/rings.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
hw/net/fsl_etsec/rings.c +0 -0
index 7760272..31e6f58 100644
@@ -592,7 +592,7 @@ void etsec_walk_rx_ring(eTSEC *etsec, int ring_nbr)
 
Quoted 9 lines

hw/net/fsl_etsec/rings.c void etsec_walk_rx_ring(eTSEC *etsec, int ring_nbr) · line 596

Quoted 5 lines
hw/net/fsl_etsec/rings.c +1 -1
                 /* TODO: Broadcast and Multicast */
 
-                if (bd.flags | BD_INTERRUPT) {
+                if (bd.flags & BD_INTERRUPT) {
                     /* Set RXFx */

[..etc..]

Hm. Has this code _ever_ worked?? :(

Yes because the kernel I'm using always set the BD_INTERRUPT flag.