提交 03b0093f 编写于 作者: Z Zhengping Jiang 提交者: Luiz Augusto von Dentz

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: c1a74160 ("Bluetooth: hci_qca: Add device_may_wakeup support")
Signed-off-by: NZhengping Jiang <jiangzp@google.com>
Signed-off-by: NLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
上级 df570334
...@@ -1588,10 +1588,11 @@ static bool qca_wakeup(struct hci_dev *hdev) ...@@ -1588,10 +1588,11 @@ static bool qca_wakeup(struct hci_dev *hdev)
struct hci_uart *hu = hci_get_drvdata(hdev); struct hci_uart *hu = hci_get_drvdata(hdev);
bool wakeup; bool wakeup;
/* UART driver handles the interrupt from BT SoC.So we need to use /* BT SoC attached through the serial bus is handled by the serdev driver.
* device handle of UART driver to get the status of device may wakeup. * So we need to use the device handle of the serdev driver to get the
* status of device may wakeup.
*/ */
wakeup = device_may_wakeup(hu->serdev->ctrl->dev.parent); wakeup = device_may_wakeup(&hu->serdev->ctrl->dev);
bt_dev_dbg(hu->hdev, "wakeup status : %d", wakeup); bt_dev_dbg(hu->hdev, "wakeup status : %d", wakeup);
return wakeup; return wakeup;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册