Return-Path: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: [PATCH] Bluetooth: btmrvl: wait for HOST_SLEEP_ENABLE event in suspend From: Marcel Holtmann In-Reply-To: <1404248414-23650-1-git-send-email-bzhao@marvell.com> Date: Tue, 1 Jul 2014 23:24:26 +0200 Cc: Linux Bluetooth mailing list , "Gustavo F. Padovan" , Johan Hedberg , Scott James Remnant , Chin-Ran Lo , Jeff CF Chen , Amitkumar Karwar , Avinash Patil , Xinming Hu Message-Id: References: <1404248414-23650-1-git-send-email-bzhao@marvell.com> To: Bing Zhao Sender: linux-bluetooth-owner@vger.kernel.org List-ID: Hi Bing, > 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 > --- > drivers/bluetooth/btmrvl_drv.h | 1 + > drivers/bluetooth/btmrvl_main.c | 25 ++++++++++++++++++++++++- > 2 files changed, 25 insertions(+), 1 deletion(-) patch has been applied to bluetooth-next tree. Regards Marcel