1
0
Fork 0

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: Vincent Cuissard <cuissard@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
hifive-unleashed-5.1
Vincent Cuissard 2015-11-03 19:19:33 +01:00 committed by Samuel Ortiz
parent feacf0024b
commit d2d2e6456e
1 changed files with 3 additions and 1 deletions

View File

@ -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 = {