Commit 57dada6819160eb08f2945fb847045f173d3218d

Authored by Ben Dooks
Committed by David S. Miller
1 parent 78abcb13dd

KS8851: Add soft reset at probe time

Issue a full soft reset at probe time.

This was reported by Doong Ping of Micrel, but no explanation of why this
is necessary or what bug it is fixing. Add it as it does not seem to hurt
the current driver and ensures that the device is in a known state when we
start setting it up.

Signed-off-by: Ben Dooks <ben@simtec.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

drivers/net/ks8851.c
... ... @@ -1239,6 +1239,9 @@
1239 1239 ndev->netdev_ops = &ks8851_netdev_ops;
1240 1240 ndev->irq = spi->irq;
1241 1241  
  1242 + /* issue a global soft reset to reset the device. */
  1243 + ks8851_soft_reset(ks, GRR_GSR);
  1244 +
1242 1245 /* simple check for a valid chip being connected to the bus */
1243 1246  
1244 1247 if ((ks8851_rdreg16(ks, KS_CIDER) & ~CIDER_REV_MASK) != CIDER_ID) {