Commit 9d268ac5 authored by Devin Kim's avatar Devin Kim Committed by Iliyan Malchev
Browse files

PM / Sleep: Prevent waiting forever on asynchronous suspend after abort

commit 1f758b23 upstream.

__device_suspend() must always send a completion. Otherwise, parent
devices will wait forever.

Commit 1e2ef05b, "PM: Limit race conditions between runtime PM and
system sleep (v2)", introduced a regression by short-circuiting the
complete_all() for certain error cases.

This patch fixes the bug by always signalling a completion.

Addresses http://crosbug.com/31972



Tested by injecting an abort.

Change-Id: I1402360f8af760cfdf66f8830bd8db4b1b676c47
Signed-off-by: default avatarMandeep Singh Baines <msb@chromium.org>
Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a5f830ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment