Shawn Guo bcc67771ed net/fec: improve pm for better suspend/resume
The following commit made a fix to use fec_enet_open/fec_enet_close
over fec_enet_init/fec_stop for suspend/resume, because fec_enet_init
does not allow to have a working network interface at resume.

  e3fe8558c7fc182972c3d947d88744482111f304
  net/fec: fix pm to survive to suspend/resume

This fix works for i.mx/mxc fec controller, but fails on mx28 fec
which gets a different interrupt logic design. On i.mx fec, interrupt
can be triggered even bit ETHER_EN of ECR register is not set. But
on mx28 fec, ETHER_EN must be set to get interrupt work. Meanwhile,
MII interrupt is mandatory to resume the driver, because MDIO
read/write changed to interrupt mode by commit below.

  97b72e4320a9aaa4a7f1592ee7d2da7e2c9bd349
  fec: use interrupt for MDIO completion indication

fec_restart/fec_stop comes out as the solution working for both
cases.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-01-09 15:42:56 -08:00
..
2010-12-21 02:16:10 -08:00
2010-12-31 10:50:55 -08:00
2010-12-21 02:16:10 -08:00
2010-12-21 02:16:10 -08:00
2010-12-21 02:16:10 -08:00
2010-12-21 02:16:10 -08:00
2010-12-21 02:16:10 -08:00
2010-12-21 02:16:10 -08:00
2010-12-31 11:11:38 -08:00
2010-12-21 02:16:10 -08:00
2010-12-21 02:16:08 -08:00
2010-12-21 02:16:08 -08:00
2010-12-21 02:16:08 -08:00
2010-11-09 09:17:56 -08:00
2010-12-21 02:16:08 -08:00
2010-11-17 12:21:14 -08:00
2010-11-09 09:17:56 -08:00
2010-12-21 02:16:08 -08:00
2010-11-09 09:17:56 -08:00
2010-12-01 11:11:31 -08:00
2010-08-24 12:24:07 -07:00
2010-09-26 18:34:29 -07:00
2010-12-31 11:04:02 -08:00
2010-11-28 10:47:19 -08:00
2010-12-23 11:44:34 -08:00
2010-12-23 11:44:34 -08:00
2010-09-26 18:34:29 -07:00
2010-09-26 18:34:29 -07:00
2010-09-29 13:23:30 -07:00
2010-09-26 18:34:29 -07:00
2010-12-21 02:16:08 -08:00
2010-12-21 02:16:08 -08:00
2010-12-21 02:16:08 -08:00
2010-09-26 18:34:29 -07:00
2010-11-28 11:16:38 -08:00
2010-11-16 11:39:08 -08:00
2010-12-21 02:16:08 -08:00
2010-09-26 18:34:29 -07:00
2010-12-21 02:16:08 -08:00
2011-01-03 12:43:10 -08:00
2010-11-18 10:45:24 -08:00
2010-12-21 02:16:08 -08:00
2010-10-21 03:52:11 -07:00
2010-07-27 22:24:37 -07:00
2010-11-08 13:50:06 -08:00
2010-11-09 09:17:56 -08:00
2010-11-09 09:17:56 -08:00
2010-09-26 18:34:29 -07:00
2010-12-16 14:43:14 -08:00
2010-09-26 18:34:29 -07:00
2010-12-21 02:16:08 -08:00
2010-12-21 02:16:08 -08:00
2010-09-26 18:34:29 -07:00
2010-09-15 22:06:05 -07:00
2010-10-12 17:36:09 +02:00
2010-08-04 21:53:17 -07:00
2010-09-21 18:04:47 -07:00
2010-12-12 22:08:17 -08:00
2011-01-04 09:48:35 -08:00
2010-12-11 11:46:36 -08:00
2010-09-26 18:34:29 -07:00
2011-01-01 14:02:24 -08:00
2011-01-01 14:02:24 -08:00
2010-10-24 16:25:39 -07:00
2010-09-26 18:34:29 -07:00
2010-12-21 02:16:08 -08:00
2010-09-26 18:34:29 -07:00
2010-09-26 18:34:29 -07:00
2010-12-06 11:03:48 -08:00
2010-09-26 18:34:29 -07:00
2010-12-16 14:43:14 -08:00
2010-11-12 12:21:18 -08:00
2010-12-16 14:41:35 -08:00
2010-12-08 10:23:36 -08:00
2010-12-21 02:16:08 -08:00
2010-11-09 09:17:56 -08:00