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

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
...@@ -192,8 +192,10 @@ static void nfcmrvl_nci_uart_tx_done(struct nci_uart *nu) ...@@ -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 = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment