FSL eTSEC: Fix typo in rx ring
PATCH 1/1 FSL eTSEC: Fix typo in rx ring
Signed-off-by Fabien Chouteau <[email protected]>
--- hw/net/fsl_etsec/rings.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/net/fsl_etsec/rings.c +2 -2
@@ -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
Michael Tokarev
AppliedQuoted 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
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
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@@ -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.