]> git.baikalelectronics.ru Git - kernel.git/commit
net/fec: fix pm to survive to suspend/resume
authorEric Bénard <eric@eukrea.com>
Wed, 2 Jun 2010 13:13:34 +0000 (06:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2010 13:13:34 +0000 (06:13 -0700)
commitacbb8cce98c62ed3207722090dc57ff590e71358
treece78761ef007487fc65d0f0991b2a3925a6b759d
parent2c8689a76c3a1cd546b2c323e2823cf9975cde04
net/fec: fix pm to survive to suspend/resume

* in the actual driver, calling fec_stop and fec_enet_init doesn't
allow to have a working network interface at resume (where a
ifconfig down and up is required to recover the interface)
* by using fec_enet_close and fec_enet_open, this patch solves this
problem and handle the case where the link changed between suspend
and resume
* this patch also disable clock at suspend and reenable it at resume

Signed-off-by: Eric Bénard <eric@eukrea.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fec.c