linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi: s3c64xx: correct dma_chan pointer initialization
       [not found] <CGME20220808004253epcas2p3937171a6f89a765d67d5cc7b55afb89a@epcas2p3.samsung.com>
@ 2022-08-08  0:48 ` Chanho Park
  2022-08-08  5:53   ` Krzysztof Kozlowski
                     ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chanho Park @ 2022-08-08  0:48 UTC (permalink / raw)
  To: Krzysztof Kozlowski, Andi Shyti, Mark Brown
  Cc: Alim Akhtar, Adithya K V, kernel test robot, linux-spi,
	linux-samsung-soc, linux-arm-kernel, linux-kernel, Chanho Park

Use NULL for dma channel pointer initialization instead of plain integer.

sparse warnings: (new ones prefixed by >>)
>> drivers/spi/spi-s3c64xx.c:387:34: sparse: sparse: Using plain integer as NULL pointer
   drivers/spi/spi-s3c64xx.c:388:34: sparse: sparse: Using plain integer as NULL pointer

Reported-by: kernel test robot <lkp@intel.com>
Fixes: 82295bc0d192 ("spi: s3c64xx: move dma_release_channel to unprepare")
Fixes: f52b03c70744 ("spi: s3c64xx: requests spi-dma channel only during data transfer")
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
---
 drivers/spi/spi-s3c64xx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
index 7f346866614a..651c35dd9124 100644
--- a/drivers/spi/spi-s3c64xx.c
+++ b/drivers/spi/spi-s3c64xx.c
@@ -389,8 +389,8 @@ static int s3c64xx_spi_unprepare_transfer(struct spi_master *spi)
 	if (sdd->rx_dma.ch && sdd->tx_dma.ch) {
 		dma_release_channel(sdd->rx_dma.ch);
 		dma_release_channel(sdd->tx_dma.ch);
-		sdd->rx_dma.ch = 0;
-		sdd->tx_dma.ch = 0;
+		sdd->rx_dma.ch = NULL;
+		sdd->tx_dma.ch = NULL;
 	}
 
 	return 0;
-- 
2.37.1


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

* Re: [PATCH] spi: s3c64xx: correct dma_chan pointer initialization
  2022-08-08  0:48 ` [PATCH] spi: s3c64xx: correct dma_chan pointer initialization Chanho Park
@ 2022-08-08  5:53   ` Krzysztof Kozlowski
  2022-08-08  8:09   ` Andi Shyti
  2022-08-15 15:44   ` Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2022-08-08  5:53 UTC (permalink / raw)
  To: Chanho Park, Andi Shyti, Mark Brown
  Cc: Alim Akhtar, Adithya K V, kernel test robot, linux-spi,
	linux-samsung-soc, linux-arm-kernel, linux-kernel

On 08/08/2022 02:48, Chanho Park wrote:
> Use NULL for dma channel pointer initialization instead of plain integer.
> 
> sparse warnings: (new ones prefixed by >>)
>>> drivers/spi/spi-s3c64xx.c:387:34: sparse: sparse: Using plain integer as NULL pointer
>    drivers/spi/spi-s3c64xx.c:388:34: sparse: sparse: Using plain integer as NULL pointer
> 


Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>


Best regards,
Krzysztof

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

* Re: [PATCH] spi: s3c64xx: correct dma_chan pointer initialization
  2022-08-08  0:48 ` [PATCH] spi: s3c64xx: correct dma_chan pointer initialization Chanho Park
  2022-08-08  5:53   ` Krzysztof Kozlowski
@ 2022-08-08  8:09   ` Andi Shyti
  2022-08-15 15:44   ` Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Andi Shyti @ 2022-08-08  8:09 UTC (permalink / raw)
  To: Chanho Park
  Cc: Krzysztof Kozlowski, Andi Shyti, Mark Brown, Alim Akhtar,
	Adithya K V, kernel test robot, linux-spi, linux-samsung-soc,
	linux-arm-kernel, linux-kernel

Hi Chanho,

On Mon, Aug 08, 2022 at 09:48:51AM +0900, Chanho Park wrote:
> Use NULL for dma channel pointer initialization instead of plain integer.
> 
> sparse warnings: (new ones prefixed by >>)
> >> drivers/spi/spi-s3c64xx.c:387:34: sparse: sparse: Using plain integer as NULL pointer
>    drivers/spi/spi-s3c64xx.c:388:34: sparse: sparse: Using plain integer as NULL pointer
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Fixes: 82295bc0d192 ("spi: s3c64xx: move dma_release_channel to unprepare")
> Fixes: f52b03c70744 ("spi: s3c64xx: requests spi-dma channel only during data transfer")
> Signed-off-by: Chanho Park <chanho61.park@samsung.com>

Reviewed-by: Andi Shyti <andi@etezian.org>

Thanks,
Andi

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

* Re: [PATCH] spi: s3c64xx: correct dma_chan pointer initialization
  2022-08-08  0:48 ` [PATCH] spi: s3c64xx: correct dma_chan pointer initialization Chanho Park
  2022-08-08  5:53   ` Krzysztof Kozlowski
  2022-08-08  8:09   ` Andi Shyti
@ 2022-08-15 15:44   ` Mark Brown
  2 siblings, 0 replies; 4+ messages in thread
From: Mark Brown @ 2022-08-15 15:44 UTC (permalink / raw)
  To: Chanho Park, Andi Shyti, Krzysztof Kozlowski
  Cc: linux-kernel, linux-samsung-soc, Alim Akhtar, kernel test robot,
	Adithya K V, linux-spi, linux-arm-kernel

On Mon, 8 Aug 2022 09:48:51 +0900, Chanho Park wrote:
> Use NULL for dma channel pointer initialization instead of plain integer.
> 
> sparse warnings: (new ones prefixed by >>)
> >> drivers/spi/spi-s3c64xx.c:387:34: sparse: sparse: Using plain integer as NULL pointer
>    drivers/spi/spi-s3c64xx.c:388:34: sparse: sparse: Using plain integer as NULL pointer
> 
> 
> [...]

Applied to

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

Thanks!

[1/1] spi: s3c64xx: correct dma_chan pointer initialization
      commit: dad57a510db9423a4128ae6565854e999cebac51

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:[~2022-08-15 15:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CGME20220808004253epcas2p3937171a6f89a765d67d5cc7b55afb89a@epcas2p3.samsung.com>
2022-08-08  0:48 ` [PATCH] spi: s3c64xx: correct dma_chan pointer initialization Chanho Park
2022-08-08  5:53   ` Krzysztof Kozlowski
2022-08-08  8:09   ` Andi Shyti
2022-08-15 15:44   ` 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).