Bluetooth: btnxpuart: Deasset UART break before closing serdev device
authorNeeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>
Mon, 3 Apr 2023 12:24:28 +0000 (17:54 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 24 Apr 2023 05:01:29 +0000 (22:01 -0700)
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>
drivers/bluetooth/btnxpuart.c

index 32e22044b6b2a5d76f5e4ea4b76166ac1c0c6b9e..12cc53c0b88bd08251d74e171c808afc3ecdad0e 100644 (file)
@@ -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;