aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/smsc
diff options
context:
space:
mode:
authorSahitya Tummala <stummala@codeaurora.org>2016-12-07 20:10:32 +0530
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-12-08 01:21:06 +0100
commit05a926227742b0bcbef366bbd710c4f6631c7d9f (patch)
tree34971d6748bcf6d3fb3503e1f5dd159cf61c98c0 /drivers/net/ethernet/smsc
parentPM / wakeirq: Fix dedicated wakeirq for drivers not using autosuspend (diff)
downloadlinux-dev-05a926227742b0bcbef366bbd710c4f6631c7d9f.tar.xz
linux-dev-05a926227742b0bcbef366bbd710c4f6631c7d9f.zip
PM / core: Fix bug in the error handling of async suspend
If async_suspend is enabled for parent and child devices, then PM framework has to ensure that parent's async suspend gets called only after child's async suspend is done. In case if child's async suspend fails with error, then parent's async suspend must not be invoked. The current code uses async_error to ensure this but there is a problem with it in __device_suspend(). This function notifies the completion of child's async suspend before updating its error via async_error variable. As a result, parent's async suspend gets invoked even though it's child suspend has failed. Fix this bug by updating the async_error before notifying the child's completion. Signed-off-by: Sahitya Tummala <stummala@codeaurora.org> [ rjw: Rearranged wthitespace ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/net/ethernet/smsc')
0 files changed, 0 insertions, 0 deletions