summaryrefslogtreecommitdiff
path: root/drivers/dma
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2015-05-18 17:24:34 +0200
committerStefan Agner <stefan.agner@toradex.com>2015-08-04 17:51:29 +0200
commita4985acb14bbc320c2011266232911052cb259c1 (patch)
tree4f33c078d102df407d12b3d36f167cf2cd8e1973 /drivers/dma
parentef647356c826291dbe5be6685357cbbe532d2651 (diff)
can: mcp251x: fix resume when device is down
If a valid power regulator or a dummy regulator is used (which happens to be the case when no regulator is specified), restart_work is queued no matter whether the device was running or not at suspend time. Since work queues get initialized in the ndo_open callback, resuming leads to a NULL pointer exception. Reverse exactly the steps executed at suspend time: - Enable the power regulator in any case - Enable the transceiver regulator if the device was running, even in case we have a power regulator - Queue restart_work only in case the device was running Fixes: bf66f3736a94 ("can: mcp251x: Move to threaded interrupts instead of workqueues.")
Diffstat (limited to 'drivers/dma')
0 files changed, 0 insertions, 0 deletions