net: gianfar: Clear CAR registers
The CAR1 and CAR2 registers are W1C style registers, to the memset does not actually clear them. Signed-off-by: Esben Haabendal <esben@geanix.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2658530d79
commit
ef09487431
@ -3103,6 +3103,9 @@ static void gfar_hw_init(struct gfar_private *priv)
|
||||
/* Mask off the CAM interrupts */
|
||||
gfar_write(®s->rmon.cam1, 0xffffffff);
|
||||
gfar_write(®s->rmon.cam2, 0xffffffff);
|
||||
/* Clear the CAR registers (w1c style) */
|
||||
gfar_write(®s->rmon.car1, 0xffffffff);
|
||||
gfar_write(®s->rmon.car2, 0xffffffff);
|
||||
}
|
||||
|
||||
/* Initialize ECNTRL */
|
||||
|
Loading…
Reference in New Issue
Block a user