Skip to content

Commit 13af95c

Browse files
prabhakarladgregkh
authored andcommitted
serial: sh-sci: Replace direct stop_rx/stop_tx calls with port ops in sci_shutdown()
Replace direct calls to sci_stop_rx() and sci_stop_tx() with port ops callbacks in sci_shutdown(). This enables the RSCI driver, which reuses the SCI core but implements its own stop_rx and stop_tx logic, to reuse sci_shutdown() without duplicating code. Signed-off-by: Lad Prabhakar <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 64a2e41 commit 13af95c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/tty/serial/sh-sci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2289,8 +2289,8 @@ void sci_shutdown(struct uart_port *port)
22892289
mctrl_gpio_disable_ms_sync(to_sci_port(port)->gpios);
22902290

22912291
uart_port_lock_irqsave(port, &flags);
2292-
sci_stop_rx(port);
2293-
sci_stop_tx(port);
2292+
s->port.ops->stop_rx(port);
2293+
s->port.ops->stop_tx(port);
22942294
s->ops->shutdown_complete(port);
22952295
uart_port_unlock_irqrestore(port, flags);
22962296

0 commit comments

Comments
 (0)