From: Chin-Ran Lo Date: Tue, 1 Jul 2014 21:00:14 +0000 (-0700) Subject: Bluetooth: btmrvl: wait for HOST_SLEEP_ENABLE event in suspend X-Git-Tag: cleanup-for-v3.18~108^2~73^2~87^2~115 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=396e04f4bb9afefb0744715dc76d9abe18ee5fb0;p=pandora-kernel.git Bluetooth: btmrvl: wait for HOST_SLEEP_ENABLE event in suspend After BT_CMD_HOST_SLEEP_ENABLE command finishes, driver should wait until getting BT_EVENT_HOST_SLEEP_ENABLE event to complete suspend procedure. Without this patch the suspend handler would return success earlier. By the time when the BT_EVENT_HOST_SLEEP_ENABLE event comes in the controller driver could have already turned off the bus clock. This causes kernel crash or system reboot eventually. Cc: # 3.13+ Signed-off-by: Chin-Ran Lo Signed-off-by: Jeff CF Chen Signed-off-by: Amitkumar Karwar Signed-off-by: Bing Zhao Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed