From: Vincent Cuissard Date: Tue, 3 Nov 2015 18:19:33 +0000 (+0100) Subject: NFC: nfcmrvl: add a small wait after setting UART break X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=d2d2e6456ebccb5d31163dcc3191d83183bbd0b5;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Samuel Ortiz --- diff --git a/drivers/nfc/nfcmrvl/uart.c b/drivers/nfc/nfcmrvl/uart.c index b33249bec419..b4c4796dd23e 100644 --- a/drivers/nfc/nfcmrvl/uart.c +++ b/drivers/nfc/nfcmrvl/uart.c @@ -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 ** 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); + usleep_range(1000, 3000); + } } static struct nci_uart nfcmrvl_nci_uart = {