sh_eth: fix wakeup event reporting from MagicPacket
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 1 Feb 2017 14:41:55 +0000 (15:41 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 1 Feb 2017 17:53:59 +0000 (12:53 -0500)
commit0cf45a3b1e2c47bbcc9e75cbed5c660492e297da
tree93e3f203282ea27a332bb640541c5c3e3fd5319f
parent5e2ed1329ee074229d5a2f4389035be818120980
sh_eth: fix wakeup event reporting from MagicPacket

If a link change interrupt happens along side the MagicPacket interrupt
and the link change interrupt is ignored the interrupt handler will
return and the wakeup event is not registered. Fix this by moving the
MagicPacket check before the link change check.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reported-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/sh_eth.c