MLK-10131 flexcan: fix wakeup unwork issue
authorDong Aisheng <b29396@freescale.com>
Thu, 22 Jan 2015 13:48:07 +0000 (21:48 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:59 +0000 (14:48 -0500)
Original code will always disable flexcan during suspend no matter whether
wakeup feature is enabled.
It's caused by merge issue when doing kernel upgrade.

Fix it by removing that disable code.

Signed-off-by: Dong Aisheng <b29396@freescale.com>
(cherry picked from commit 55c8670332973d3184816d3d16c2c3e07681c781)

drivers/net/can/flexcan.c

index 6cc0590..d996e71 100644 (file)
@@ -1394,7 +1394,7 @@ static int __maybe_unused flexcan_suspend(struct device *device)
                        err = flexcan_chip_disable(priv);
                }
        } else {
-               flexcan_chip_disable(priv);
+               err = flexcan_chip_disable(priv);
        }
        priv->can.state = CAN_STATE_SLEEPING;