Skip to content

Commit 355d339

Browse files
MingcongBaiopsiff
authored andcommitted
crypto: montage: tsse_vuart: drop unused vuart_wait_for_xmitr()
This function was not used anywhere. Signed-off-by: Mingcong Bai <[email protected]>
1 parent 9a517f5 commit 355d339

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

drivers/crypto/montage/tsse/tsse_vuart.c

-18
Original file line numberDiff line numberDiff line change
@@ -74,24 +74,6 @@ 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-
9577
static unsigned int vuart_tx_empty(struct uart_port *port)
9678
{
9779
unsigned long flags;

0 commit comments

Comments
 (0)