From nobody Tue Dec 2 00:26:11 2025 Received: from mail-wr1-f48.google.com (mail-wr1-f48.google.com [209.85.221.48]) (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 D1E1B3271FE for ; Tue, 25 Nov 2025 15:06:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764083208; cv=none; b=KXqsl8a8DhD0ocCafR5BOCKIeFn37LnVI5KqN9T3Ytj6Go3QKYppz37gV9MiHls/ZhovonUdwVSUKa3HwovKYFZR/0Aj+0eDquwEHP8lHWtd5HoMRY/6v7CqVNWYNTS1kk7/cllEil5hfnX03q+HnYoJI9MZnJop6z2dH3F0kBM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764083208; c=relaxed/simple; bh=Et690Nyk+pHGvb5l80zTzY2XD8G7Ab7SHaBdICOlCHA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=dykUvLHIMHEZJu3khN1lB1RMaUuP/KxbbWs05uIPxVyV8tEEzmIUC23UT7d1l5Ga/H85iuZAygnIQSQ4rbz5GeriQ3NrU8+G7Cf/2WhBNexTEsrGPhi5sLNMPaxceivVJIbDkA0TWpObgyUZUxG1PxNjSGreFFEOxBqzL4B4yck= 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=DQWPqBOo; arc=none smtp.client-ip=209.85.221.48 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="DQWPqBOo" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-42b39d51dcfso3398491f8f.2 for ; Tue, 25 Nov 2025 07:06:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764083204; x=1764688004; 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=7uBC2MlE1HUaPDZb990/KasBIbCj5RriVOgSLly0aqY=; b=DQWPqBOoJqbCl4InN4YsYk4GG0gcpbFXaVbWrzpY70oq9QWn6AC9I4FcdYmSQ+PHUI TVHbi+1DzZVhuSyo1p+fg3ft6Bd3YeTyB2LadK1U/LFnRYIh17RhQbBHujgpRwiEIi1Y grzcuPydxVzW/1dsBBSIQbSjmzOMCL8PbTvwbuyrPnC2GRTY4wCJI9XYO8qnn/AlXIG4 8moDXTCUvyZYGmlboBT1Bi5rTSLqDVw7N4JlZviAGQIPHb1AtLP9NkWkOJdUN9P8m9/4 eJZzGCS7vhz9IBkMx4/z6dP4X+8PTHs9XpHDiu0HM+dzyZGnp/XsGndA/Brdd523hi1m SX1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764083204; x=1764688004; 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=7uBC2MlE1HUaPDZb990/KasBIbCj5RriVOgSLly0aqY=; b=lTLm6EexDQu1MwwTzzsRbr1kN0ytNiS9o8oJiTBH+5JwhCchA3pM6WcuBJr0fSVa0E RhA2tTAxfuioMfqogDO4DpZGh/QBVB0b3jBXwPVVQeEZLry1pWLtOWMup1EQwdzDkSoo owmpKrxBef1+30RQr9WifZWpXdkLdlKJa23Uc6I62sn+4QpeUj2zrO88ekiWkT+n4G6l Zpml2IFi6CCHinuCsmtgMhN6r4sQhf2gfFOG7q1cdEamF6jKb7AClCfUKlDRRy1dHWEz j0xxZMsJbxD2xtwJhCPqHd4d0b1OVaLydsAzI/mX4GnzQ19bSf+s/hiwDPWdgv2PLg5C KRrw== X-Forwarded-Encrypted: i=1; AJvYcCUPEzhVyiD3YzjLrdJwQL1vUwJBnO9x6Musq3rEx02ReFJxc5fAJuZf1UqhRORTrezvfIJaJvTkHnfVKuU=@vger.kernel.org X-Gm-Message-State: AOJu0YxS6uNTP2N+CEz4nSNcG9EhgVVas5DLnqSGsXlt5rGSMrRGMTAE htU19Z800mDLXe5lbgSqZ+Qm+boD5t2IgORzAXFiEEWBlVZz/Z0lJJf4 X-Gm-Gg: ASbGncsojaIlG2AtZIfyj0tYKZdiOT8N7ATzFXx4+ab0bA0ujqgaaKnoUAw7jjZFmvo g+43xonMqGCLwkffNqLHi6C9dTcaw+w5h0pielSxHDjVPMYY6DBuufxk0dUpZHFuuVac2FTtnGa M3N8wFGPj8DRwIfONBZKJHmjQ2LBdqo9DusoKM4RJ8tbQOhRPPrlUNxRYRIBcTUml55UcxEe9B7 gRfNnbB2vrN8duS5Op+n/smrGgIU7IYKUpJSFltxbeUrY1iEP8W9fQmaSESD0NpgLca7II9fUZB go9p21MNDBSt4aGPAqk16Zsi9i4cEUSYpB3Wj0rQqmzUNYJd3XtnyngwwO4YE6hmWbMUm2Na1j8 HV6ShaysPjSsuD5bNs2TbbpGMhDuT9srVohEtuaSk5X8TKFH18lqxyeQvNEqPrX3DE67V4Q5EpE ePPb7GYz0dD0Fli1WdCRqpv3n1nEPGK6GNzfN34MaYs4H5JKdeg7quydsUI57YIdeqSfpqiubjL Nj2osrGE13Ikqm0GaLzXTf2rKU= X-Google-Smtp-Source: AGHT+IGhwA2qdHgjK6YzJJeEkagwt4swWh4uBsW/k/KPMyocV9syebEZD5VRePRYGEoDb7M2JT1+hg== X-Received: by 2002:a05:6000:1866:b0:427:580:998c with SMTP id ffacd0b85a97d-42cc1d0cf60mr16904982f8f.43.1764083203740; 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.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Nov 2025 07:06:43 -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 11/16] serial: sh-sci: Add RSCI_PORT_SCIF32 port ID Date: Tue, 25 Nov 2025 15:06:13 +0000 Message-ID: <20251125150632.299890-12-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 The RZ/G3E RSCI IP has 32-stage FIFO compared to 16-stage FIFO on RZ/T2H. Add RSCI_PORT_SCIF32 port ID to differentiate it from RZ/T2H RSCI and update sci_is_rsci_type() and sci_is_fifo_type() Signed-off-by: Biju Das --- v3->v4: * Dropped enum RSCI_PORT_SCI * Replaced the enum RSCI_PORT_SCIF->RSCI_PORT_SCIF32 * Moved rx_trigger update to later patch. v2->v3: * No change. v1->v2: * No change. --- drivers/tty/serial/sh-sci-common.h | 1 + drivers/tty/serial/sh-sci.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/tty/serial/sh-sci-common.h b/drivers/tty/serial/sh-sci= -common.h index 1b9480c7f4cb..abcd5bcc7c36 100644 --- a/drivers/tty/serial/sh-sci-common.h +++ b/drivers/tty/serial/sh-sci-common.h @@ -8,6 +8,7 @@ /* Private port IDs */ enum SCI_PORT_TYPE { RSCI_PORT_SCIF16 =3D BIT(7) | 0, + RSCI_PORT_SCIF32 =3D BIT(7) | 1, }; =20 enum SCI_CLKS { diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 08a1898f14ea..9afc3b8aae91 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 RSCI_PORT_SCIF16); + return (type =3D=3D RSCI_PORT_SCIF16 || type =3D=3D RSCI_PORT_SCIF32); } =20 static int sci_handle_fifo_overrun(struct uart_port *port) @@ -3548,7 +3548,8 @@ 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 RSCI_PORT_SCIF16); + type =3D=3D PORT_HSCIF || type =3D=3D RSCI_PORT_SCIF16 || + type =3D=3D RSCI_PORT_SCIF32); } =20 static void sci_remove(struct platform_device *dev) --=20 2.43.0