MLK-11307 net: fec: disable timer interrupt when link down and suspend
authorFugang Duan <b38611@freescale.com>
Fri, 31 Jul 2015 04:27:05 +0000 (12:27 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:47:28 +0000 (14:47 -0500)
commit645779e618800c127fd1227ffa1e8ff018a32b5d
tree3b6ae6707cc2bd03613d530cdcb22fafd34ed0d7
parent220dbd639376064cc3d0336c9044cdeeefd28467
MLK-11307 net: fec: disable timer interrupt when link down and suspend

There exists one issue in Android environment when do power key on/off
test that cause system hang. Because suspend function disable enet all
clocks while timer interrupt comming that introduces registers access.
When link down and suspend, the timer interrupt is not necessary
to enable, so disable it.

Signed-off-by: Fugang Duan <B38611@freescale.com>
Tested-by: Fugang Duan <B38611@freescale.com>
Tested-by: Chen Guoyin <B07211@freescale.com>
Tested-by: Zhu Wenbo <B52619@freescale.com>
(cherry picked from commit: 048f62891bc4936991fd58dbaf4a606a30282404)
drivers/net/ethernet/freescale/fec.h
drivers/net/ethernet/freescale/fec_main.c