From: Neeraj Sanjay Kale Date: Mon, 3 Apr 2023 12:24:28 +0000 (+0530) Subject: Bluetooth: btnxpuart: Deasset UART break before closing serdev device X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=86d55f124b52de2ba0d066d89b766bcc0387fd72;p=linux.git 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 Signed-off-by: Luiz Augusto von Dentz --- diff --git a/drivers/bluetooth/btnxpuart.c b/drivers/bluetooth/btnxpuart.c index 32e22044b6b2a..12cc53c0b88bd 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;