diff options
author | Nikita Kiryanov <nikita@compulab.co.il> | 2013-10-16 04:41:32 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-10-17 13:35:56 -0400 |
commit | 677d7d28686e468b4940c573ab2a01b198084bc4 (patch) | |
tree | 383e5f4acc9e221ee751c4bff5b4fd3991056810 | |
parent | 6649b205ab1234c7b0ffbfba769f0604810c8ce2 (diff) |
dm9000: take phy out of reset during init
Take the phy out of reset explicitly during system resume to avoid
losing network connectivity.
Cc: David S. Miller <davem@davemloft.net>
Cc: Jingoo Han <jg1.han@samsung.com>
Cc: Mugunthan V N <mugunthanvnm@ti.com>
Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il>
Signed-off-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/davicom/dm9000.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/davicom/dm9000.c b/drivers/net/ethernet/davicom/dm9000.c index 912983b39492..3f650ce10cf4 100644 --- a/drivers/net/ethernet/davicom/dm9000.c +++ b/drivers/net/ethernet/davicom/dm9000.c | |||
@@ -890,6 +890,7 @@ dm9000_init_dm9000(struct net_device *dev) | |||
890 | (dev->features & NETIF_F_RXCSUM) ? RCSR_CSUM : 0); | 890 | (dev->features & NETIF_F_RXCSUM) ? RCSR_CSUM : 0); |
891 | 891 | ||
892 | iow(db, DM9000_GPCR, GPCR_GEP_CNTL); /* Let GPIO0 output */ | 892 | iow(db, DM9000_GPCR, GPCR_GEP_CNTL); /* Let GPIO0 output */ |
893 | iow(db, DM9000_GPR, 0); | ||
893 | 894 | ||
894 | /* If we are dealing with DM9000B, some extra steps are required: a | 895 | /* If we are dealing with DM9000B, some extra steps are required: a |
895 | * manual phy reset, and setting init params. | 896 | * manual phy reset, and setting init params. |