From nobody Tue Dec 2 00:25:50 2025 Received: from mail-wr1-f50.google.com (mail-wr1-f50.google.com [209.85.221.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4EEA5329362 for ; Tue, 25 Nov 2025 15:06:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764083208; cv=none; b=rtvQQZkd7JJPQ20/uYVFDnIK1FCzA4ZYuC/vvyfABi+6eJhvZq/9ALQ3aldhDyps+marzxN6tF8IlQHPfyj88MskD2PtQ42uZGWstpY9uylWs8RSn/B/Qx3uKsb6Vzac266Dha96LlMOoIX7qZiYZMoVL/hpiCurvcvSSgz9nk0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764083208; c=relaxed/simple; bh=Y9Og79ZAp1LzlNRB/+j1NPNbgm1v4IaiVXeLQZ1UcbA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ehHFBaGTji9bESrETYDCJTVsV+kj/XFOWMxdcsqMwYMGixMmQ9ZFHLQSx+HiXmX/tniuoT4KsNf15TmaC5U5a6ZMzxrhS84jGHzkFM6Me5upwDnfKe1Den2vBm461WoGXDcz/KZ2SnpkarNRWTHmgcxfOi+YCM3Z1iwFHgoss9E= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Qnu1bQBz; arc=none smtp.client-ip=209.85.221.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Qnu1bQBz" Received: by mail-wr1-f50.google.com with SMTP id ffacd0b85a97d-42b379cd896so3127278f8f.3 for ; Tue, 25 Nov 2025 07:06:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764083203; x=1764688003; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=KQBggaWsGLbsTfz97O6p05mhqq7oFm4UAg4lh0dmr5w=; b=Qnu1bQBzuBB+12kdzy/dmdvb/C+WXI2l6K30U/NZqR90pITourjJjnQH24cC3Qad96 nnM4NucDPlRNDpybB5SJ0JxISJA2vSoE0wVRVGtEMbfZxXqnrVfHO6r0mKrCC/1sfKQ/ GVUITp8fMv1ukAahFzOPFJe/flz/fxyc7lrPabkStc8cJksIEYye+dWTXxAzvkgivvRR WfxWDge9fBuZXTTjAMbMYgWA87aNAiToe0G0WocSnLA7BvlQIVAgL1jaZVus3WlgbAV2 eZrqkjIGlV9FR5tKAWSPu4anugcVDWxFuinAqZEBBmEXRs6ST4F7MBXZbye1IpnVGyg+ gA+g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764083203; x=1764688003; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=KQBggaWsGLbsTfz97O6p05mhqq7oFm4UAg4lh0dmr5w=; b=vDq7WZacp2CSzCulj+R//wt89++X1zHCpHFHeyowIgO5HkfSdNxVzjNtC/PLG9DQh8 taWb6xH6dTSnXCMTg5XIMYGcC+PCRI62z5wEAZWUpc4Q97WHxiPnnVDR3zBj4IES/o17 PLCWYOnMDw5g7ap+9w8chsoKGxIWAtPjcu9DNaZHHrh6ZRhKpSbSlX3A0oVBTkx98qMK Ky130ehpK9zblZoybguuh0rj2h66mL1TSI8/tdL50sqtCDRwtgqtUJUDt09F588yPrZs zcBxEzhIq7hs6rgqb+Jeu7WGU+oBwcr/BUUpM1f81NnqT0oH9pVnxoQAh2TkmuYKEwB9 6f8g== X-Forwarded-Encrypted: i=1; AJvYcCULWVsoulDxQmyyG9xlEGwlFVKJAabBmsEgRhf2D8MvX+9HCBO7i9uc8Tl3coXnWGCLGt3Dr/JKqG5uccg=@vger.kernel.org X-Gm-Message-State: AOJu0YwXT8J6gkwref+VHXpBBqmpAziMsCwaYwsZia9k/OiigCxsIQMh aAHtyCjKB/mtSBC9LjgSZi3mIe1QgLwChuAWw67rpHx4TLfZGo/wN/1h X-Gm-Gg: ASbGncvYNw1D5Z3z9La2+xnpnbq7wIhQVspw5RoRG/IwwRW7Pbsi7l6JLteW8xHpt64 seYXVHfNh7JpzP+BqKb9kAAvbYlTCri16LjaGaKvB2EsXtgcw4cOmR503FvzFpsQWXarpQ1QJVX Tyq7UuYg2ijGtZ4NpYYFcRcC/TLAwmbcPURMbVA0th9gtcsu9WQk/tO2sHnBZZ7VWfhxIBZRPNR Wp9uWlw353LbVf4mftcxPqHl9xrhdTIHT3Trm38+ksIEEbXH6C0mDL2CMr/HO6zlFwhAaTkGVwp PPhHVQpa7fp9oDmGTkfK1LXvGNE5BwoVv84l2bV/d3jRZb5y8wqD/BYDjoJHYoL34A//+L9DRV/ Wl5L7I9S9p2MSVOHHvg4x/XW3tI/ATAKVVPH7WNjuZffZwFPOBQjVrrlqQpxc3rwR+KnLCqkbgF mXYdn2HHR6H+gaoPFJ7jkIBAG6uX1E84h8xmkcAdiwou+Kpt10+TBURKYTiKdxcLcfPrA7dO/Ki GOLo2gJGQvCyzWi X-Google-Smtp-Source: AGHT+IHY3RAScU6Nx94JkJj3C7pct+wKtm7jPjdtRPYHB33Drum3deOmgXGvKEWzPIL7rdg62WgVbw== X-Received: by 2002:a5d:5d02:0:b0:42b:3339:c7ff with SMTP id ffacd0b85a97d-42cc1d19a16mr17579997f8f.43.1764083203179; Tue, 25 Nov 2025 07:06:43 -0800 (PST) Received: from localhost.localdomain (host86-162-200-138.range86-162.btcentralplus.com. [86.162.200.138]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-42cb7fba201sm34797809f8f.32.2025.11.25.07.06.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Nov 2025 07:06:42 -0800 (PST) From: Biju X-Google-Original-From: Biju To: Greg Kroah-Hartman , Jiri Slaby , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Geert Uytterhoeven , Magnus Damm Cc: Biju Das , Wolfram Sang , Lad Prabhakar , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Biju Das Subject: [PATCH v4 10/16] serial: sh-sci: Rename port SCI_PORT_RSCI->RSCI_PORT_SCIF16 Date: Tue, 25 Nov 2025 15:06:12 +0000 Message-ID: <20251125150632.299890-11-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251125150632.299890-1-biju.das.jz@bp.renesas.com> References: <20251125150632.299890-1-biju.das.jz@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Biju Das Rename port SCI_PORT_RSCI->RSCI_PORT_SCIF16 to differentiate it from RZ/G3E port that has 32-stage FIFO. Signed-off-by: Biju Das --- v4: * New patch. --- drivers/tty/serial/rsci.c | 2 +- drivers/tty/serial/sh-sci-common.h | 2 +- drivers/tty/serial/sh-sci.c | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/tty/serial/rsci.c b/drivers/tty/serial/rsci.c index 5d43e8cdbc0d..c5d373ee494f 100644 --- a/drivers/tty/serial/rsci.c +++ b/drivers/tty/serial/rsci.c @@ -445,7 +445,7 @@ static const struct sci_port_ops rsci_port_ops =3D { }; =20 struct sci_of_data of_sci_rsci_data =3D { - .type =3D SCI_PORT_RSCI, + .type =3D RSCI_PORT_SCIF16, .ops =3D &rsci_port_ops, .uart_ops =3D &rsci_uart_ops, .params =3D &rsci_port_params, diff --git a/drivers/tty/serial/sh-sci-common.h b/drivers/tty/serial/sh-sci= -common.h index e3c028df14f1..1b9480c7f4cb 100644 --- a/drivers/tty/serial/sh-sci-common.h +++ b/drivers/tty/serial/sh-sci-common.h @@ -7,7 +7,7 @@ =20 /* Private port IDs */ enum SCI_PORT_TYPE { - SCI_PORT_RSCI =3D BIT(7) | 0, + RSCI_PORT_SCIF16 =3D BIT(7) | 0, }; =20 enum SCI_CLKS { diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 914bdb41ccc6..08a1898f14ea 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -1184,7 +1184,7 @@ static int sci_handle_errors(struct uart_port *port) =20 static bool sci_is_rsci_type(u8 type) { - return (type =3D=3D SCI_PORT_RSCI); + return (type =3D=3D RSCI_PORT_SCIF16); } =20 static int sci_handle_fifo_overrun(struct uart_port *port) @@ -3178,7 +3178,7 @@ static int sci_init_clocks(struct sci_port *sci_port,= struct device *dev) =20 if (sci_port->type =3D=3D PORT_HSCIF) { clk_names[SCI_SCK] =3D "hsck"; - } else if (sci_port->type =3D=3D SCI_PORT_RSCI) { + } else if (sci_port->type =3D=3D RSCI_PORT_SCIF16) { clk_names[SCI_FCK] =3D "operation"; clk_names[SCI_BRG_INT] =3D "bus"; } @@ -3190,7 +3190,7 @@ static int sci_init_clocks(struct sci_port *sci_port,= struct device *dev) if (IS_ERR(clk)) return PTR_ERR(clk); =20 - if (!clk && sci_port->type =3D=3D SCI_PORT_RSCI && + if (!clk && sci_port->type =3D=3D RSCI_PORT_SCIF16 && (i =3D=3D SCI_FCK || i =3D=3D SCI_BRG_INT)) return dev_err_probe(dev, -ENODEV, "failed to get %s\n", name); =20 @@ -3328,7 +3328,7 @@ static int sci_init_single(struct platform_device *de= v, else sci_port->rx_trigger =3D 8; break; - case SCI_PORT_RSCI: + case RSCI_PORT_SCIF16: sci_port->rx_trigger =3D 16; break; default: @@ -3548,7 +3548,7 @@ static struct uart_driver sci_uart_driver =3D { static bool sci_is_fifo_type(u8 type) { return (type =3D=3D PORT_SCIFA || type =3D=3D PORT_SCIFB || - type =3D=3D PORT_HSCIF || type =3D=3D SCI_PORT_RSCI); + type =3D=3D PORT_HSCIF || type =3D=3D RSCI_PORT_SCIF16); } =20 static void sci_remove(struct platform_device *dev) --=20 2.43.0