Bluetooth: hci_qca: Stop collecting memdump again for command timeout during SSR
authorVenkata Lakshmi Narayana Gubba <gubbaven@codeaurora.org>
Tue, 28 Jul 2020 15:53:00 +0000 (21:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Aug 2020 06:24:02 +0000 (08:24 +0200)
commit6355a24b657cc7d0c92edafc325cc6eb856d2b1e
tree1959a84f7b7fbc5347bcdb41fe4a3fe77e64ebce
parent79baed5a17a3037cef5b41efe19e9348282ce89e
Bluetooth: hci_qca: Stop collecting memdump again for command timeout during SSR

[ Upstream commit 58789a1990c1a849a461ac912e72a698a771951a ]

Setting memdump state to idle prior to setting of callback function
pointer for command timeout to NULL,causing the issue.Now moved the
initialisation of memdump state to qca_setup().

Fixes: d841502c79e3 ("Bluetooth: hci_qca: Collect controller memory dump during SSR")
Signed-off-by: Venkata Lakshmi Narayana Gubba <gubbaven@codeaurora.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bluetooth/hci_qca.c