net: cpsw: halt network stack before halting the device during suspend
authorMugunthan V N <mugunthanvnm@ti.com>
Wed, 14 Nov 2012 09:07:57 +0000 (09:07 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Nov 2012 03:09:06 +0000 (22:09 -0500)
commit71380f9bb18200ec65ddd2ef117410d1229e2de2
tree73fb5daa9c6a1e86a342d5e365c24e2bb71cd210
parent549985ee9c723fea8fd7759b5046fb8249896d50
net: cpsw: halt network stack before halting the device during suspend

Move network stack halt APIs before halting the hardware to ensure no
packets are queued to hardware during closing the device during
suspend sequence.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c