On 27/11/2019 06.56, Joakim Zhang wrote:
Could you help check the patch set? With your suggestions, I
have cooked a patch to exit stop mode during probe stage.
IMHO, I think this patch is unneed, now in flexcan driver,
enter stop mode when suspend, and then exit stop mode when resume.
AFAIK, as long as flexcan_suspend has been called, flexcan_resume will
be called, unless the system hang during suspend/resume. If so, only
code reset can activate OS again. Could you please tell me how does CAN
stucked in stop mode at your side?
Hi Joakim,
Thanks I'll test this :-)
Guess I will have do some hacking to get it stuck in stop mode.
We have a lot of devices in the field that doesn't have:
"can: flexcan: fix deadlock when using self wakeup"
And they have traffic on both CAN interfaces, that way it's quite easy
to get them stuck in stop mode.
/Sean