Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d2d2e645 authored by Vincent Cuissard's avatar Vincent Cuissard Committed by Samuel Ortiz
Browse files

NFC: nfcmrvl: add a small wait after setting UART break



A small wait is inserted to ensure that controller has enough
time to handle the break character.

Signed-off-by: default avatarVincent Cuissard <cuissard@marvell.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent feacf002
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -192,8 +192,10 @@ static void nfcmrvl_nci_uart_tx_done(struct nci_uart *nu)
	** up. we set BREAK. Once we will be ready to send again we will remove
	** up. we set BREAK. Once we will be ready to send again we will remove
	** it.
	** it.
	*/
	*/
	if (priv->config.break_control && nu->tty->ops->break_ctl)
	if (priv->config.break_control && nu->tty->ops->break_ctl) {
		nu->tty->ops->break_ctl(nu->tty, -1);
		nu->tty->ops->break_ctl(nu->tty, -1);
		usleep_range(1000, 3000);
	}
}
}


static struct nci_uart nfcmrvl_nci_uart = {
static struct nci_uart nfcmrvl_nci_uart = {