MLK-20166 can: flexcan: fix CAN can't wakeup system during suspend
authorJoakim Zhang <qiangqing.zhang@nxp.com>
Fri, 9 Nov 2018 04:58:48 +0000 (12:58 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit80219af16d5227d463bbb5e8974659104c066884
treee01f630989b06be00f0add08f0737dead18d2a5f
parentd1607e19c8ae3c76bc2b9dd3e890e3436a4f3951
MLK-20166 can: flexcan: fix CAN can't wakeup system during suspend

The system can be wakeuped only when system is totally suspend, when the
wakeup event comes during suspend will cause the system hang. For the
reason that CAN will not call flexcan_noirq_resume() callback if the wakeup
event comes before noirq suspend stage.

The way to fix the issue is that assure the system to call
flexcan_noirq_suspend() during suspend and then call
flexcan_noirq_resume() during resume.

Signed-off-by: Joakim Zhang <qiangqing.zhang@nxp.com>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
drivers/net/can/flexcan.c