Bluetooth: hci_qca: get wakeup status from serdev device handle
authorZhengping Jiang <jiangzp@google.com>
Thu, 2 Feb 2023 17:47:01 +0000 (09:47 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:39:15 +0000 (09:39 +0100)
commit0e872b4da7c6bfdcad7c5faac7af61ffa9cf3da0
tree415222cedd993f6866ae5c2b6b12b3024ace439d
parent31a288a4df7f6a28e65da22a4ab2add4a963738e
Bluetooth: hci_qca: get wakeup status from serdev device handle

[ Upstream commit 03b0093f7b310493bc944a20f725228cfe0d3fea ]

Bluetooth controller attached via the UART is handled by the serdev driver.
Get the wakeup status from the device handle through serdev, instead of the
parent path.

Fixes: c1a74160eaf1 ("Bluetooth: hci_qca: Add device_may_wakeup support")
Signed-off-by: Zhengping Jiang <jiangzp@google.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/bluetooth/hci_qca.c