This patch intends to add CAN self wakeup support. The CAN controller can parse stop mode property from device tree to enable self wakeup feature. ChangeLog: V1->V2: *add a vendor prefix in property (stop-mode -> fsl,stop-mode). V2->V3: *add FLEXCAN_QUIRK_SETUP_STOP_MODE quirk. *rename function. *fix system can't be wakeuped during suspend. V3->V4: *normalize the code following Aisheng Dong's comments. Aisheng Dong (1): can: flexcan: add self wakeup support drivers/net/can/flexcan.c | 163 +++++++++++++++++++++++++++++++++++--- 1 file changed, 154 insertions(+), 9 deletions(-) -- 2.17.1