From nobody Mon Dec 1 22:38:18 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 4201B30FC17 for ; Sat, 29 Nov 2025 16:43:34 +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=1764434616; cv=none; b=RrPUzsKiSUvtsejhZ6x7kOE/1JaZZhsGXO+rvR/rWbjNAnk1P1F3q+Kwi0B22mstvasDutXJmXOEeruDNDdLRf9WHWyYhVWtuptGstOkbH0o6gzx6+fk2VwsD3QiovOGzDCaPPTz6HTMBd2RNw843D8x7B2vvSk0R22RZMxIMfU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764434616; c=relaxed/simple; bh=JeGL3ElzjhFDe5gkRo0pGSJ9Zmn7qOBrKpWwqsVnGOo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=H9KWOrDt2tmOPNcFpTFXRNUmTnqOe8/q8UPywPNNMHbqYQbP16YWu4KaXmYHD9kPJI7oPEgUd88O78GuU/bRklKu9haRKSpfuWfXVpochtbG0u0f/DvG6PH/33VupCluLFHKirDlaDX29CG/6u9G8D2mLmXLRa73kwfoRQohzAw= 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=Rf6pxYcB; 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="Rf6pxYcB" Received: by mail-wr1-f48.google.com with SMTP id ffacd0b85a97d-42e2e236ffcso17115f8f.3 for ; Sat, 29 Nov 2025 08:43:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764434612; x=1765039412; 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=n/i48prZesR9jVGUqmsTO5g48NzR6nsuZnqBSo+p3l0=; b=Rf6pxYcBswQmmNP96A8fqQxB2W47HX6VdfT8SCyY07E1kdbf+mXzr2ii93TfRoPvGF 6sXmuW1bFKWiPp83idWq6zu3kgERzegLfrFNp/KLjg3w+JttrQsrek78ZP/8YqvmSd90 0izN1DqgrH84reAYh4xSqXzsk8xqF3L9yxxLuNsJlMaqrHqrU/iJkwaQv2jv6XPE6d2B yGSZ+2P/x4x2F7+HstsnNsoo0WoLooB/NXtI9xVl/1+p2PrME13ZPf/qhOpf23riIOMQ 32NMfE1binuqcUXkgKbbsogevODSr0lKCzs+/yS65c+IABWk0IiDNnGWKGq7ClP4iF1z BAXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764434612; x=1765039412; 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=n/i48prZesR9jVGUqmsTO5g48NzR6nsuZnqBSo+p3l0=; b=WkZaBj9NyUth3CkVsYF/QVmKsmcPWQDpWBmXPh+bk5oEyPQCMiFzG+oqc0U93hwQO5 JoRBnRzzHCh3LRJmIo/THLZCvBYfd4/EBuBj7l44d3OTEQy/9AcYnPaX7xo/KgrsdbBa NjfuUfuk7oCAP6vlbb+mJy+QeGz1kxwL03L0MnRAhRWGYbaszzZXkoO1HpuJhXK9+DHb chQJLcv3bKSAleQ6yBp/eSsI3lgnOxtxSWnT57/nEPJJqabPFyWVdZQYlD3BEHYuj6oV tEhMOrHZbnEcOQnGTjIvHY2ho7/tSwDAeTzukrnGI9Kvwn1P4ZkZyznQ0v6BEGE+I1jW AQEA== X-Forwarded-Encrypted: i=1; AJvYcCW6t2M8rAMMR28oNq5f22EE61dBSTXHyrqEdkq/L3pHLPkoUkbGlkp7+tGb2NlyrjCzDcRl5Tc6CMkXKXY=@vger.kernel.org X-Gm-Message-State: AOJu0YyQoPjckxpZ2/hvLROYYpf9BAlK/a/VA7a/j3dtBRLoxszbpMQr +Y+CVwd21+RDE6MfLC+dEO7AfuxL4pd0QWZf0JLH6yxJxHrLy3o0ccSm X-Gm-Gg: ASbGncuJ0i1ZuhOxjjIl7AnDE8EFiLqLecG64YGRT1JvCmzJWZSr8IK2DvGHxw5BkxX 5qfm1ZiSRbhnvkmqgxVgr368c9G8NGaeo+p0NPLwbCZWq0VgrbH4yYl4KexkdhY8tQEjFhw58W2 b67rMtyhL7eYnDQCC0Xm4rBvPIogChih2/CKxD5IbkliYHocLKzcqgvXL478CnOfYJ7W9Vdyekt 3RZ5id4pmPEm0XMZ1q9pC/dsy379C3IGflQpYaU9zShqgg8hUUDOvnzVpOfp0Y4ekOp1ZW7dANB yHbs5cqpYA2rd1onBdMLjrQXvcrSuK69HDrh2D6g0faLyfo8b8/WjzmxW4wRaiCcjECAssesVWM MwZRx6lw1AAOf9qB6lhnqU7vC8koqrSthyw4g96g9zLRW1/6Q1TR0RAtk0YGVvadKHAXADOaaX1 CPAEDo4+Tm7DjvZ/dVVMhVG5maQ5gzjdz1Nm0wCs4i+amojTqJTnev1F4DSBMFgJjYnSyPWzgw7 oq/wntt6zOCzlS9 X-Google-Smtp-Source: AGHT+IGxj7ba1E5miOzJbglHbxcrQkMvdt74dqab851RnPSR9g9DUqPe7xC8ewgDMOgqKUhpJj/iqQ== X-Received: by 2002:a05:6000:2c0b:b0:429:d391:642e with SMTP id ffacd0b85a97d-42cc1cf461emr31964337f8f.30.1764434612125; Sat, 29 Nov 2025 08:43:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 29 Nov 2025 08:43:31 -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 05/17] serial: rsci: Drop rsci_clear_SCxSR() Date: Sat, 29 Nov 2025 16:43:01 +0000 Message-ID: <20251129164325.209213-6-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 Drop rsci_clear_SCxSR by reusing rsci_clear_CFC() as the contents of both functions are the same. Reviewed-by: Geert Uytterhoeven Signed-off-by: Biju Das --- v4->v5: * No change. v3->v4: * Collected tag * Updated commit header and description * Dropped rsci_clear_SCxSR() instead of rsci_clear_CFC() as it clears the CFCLR register. v2->v3: * No change. v1->v2: * No change. --- drivers/tty/serial/rsci.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/tty/serial/rsci.c b/drivers/tty/serial/rsci.c index 0533a4bb1d03..158173077c2f 100644 --- a/drivers/tty/serial/rsci.c +++ b/drivers/tty/serial/rsci.c @@ -137,10 +137,6 @@ static void rsci_clear_DRxC(struct uart_port *port) rsci_serial_out(port, FFCLR, FFCLR_DRC); } =20 -static void rsci_clear_SCxSR(struct uart_port *port, unsigned int mask) -{ - rsci_serial_out(port, CFCLR, mask); -} =20 static void rsci_start_rx(struct uart_port *port) { @@ -391,7 +387,7 @@ static void rsci_poll_put_char(struct uart_port *port, = unsigned char c) } rsci_serial_out(port, TDR, c); done: - rsci_clear_SCxSR(port, CFCLR_TDREC); + rsci_clear_CFC(port, CFCLR_TDREC); } =20 static void rsci_prepare_console_write(struct uart_port *port, u32 ctrl) @@ -464,7 +460,7 @@ static const struct uart_ops rsci_uart_ops =3D { static const struct sci_port_ops rsci_port_ops =3D { .read_reg =3D rsci_serial_in, .write_reg =3D rsci_serial_out, - .clear_SCxSR =3D rsci_clear_SCxSR, + .clear_SCxSR =3D rsci_clear_CFC, .transmit_chars =3D rsci_transmit_chars, .receive_chars =3D rsci_receive_chars, .poll_put_char =3D rsci_poll_put_char, --=20 2.43.0