From nobody Tue Dec 2 00:25:51 2025 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 969223271E3 for ; Tue, 25 Nov 2025 15:06:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764083201; cv=none; b=e5pBcp/6rz5TUjnuxPgYt76l7xV4jKGK+1+oAxzxNTeAI2G5p1p/EXr7tmxohB9s5Bodf6tsfHcm0rl3ePmeZ7RTBauYZfmceSL/+lXX+nxQTZNllggM1RBPZrv0Qvh7RA1Gh0ym16WcHbruitNTeC8+OIvVtfYL4y8iO2+ZmHM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764083201; c=relaxed/simple; bh=oUVlAnpiKF1Pm6FuP938DKT7/iFOmxYSFR7wJ4R4/u8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=ReMuiyEpJIPdNX8oDc3aiJrgd3cB3aRKP6V79vmw4ou2JfxLKG7IcwJRgvdHD6fTHNE1XqKzp9+QCY1bVp6X+g+CWGIEzR1ewygsdtelNhFanwLqDvHWvQI6Lshl+MOGeQEdyOfp5wNVR8SohBx+p1AHvlQN1CwizRHjpP4tnqg= 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=l90jiu4F; arc=none smtp.client-ip=209.85.128.41 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="l90jiu4F" Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-4779cc419b2so54082685e9.3 for ; Tue, 25 Nov 2025 07:06:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1764083198; x=1764687998; 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=d8Vy4foiqKrCWE5vi4KIrqrTOPxlJurxB7w7FOVWY0s=; b=l90jiu4FNpN/K7qsBYqo95Sh0KTXGVQWGsl27Ii9MJ8RdILt8uHMlVMNhw5AYnxw6R Zff9QuOpjikATHP9+PwtJ8JcOqkdsCZo3/JBqAu/lN63bhba+V0eS9epLEGAIs6x3sVu lf+MqCqmzrv9E+Equ3Mzuv8oSHqr2UltEAFyNBWUlx4wz7JcUbdC+zU2CbfCZWX/ElJV kepY5jD/N7rg2iaylgiiE3OMyZJJZgKSmNNHmqyM0zfrS+UtCv8g+d+OIELjvlGin70E vSxpf4lahTansycCoC3VH9NtElYlu435n0BWkYwNy62ywsDqWhiJRd3I2IHAhcjqv0Na B91A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1764083198; x=1764687998; 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=d8Vy4foiqKrCWE5vi4KIrqrTOPxlJurxB7w7FOVWY0s=; b=OBo5S49I0y5ml56G0Edk+1ei81P21M/QPDRo9HoxHcN5uXxvWLchW0aJ3+769BrTmT UuUGkHWiJAbs9oAcHEKDsLxiMgG16YWKLK4f7036XMdAm1WsMBadnTOnlg7awVJr1Yyw 26nJyJz75I2gEdRRSgEysuw8MOoE4ROP80mRfUEmtAaUy863XSHDbSHSFS4XFd6S8qWL JzOv/+C0uJLMqHRL7RlHGqG2w3sljk+Y/gSREXipBAb8enSCuJaYu0jI8ytl8lqOmXYW LFvMW+uKrUrLdBxMnKqJ5MWxupLNLInKMYRx5WHKD39bRUo1ljgXIAXHcXjSBcuPlHFt qt5g== X-Forwarded-Encrypted: i=1; AJvYcCVqDlFj/PyBSH9W6lqkUCEDBexxJPef0ivzgmO91GFODPrUP0SRbHEUBNxBVxKP8W8skx4uVR26nLjS1+A=@vger.kernel.org X-Gm-Message-State: AOJu0Yyd8seBitn9NEQBUGYI44vKvRaLGdU06e2xg13d9I+IDjNz5eNy 7uU0BhuZmPriUN33GyK0iiL13N1gupR/5KAlu5rVOEhracVKPjYdzAWU X-Gm-Gg: ASbGnctQT4uZvYv6/VttHua+NtxZ98iXB4cNGYYeSOnogpxDpnX9sjuMGKGx0bNkH8O EGQu0rm4i27mN2azxtICZigd51w/skwVhv753ha3rMOd4jkN3DW3XKkBckGBpiIw0uNvO6l/9G+ iCie/SHWWHoYNNsbXTtjjsuvjoEYhzvwBcokPHF9Szr94umC1OOSAg0f2TBeCiWfZElX9ADONPx l1ig/Yla2FZROtaJmm4Ge1od71XjHmQomtG3vl3mkMCUuOrxcRSzsdRDVUFhkKMCM2Vhxw4cSxm f+hOLq2CixnSblUOsEVSRftUOHnMr6hqsG654UtpNcuhUt6VEGXCLgn/Hmaj9YbJy6hkuySSY+R 022B76UhAX0nOoV1/zSncLvoR+Z3JEcc+90pIliwrf9bxHJICAbbLsOj+RmY4RmBse1kgDnxLxH SGnFWEXrkjtcjz71Y641jWtM8nY6dx5ZUMIj7ArLHa/dxtMbur7IT9b5Nwst9Ypzv7tf9XLUQUc d0gJcBWjl45GBl1 X-Google-Smtp-Source: AGHT+IG6ixLkzz2qdg5wshNHg6Bnc3eFDwK8wBvdOmM8fHsmmuCE8HAQERhUmowkosTlJBvT5KBa1A== X-Received: by 2002:a05:6000:2881:b0:42b:3dfb:645c with SMTP id ffacd0b85a97d-42cc1ac9debmr17211462f8f.12.1764083197726; Tue, 25 Nov 2025 07:06:37 -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.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Nov 2025 07:06:37 -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 03/16] serial: rsci: Drop rsci_clear_SCxSR() Date: Tue, 25 Nov 2025 15:06:05 +0000 Message-ID: <20251125150632.299890-4-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 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 --- 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 b3c48dc1e07d..b5afa7b2a4a8 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) { @@ -375,7 +371,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) @@ -448,7 +444,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