summaryrefslogtreecommitdiff
path: root/drivers/bluetooth
diff options
context:
space:
mode:
authorNeeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>2023-04-03 17:54:28 +0530
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2023-04-23 22:01:29 -0700
commit86d55f124b52de2ba0d066d89b766bcc0387fd72 (patch)
tree69159364984ff8ba38ba0e262e5b29f990bda8d6 /drivers/bluetooth
parent38a4f83d802caf5e7ec93a187d211d87b6d67800 (diff)
downloadlwn-86d55f124b52de2ba0d066d89b766bcc0387fd72.tar.gz
lwn-86d55f124b52de2ba0d066d89b766bcc0387fd72.zip
Bluetooth: btnxpuart: Deasset UART break before closing serdev device
This adds a call to ps_wakeup() before closing the serdev device, to de-assert UART break. Signed-off-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r--drivers/bluetooth/btnxpuart.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/bluetooth/btnxpuart.c b/drivers/bluetooth/btnxpuart.c
index 32e22044b6b2..12cc53c0b88b 100644
--- a/drivers/bluetooth/btnxpuart.c
+++ b/drivers/bluetooth/btnxpuart.c
@@ -1167,6 +1167,7 @@ static int btnxpuart_close(struct hci_dev *hdev)
{
struct btnxpuart_dev *nxpdev = hci_get_drvdata(hdev);
+ ps_wakeup(nxpdev);
serdev_device_close(nxpdev->serdev);
clear_bit(BTNXPUART_SERDEV_OPEN, &nxpdev->tx_state);
return 0;