From nobody Tue Feb 10 05:09:49 2026 Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 D6116313E02 for ; Fri, 14 Nov 2025 10:52:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763117533; cv=none; b=MKbDpCC3azMPBsg5MqkGiYirgvGRAC06IrAfr8Wi5iEnxCxR5znlQQIu4lH6t90i80meLJSE4lZmI4+8F7Xlw3IsOqeychXnnlglPk0giETF5GgPGH6MQU1aMxv3SAsZeG4nndu9+CPR5hAYU4ziANal4whxV9+Fu2gJ/HXnNso= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763117533; c=relaxed/simple; bh=JDFyzj52p8gGmebREXJka9Y1zAT1VPXuoiczO+R68IU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KjxZuVPRq/DwPfWZfxykQuZrCiWKs2DGLx+c9FIR9eNl2W5/OSi6NVLN8kVjXVovvig2g+l4RDonSSzROtIlxcWITaMXtwDW58SsdgY6c/fWR+WPDSA9ee8vlPZgu3xqezK5bbupt2kOVzevXu5BIYhtyfnQb/VxN+7Gjg8XsrM= 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=flcbMXG0; arc=none smtp.client-ip=209.85.128.42 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="flcbMXG0" Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-477632d45c9so13832045e9.2 for ; Fri, 14 Nov 2025 02:52:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763117529; x=1763722329; 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=1HE59SkHgerKKlNxfiNiqvQ/Oh6UzVvTwbF5Npt8Lw8=; b=flcbMXG0dgUfRQh4uTqiedUC9qqMyV2SNXtT3nn9FGstsmK0cG+76Rk5CGL5AaJwo9 DESifjG7eMimbrxOoj/u6mqSt6XBKQR6EfLbhUhyGCvW9bfTG50Cim+GmPio7UcMYyHG gaZ4N+GHJbxznnG80/mwH0xf2ib+2u/7Nwbh/vGRvkDi/960gIDtpaUPL8BxTpfkV6/S Lgm/MxZHa7Yv1X3oqBP6vIVrtg6UN5s3sLAN92fnvFvoeikIAV+EKu3XpnPTBE2A0ZS3 tEpm+cUxv0wDB255gkfFhPWGdwTAXdmDg912Qe+k7xF1RO9xgIFieFUpVNHF06q7u3mD VIiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763117529; x=1763722329; 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=1HE59SkHgerKKlNxfiNiqvQ/Oh6UzVvTwbF5Npt8Lw8=; b=tiprku/RYDI05qekHOSSlfrw4mCXPoJo6fsN97itER9iWX0fQ5I3dxTJ1LB5b4jMkn x4JOTcy6bzMzBVq91dnMQZanviRqXoByA9PaO0iNSz+5aH/MFWuCFMffW8y5BK4r6IoK lrCaA3Cw7CJk3yoy2vQvbJaCt1F6kGXtfodNcu9EhBNGCbnxmgY1Zd6R0LTIaXvZSs1v Td3mQHeTCe2juPV9LBrPFme0RNd8uobNAAASBWZijVIcteMDwQWm+LEie08gXO23HYYh gDtsJQsFr2u9fu+zzFPHFAw6IZJRKVsfWZe6yfDE/ztGS6lTS51o/gwo5MwhcZCu6ZVs o9ig== X-Forwarded-Encrypted: i=1; AJvYcCWqGHZq8bwEbq6iWVgUUEsspxDtb2bw3LMyDSf+3CjFP8sjyqTIb/93RfteBfx2BogWh4OEidZYnZgWToc=@vger.kernel.org X-Gm-Message-State: AOJu0YzqwEWCjGWkMBrWwsxQGdji34Aw24fXDz2GFm2PukIuxMkW3nMO mY2IqQAQTLVp/NoFKvJEifUOEtUgANb8v7E15hVhNmiDnvLu5n8G3xz0 X-Gm-Gg: ASbGncvYcJ/ZEMCf5XuH7mVfGxAaaRviqI+hcS9QFdgvRGs+LP6FzfdjMPFiO6PUp01 ukSTwe0GdHifhidaUNWYkWMrdoTycx1QHgIf8E5+tUXOk7Th+F3HXWexKG3DUsVRdHjOeXTaASN QWXDwwuOhhXspLUQBpRXSkIlAf2TeWBCyMMCqHqSlNn0AoOYXewILnagekEmVKNzeJBersFIpnt W349r2AqtKffdcQE2jSKc++n6IH9hWmW5kFsyQU3wJhXRsq5HFlT9rrGA6k+Y42N+9XCHyXZNu9 TL4yWLyRVSXqgjgn67CBbN2bfCilOkMo4ZWAHsZTRVLeocpr0LBt4cR90xA7JLyUM2fSpRVsqFZ t0WISDkMrQ6ht2GniAPj17iVylU7aS0e0kUUaWlCY4YvOr7T5vLOurTd30Z0dw7H1sPnxeNS28F PozG7y0A+eukY8TkDjBZmIgzmkMPRV+Z/cW2ICefPW/sEqiSV9gtJu0eZHv8jeiwPcw3wZ+B3SB 8++MV1lo4BZtZsU X-Google-Smtp-Source: AGHT+IENkbhcihRPvhZGWpf9PbgT3osv7NVPvnk/P4cCA7/vVF2AJ/GMHACD1iqN53motj1hl8eSvg== X-Received: by 2002:a05:600c:a47:b0:477:7a53:f493 with SMTP id 5b1f17b1804b1-4778fe78b15mr24098395e9.23.1763117528706; Fri, 14 Nov 2025 02:52:08 -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-42b53f17cbfsm9031255f8f.35.2025.11.14.02.52.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Nov 2025 02:52:08 -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 v3 07/13] serial: sh-sci: Add RSCI_PORT_{SCI,SCIF} port IDs Date: Fri, 14 Nov 2025 10:51:16 +0000 Message-ID: <20251114105201.107406-8-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20251114105201.107406-1-biju.das.jz@bp.renesas.com> References: <20251114105201.107406-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 RZ/G3E RSCI tx/rx supports both FIFO and non-FIFO mode. It has 32-stage FIFO. Add RSCI_PORT_SCI port ID for non-FIFO mode and RSCI_PORT_SCIF port ID for FIFO mode. Update the rx_trigger for both these modes. Signed-off-by: Biju Das --- v2->v3: * No change. v1->v2: * No change. --- drivers/tty/serial/sh-sci-common.h | 2 ++ drivers/tty/serial/sh-sci.c | 3 +++ 2 files changed, 5 insertions(+) diff --git a/drivers/tty/serial/sh-sci-common.h b/drivers/tty/serial/sh-sci= -common.h index e3c028df14f1..77f9a67d8efc 100644 --- a/drivers/tty/serial/sh-sci-common.h +++ b/drivers/tty/serial/sh-sci-common.h @@ -8,6 +8,8 @@ /* Private port IDs */ enum SCI_PORT_TYPE { SCI_PORT_RSCI =3D BIT(7) | 0, + RSCI_PORT_SCI =3D BIT(7) | 1, + RSCI_PORT_SCIF =3D BIT(7) | 2, }; =20 enum SCI_CLKS { diff --git a/drivers/tty/serial/sh-sci.c b/drivers/tty/serial/sh-sci.c index 78fb3b6a318b..66ab85571230 100644 --- a/drivers/tty/serial/sh-sci.c +++ b/drivers/tty/serial/sh-sci.c @@ -3326,6 +3326,9 @@ static int sci_init_single(struct platform_device *de= v, case SCI_PORT_RSCI: sci_port->rx_trigger =3D 15; break; + case RSCI_PORT_SCIF: + sci_port->rx_trigger =3D 32; + break; default: sci_port->rx_trigger =3D 1; break; --=20 2.43.0