Skip to content

Commit 0eee615

Browse files
committed
Revert "crypto: montage: tsse_vuart: drop unused vuart_wait_for_xmitr()"
This reverts commit 355d339.
1 parent 355d339 commit 0eee615

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

drivers/crypto/montage/tsse/tsse_vuart.c

+18
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,24 @@ static void vuart_serial_out(struct uart_port *port, int offset, int value)
7474
writel(value, port->membase + offset);
7575
}
7676

77+
static void vuart_wait_for_xmitr(struct uart_port *port)
78+
{
79+
unsigned int status, tmout = 10000;
80+
81+
for (;;) {
82+
status = vuart_serial_in(port, VUART_FSR);
83+
if (FIELD_GET(VUART_FSR_TXFIFOE, status))
84+
break;
85+
if (--tmout == 0) {
86+
pr_err("%s:timeout(10ms), TX is not empty.\n",
87+
__func__);
88+
break;
89+
}
90+
udelay(1);
91+
touch_nmi_watchdog();
92+
}
93+
}
94+
7795
static unsigned int vuart_tx_empty(struct uart_port *port)
7896
{
7997
unsigned long flags;

0 commit comments

Comments
 (0)