]> www.infradead.org Git - users/jedix/linux-maple.git/commit
serial: sh-sci: Replace direct stop_rx/stop_tx calls with port ops in sci_shutdown()
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Mon, 30 Jun 2025 20:23:21 +0000 (21:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2025 11:45:30 +0000 (13:45 +0200)
commit13af95c7f602cf3644f3145530ec2e80a88659eb
treeb3737e3f0ea50a98521c7a19da5b9435e58b8e90
parent64a2e41b8ef7771554374a0ac8386648fc6db2ba
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 <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20250630202323.279809-4-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c