mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
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
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue