Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795048738; b=vcl8SB/5LUXjqTcRhwl0/rK3eO7BCaGG9LQf2F1AmHkfupxQX8MQ57hpPys6P9RF8uLi kj7P6D4OhA+Q2I9a2gmc0qGnykK8Lg8xid+mUZEBZhouumFS8QTwe9Up/cVWxIajqBwDL DUt/VTzJcbYnhQEai1QkC+KyZKmP6EVeNmPbGNOfmE3yiHglNtYjcMS4BoL56E/NTHcfJ UkThNvorOXOA1DBvwmFwN8nGtIzUqaoatvkPxEll9r395Wn6xh4bXQnze4/6uLZ9on3jJ zoiW7iy2R3MH/dnfK0iQYpFqCHr7JReHfetl18Th6dkB/SQEXxfw9d1+4H655jd23VA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795048738; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=R0jn10hgqRjH2mNwJx4XAT7jUeM5mkGZi5n6eWWh8qE=; b=BxcOzXsHoVCYeg9wnvHsspbWKsl8gpC+dN/H2SzNOvNE9D3E8qFfW6bYIRsZr78dZ4mG yrFblZOfnqsxOFeE7OLJAqc33a5KNkeiqSrh2IZpoGTCmv/6yb5FX6XA6xVRJZAEPM2ba awZmU/WNNAeanmYTIjEcEZCxWV3DcHSP8pM6DRdxUw4s2lt90Vf1AHDBe9hpdxheKxpVf Nx+LgmwHOqZBYR1NkLoNxZfRP+GkdWvQmgIew9kACPZtDa7A+B4ajkg4+ElB+KvnfRoHt nY+CQUjWYqU67+akLVv5YalQyMzrssWvhRcE7xafXPdY2HZ6EFFkyMHmbwPlfChlVdA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=sC8P1WKE; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDD22606A32A; Thu, 19 Nov 2026 00:38:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=sC8P1WKE Received: by smtp.kernel.org (Postfix) with ESMTPSA id 315F31F000C4; Thu, 19 Nov 2026 00:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795048738; bh=R0jn10hgqRjH2mNwJx4XAT7jUeM5mkGZi5n6eWWh8qE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=sC8P1WKEBs1pS9UERR8Wn9EKUMKIwAAqTQXQLxmj26RMKWi+Si56FhVeMNsYWn57h g3z/CZAdJpdkO+LI61ZuMVZCkMzYmXGlx9E0eFP/qZGTGe719+8rUkYc/5p2DjvI0o vYZNzxs6CztMQcs9601XJPx3WOqywOI3RMr0jMEM= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Andy Shevchenko , Mark Brown , Sasha Levin Subject: [PATCH 6.1 2102/2857] spi: rspi: Get rid of unused struct rspi_plat_data Date: Wed, 18 Nov 2026 15:52:16 +0100 Message-ID: <20261118150317.094231659@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150201.293410965@linuxfoundation.org> References: <20261118150201.293410965@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andy Shevchenko [ Upstream commit bdeef5dcea6b164f4bd614655821b1ef12ebec9a ] No in-kernel users of struct rspi_plat_data. If required, the software nodes should be used for such users. For now just get rid of it. Signed-off-by: Andy Shevchenko Link: https://msgid.link/r/20240325142118.3210915-1-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown Stable-dep-of: 7b85114d47f6 ("spi: rspi: Fix DMA mode when the DMA controller is built as a module") Signed-off-by: Sasha Levin --- drivers/spi/spi-rspi.c | 12 +----------- include/linux/spi/rspi.h | 18 ------------------ 2 files changed, 1 insertion(+), 29 deletions(-) delete mode 100644 include/linux/spi/rspi.h diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c index 96b4037babbaf..e8b3ea2606faa 100644 --- a/drivers/spi/spi-rspi.c +++ b/drivers/spi/spi-rspi.c @@ -24,7 +24,6 @@ #include #include #include -#include #include #define RSPI_SPCR 0x00 /* Control Register */ @@ -1131,16 +1130,12 @@ static struct dma_chan *rspi_request_dma_chan(struct device *dev, static int rspi_request_dma(struct device *dev, struct spi_controller *ctlr, const struct resource *res) { - const struct rspi_plat_data *rspi_pd = dev_get_platdata(dev); unsigned int dma_tx_id, dma_rx_id; if (dev->of_node) { /* In the OF case we will get the slave IDs from the DT */ dma_tx_id = 0; dma_rx_id = 0; - } else if (rspi_pd && rspi_pd->dma_tx_id && rspi_pd->dma_rx_id) { - dma_tx_id = rspi_pd->dma_tx_id; - dma_rx_id = rspi_pd->dma_rx_id; } else { /* The driver assumes no error. */ return 0; @@ -1296,7 +1291,6 @@ static int rspi_probe(struct platform_device *pdev) struct spi_controller *ctlr; struct rspi_data *rspi; int ret; - const struct rspi_plat_data *rspi_pd; const struct spi_ops *ops; unsigned long clksrc; @@ -1311,11 +1305,7 @@ static int rspi_probe(struct platform_device *pdev) goto error1; } else { ops = (struct spi_ops *)pdev->id_entry->driver_data; - rspi_pd = dev_get_platdata(&pdev->dev); - if (rspi_pd && rspi_pd->num_chipselect) - ctlr->num_chipselect = rspi_pd->num_chipselect; - else - ctlr->num_chipselect = 2; /* default */ + ctlr->num_chipselect = 2; /* default */ } rspi = spi_controller_get_devdata(ctlr); diff --git a/include/linux/spi/rspi.h b/include/linux/spi/rspi.h deleted file mode 100644 index dbdfcc7a3db22..0000000000000 --- a/include/linux/spi/rspi.h +++ /dev/null @@ -1,18 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/* - * Renesas SPI driver - * - * Copyright (C) 2012 Renesas Solutions Corp. - */ - -#ifndef __LINUX_SPI_RENESAS_SPI_H__ -#define __LINUX_SPI_RENESAS_SPI_H__ - -struct rspi_plat_data { - unsigned int dma_tx_id; - unsigned int dma_rx_id; - - u16 num_chipselect; -}; - -#endif -- 2.53.0