From nobody Mon Dec 1 22:38:18 2025 Received: from mail-wm1-f50.google.com (mail-wm1-f50.google.com [209.85.128.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 1A3823115A6 for ; Sat, 29 Nov 2025 16:43:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.50 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764434623; cv=none; b=VcjgcPxGNtDv6EgVo3pG0UIlKEmemwv2CD9Nklukj+khr7srJgTa3MmZfKedQu7P0yEO4JTu3wAidKPV/FONoTtfqpJ4sd/qnRnLXzOo5qHxT9EzxhHGli2lgCZwV41W2pnybBshf+qFOVKM16aN5chkKwtpsdaZGH9uGmYuhpI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764434623; c=relaxed/simple; bh=p1WYEv6A1wFU0XW9CE8LVYfeNV+9/VBPGL1bg8wroOo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=YwmUMZwYgCsFthWp4FqH4FlazmqclVIJHMqnYTEL4U30r6Ecdoj88TJ9xQotRMk3RmJThFyVTI9fHQU7LhCwsF5C9NrRLiGOmgJK81LuIj6/ag3U+wf6lsQYTCVFxOrL02Ip/w3JTP5frj0Hv+ontH2vciALjtBZS4P9eyfHRTE= 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=FaGc2Ion; arc=none smtp.client-ip=209.85.128.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="FaGc2Ion" Received: by mail-wm1-f50.google.com with SMTP id 5b1f17b1804b1-477ba2c1ca2so31425375e9.2 for ; Sat, 29 Nov 2025 08:43:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764434617; x=1765039417; 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=sV/phN61ONyLTDZca1RG2tB5jror9Wjo3bt6PCNvA8w=; b=FaGc2IonMgOC3NKAyIFg5urqx4KR7cT1xrVEwhJZwXpEBOKeUKzvA20tx440D/yH4F wvTIMyT8B+L5FPTXc13JwBtO2iIL/63tsbP7yKRB9qYE3JpjDezarIWC0py3TgtJToor dTED++0iGF9MiTTxIFmtJGPjbIifFaaWs0XKA16ru0WZYYQInKR/mmDUvphz3yVmhCRK eScIf+VWMfejWyCAq1Hha82jBr864n1Yzm79vP3wGW4FOacE+g9ibnBasSSCfk0ANqhW gYC3CxhnW7Wl6dcLXITCnTpeHnsm/Qv4ThmhJaNkFcc1t0QhefWeFlZC2QXOfYRxFFCC Lh3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764434617; x=1765039417; 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=sV/phN61ONyLTDZca1RG2tB5jror9Wjo3bt6PCNvA8w=; b=LQZxvYt2J+HMdt6rW/lgUJ1HMrdmK8FXCOcUsjP69dZ5XcAzJo7MQVpufI4489UKzm yZa8K3n33XmyvqzFtr+/o/8CdjlYNHuig16wgZyOTcN33HjYFdJJombvY+NuPSfT8uL/ 8xAOgVZBGQkwBZHd5hEAn/6IjLRaL+9ETBesBmoKj/QQZhPuHsfNfP8zHTQZtpIFROIk KJalh9JE0zbaBv/ulpAZZLhxPioJbKEl49UEQEmhrIo70rTBuIKRDVqhFtiJyZ606ZrH +lz7I9CjRB/JXCY5ecp13ykneV2qZzL7GmCKmSB+WhxBwEu8LE9XV+eUGBBdarAPIOI9 NJjQ== X-Forwarded-Encrypted: i=1; AJvYcCV6/nDPELJRUEv0L5OJHuCZ0lsL2p5EDal+XJAGsVUqBg/gEuRJ3VBK1G9JZTf08ASbtJSIIGx4bYjIy8Y=@vger.kernel.org X-Gm-Message-State: AOJu0YzbeeqmkfVEnSb6O1V4jgwvt+lWpibQ3XsVVsIik0t0Wrl+OrJF uzKBtqnkQZ87mqx+pRXJzcLqj4XPDgE7BW73tl31OuDqe0p1fFuT+JWf X-Gm-Gg: ASbGncvucP1+foxLPP4JThe6VTxGa3rEcFAuu0bEsXauqOSiva6FgviCakN49mYvPvQ 03ynDoZ0TpXFycfAKvsbBN80yvsq5rQYItrwAiU1qf+L6yWJj6qG6fnS2ndu6uDZudEWKuH5UxX a1zck9V3AcApHXsjIKBwTtZ0TfroO7n5O+k25t8C5jnrdmVazht9QukgnPNFozSFacG6kS0G68R RSeT0IY72It3BFlY9GmSGq2tlK1qhZenz9RVm70I3KXfzYU+FF2xXVNp6lvLR/K0/dOVqBOdtzB 20DL7z+BLQA5tEykh/K7beEgoK3XX98DYylDM/aSmYZtD8iWPyaD4ybVkOjgTuDDskGwVAS7wcX 13iXQL6S3svd59vIJ/66ZesFQ0xkFNqjPexj06O9KcOJkYF4Cxd8TvhdYD027kSHvJlLpNfewu1 nKWglI7X7+ybTg9fneCNt7bBSaqh/6IvwgPN8tbXAlCS+KMfLUoukBrZRTLJNCP9hY5eM1GvETL 2LoT1p+Y+02Pkiz X-Google-Smtp-Source: AGHT+IGzNOuP5I+gYgfGj36btSZCyfRIbYTuTX4epxDNVcEZ+n3U8KnYkaRTC3aJ8GzwGl3RatIGvg== X-Received: by 2002:a05:600c:4e8c:b0:477:8b77:155e with SMTP id 5b1f17b1804b1-47904af05b5mr211140525e9.15.1764434616629; Sat, 29 Nov 2025 08:43:36 -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-42e1ca4078csm15970060f8f.29.2025.11.29.08.43.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Nov 2025 08:43:36 -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 v5 12/17] serial: sh-sci: Add RSCI_PORT_SCIF32 port ID Date: Sat, 29 Nov 2025 16:43:08 +0000 Message-ID: <20251129164325.209213-13-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251129164325.209213-1-biju.das.jz@bp.renesas.com> References: <20251129164325.209213-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 --- v4->v5: * No change. 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 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 624ef41701f2..a63370f22574 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) --=20 2.43.0