]> www.infradead.org Git - users/jedix/linux-maple.git/commit
serial: sh-sci: Use private port ID
authorThierry Bultel <thierry.bultel.yh@bp.renesas.com>
Mon, 30 Jun 2025 20:23:22 +0000 (21:23 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Jul 2025 11:45:30 +0000 (13:45 +0200)
commit1d26517d11de7fc9408c22429b8e75963314420d
tree42925033836817be2f4afd92fb234c73de6d37b5
parent13af95c7f602cf3644f3145530ec2e80a88659eb
serial: sh-sci: Use private port ID

New port types cannot be added in serial_core.h, which is shared with
userspace.
In order to support new port types, the coming new ones will have
BIT(7) set in the id value, and in this case, uartport->type is
set to PORT_GENERIC.
This commit therefore changes all the places where the port type is
read, by not relying on uartport->type but on the private
value stored in struct sci_port.

Signed-off-by: Thierry Bultel <thierry.bultel.yh@bp.renesas.com>
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20250630202323.279809-5-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci-common.h
drivers/tty/serial/sh-sci.c