net: jme: fix suspend/resume on JMC260
authorDiego Viola <diego.viola@gmail.com>
Tue, 23 Feb 2016 15:04:04 +0000 (12:04 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2016 06:40:40 +0000 (15:40 +0900)
commit1911c25b643550cdcb0e49652d57250eb00eef07
tree901080c92edcd54d1fb47a6ee7947e93396939ae
parentf808d9a02c64110f29218c3f4437f4d9282998ad
net: jme: fix suspend/resume on JMC260

[ Upstream commit ee50c130c82175eaa0820c96b6d3763928af2241 ]

The JMC260 network card fails to suspend/resume because the call to
jme_start_irq() was too early, moving the call to jme_start_irq() after
the call to jme_reset_link() makes it work.

Prior this change suspend/resume would fail unless /sys/power/pm_async=0
was explicitly specified.

Relevant bug report: https://bugzilla.kernel.org/show_bug.cgi?id=112351

Signed-off-by: Diego Viola <diego.viola@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/jme.c