aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Cuissard <cuissard@marvell.com>2015-11-03 13:19:33 -0500
committerSamuel Ortiz <sameo@linux.intel.com>2015-11-04 18:32:25 -0500
commitd2d2e6456ebccb5d31163dcc3191d83183bbd0b5 (patch)
tree478fbb4d563bfe9afc233cea63f45f3da28d0911
parentfeacf0024bfea807d7302d4aff83b391ac6e4077 (diff)
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>
-rw-r--r--drivers/nfc/nfcmrvl/uart.c4
1 files changed, 3 insertions, 1 deletions
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)
192 ** up. we set BREAK. Once we will be ready to send again we will remove 192 ** up. we set BREAK. Once we will be ready to send again we will remove
193 ** it. 193 ** it.
194 */ 194 */
195 if (priv->config.break_control && nu->tty->ops->break_ctl) 195 if (priv->config.break_control && nu->tty->ops->break_ctl) {
196 nu->tty->ops->break_ctl(nu->tty, -1); 196 nu->tty->ops->break_ctl(nu->tty, -1);
197 usleep_range(1000, 3000);
198 }
197} 199}
198 200
199static struct nci_uart nfcmrvl_nci_uart = { 201static struct nci_uart nfcmrvl_nci_uart = {