linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] spi: pl022: Use typedef for dma_filter_fn
@ 2024-02-08 20:21 Krzysztof Kozlowski
  2024-02-08 20:21 ` [PATCH 2/3] spi: pl022: Add missing dma_filter field kerneldoc Krzysztof Kozlowski
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-02-08 20:21 UTC (permalink / raw)
  To: Mark Brown, linux-kernel, linux-spi; +Cc: Krzysztof Kozlowski

Use existing typedef for dma_filter_fn to avoid duplicating type
definition.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 include/linux/amba/pl022.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/amba/pl022.h b/include/linux/amba/pl022.h
index 9bf58aac0df2..e08488df6d28 100644
--- a/include/linux/amba/pl022.h
+++ b/include/linux/amba/pl022.h
@@ -16,6 +16,7 @@
 #ifndef _SSP_PL022_H
 #define _SSP_PL022_H
 
+#include <linux/dmaengine.h>
 #include <linux/types.h>
 
 /**
@@ -235,7 +236,7 @@ struct dma_chan;
 struct pl022_ssp_controller {
 	u16 bus_id;
 	u8 enable_dma:1;
-	bool (*dma_filter)(struct dma_chan *chan, void *filter_param);
+	dma_filter_fn dma_filter;
 	void *dma_rx_param;
 	void *dma_tx_param;
 	int autosuspend_delay;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/3] spi: pl022: Add missing dma_filter field kerneldoc
  2024-02-08 20:21 [PATCH 1/3] spi: pl022: Use typedef for dma_filter_fn Krzysztof Kozlowski
@ 2024-02-08 20:21 ` Krzysztof Kozlowski
  2024-02-08 20:21 ` [PATCH 3/3] spi: pxa2xx: Use typedef for dma_filter_fn Krzysztof Kozlowski
  2024-02-09 10:11 ` [PATCH 1/3] spi: pl022: " Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-02-08 20:21 UTC (permalink / raw)
  To: Mark Brown, linux-kernel, linux-spi; +Cc: Krzysztof Kozlowski

Add kerneldoc for dma_filter field in struct pl022_ssp_controller.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 include/linux/amba/pl022.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/amba/pl022.h b/include/linux/amba/pl022.h
index e08488df6d28..d7b07d0311e1 100644
--- a/include/linux/amba/pl022.h
+++ b/include/linux/amba/pl022.h
@@ -225,6 +225,7 @@ struct dma_chan;
  * struct pl022_ssp_master - device.platform_data for SPI controller devices.
  * @bus_id: identifier for this bus
  * @enable_dma: if true enables DMA driven transfers.
+ * @dma_filter: callback filter for dma_request_channel.
  * @dma_rx_param: parameter to locate an RX DMA channel.
  * @dma_tx_param: parameter to locate a TX DMA channel.
  * @autosuspend_delay: delay in ms following transfer completion before the
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 3/3] spi: pxa2xx: Use typedef for dma_filter_fn
  2024-02-08 20:21 [PATCH 1/3] spi: pl022: Use typedef for dma_filter_fn Krzysztof Kozlowski
  2024-02-08 20:21 ` [PATCH 2/3] spi: pl022: Add missing dma_filter field kerneldoc Krzysztof Kozlowski
@ 2024-02-08 20:21 ` Krzysztof Kozlowski
  2024-02-09 10:11 ` [PATCH 1/3] spi: pl022: " Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2024-02-08 20:21 UTC (permalink / raw)
  To: Mark Brown, linux-kernel, linux-spi; +Cc: Krzysztof Kozlowski

Use existing typedef for dma_filter_fn to avoid duplicating type
definition.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
 include/linux/spi/pxa2xx_spi.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/linux/spi/pxa2xx_spi.h b/include/linux/spi/pxa2xx_spi.h
index 0916cb9bcb0a..ca2cd4e30ead 100644
--- a/include/linux/spi/pxa2xx_spi.h
+++ b/include/linux/spi/pxa2xx_spi.h
@@ -5,6 +5,7 @@
 #ifndef __LINUX_SPI_PXA2XX_SPI_H
 #define __LINUX_SPI_PXA2XX_SPI_H
 
+#include <linux/dmaengine.h>
 #include <linux/types.h>
 
 #include <linux/pxa2xx_ssp.h>
@@ -22,7 +23,7 @@ struct pxa2xx_spi_controller {
 	bool is_target;
 
 	/* DMA engine specific config */
-	bool (*dma_filter)(struct dma_chan *chan, void *param);
+	dma_filter_fn dma_filter;
 	void *tx_param;
 	void *rx_param;
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/3] spi: pl022: Use typedef for dma_filter_fn
  2024-02-08 20:21 [PATCH 1/3] spi: pl022: Use typedef for dma_filter_fn Krzysztof Kozlowski
  2024-02-08 20:21 ` [PATCH 2/3] spi: pl022: Add missing dma_filter field kerneldoc Krzysztof Kozlowski
  2024-02-08 20:21 ` [PATCH 3/3] spi: pxa2xx: Use typedef for dma_filter_fn Krzysztof Kozlowski
@ 2024-02-09 10:11 ` Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2024-02-09 10:11 UTC (permalink / raw)
  To: linux-kernel, linux-spi, Krzysztof Kozlowski

On Thu, 08 Feb 2024 21:21:52 +0100, Krzysztof Kozlowski wrote:
> Use existing typedef for dma_filter_fn to avoid duplicating type
> definition.
> 
> 

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next

Thanks!

[1/3] spi: pl022: Use typedef for dma_filter_fn
      commit: d1ff85fdf0b8f63a6e042ae7559c630f9b1c50e2
[2/3] spi: pl022: Add missing dma_filter field kerneldoc
      commit: c42d9bead493854507e1a180942ebe33c9180598
[3/3] spi: pxa2xx: Use typedef for dma_filter_fn
      commit: 3d4dd10b376e1b8b6d0409f7e7b752f9baa51c24

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-09 10:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-08 20:21 [PATCH 1/3] spi: pl022: Use typedef for dma_filter_fn Krzysztof Kozlowski
2024-02-08 20:21 ` [PATCH 2/3] spi: pl022: Add missing dma_filter field kerneldoc Krzysztof Kozlowski
2024-02-08 20:21 ` [PATCH 3/3] spi: pxa2xx: Use typedef for dma_filter_fn Krzysztof Kozlowski
2024-02-09 10:11 ` [PATCH 1/3] spi: pl022: " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).