Skip to content

Commit 03b0093

Browse files
Zhengping JiangVudentz
Zhengping Jiang
authored andcommitted
Bluetooth: hci_qca: get wakeup status from serdev device handle
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: c1a7416 ("Bluetooth: hci_qca: Add device_may_wakeup support") Signed-off-by: Zhengping Jiang <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent df57033 commit 03b0093

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/bluetooth/hci_qca.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,10 +1588,11 @@ static bool qca_wakeup(struct hci_dev *hdev)
15881588
struct hci_uart *hu = hci_get_drvdata(hdev);
15891589
bool wakeup;
15901590

1591-
/* UART driver handles the interrupt from BT SoC.So we need to use
1592-
* device handle of UART driver to get the status of device may wakeup.
1591+
/* BT SoC attached through the serial bus is handled by the serdev driver.
1592+
* So we need to use the device handle of the serdev driver to get the
1593+
* status of device may wakeup.
15931594
*/
1594-
wakeup = device_may_wakeup(hu->serdev->ctrl->dev.parent);
1595+
wakeup = device_may_wakeup(&hu->serdev->ctrl->dev);
15951596
bt_dev_dbg(hu->hdev, "wakeup status : %d", wakeup);
15961597

15971598
return wakeup;

0 commit comments

Comments
 (0)