public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] spi: a3700: support BE for AC5 SPI driver
@ 2022-07-26 13:00 Vadym Kochan
  2022-07-26 15:32 ` Mark Brown
  2022-07-26 17:39 ` Mark Brown
  0 siblings, 2 replies; 4+ messages in thread
From: Vadym Kochan @ 2022-07-26 13:00 UTC (permalink / raw)
  To: Mark Brown, linux-spi, linux-kernel; +Cc: Elad Nachman, Noam, Vadym Kochan

From: Noam <lnoam@marvell.com>

Signed-off-by: Noam <lnoam@marvell.com>
Tested-by: Raz Adashi <raza@marvell.com>
Reviewed-by: Raz Adashi <raza@marvell.com>
Signed-off-by: Vadym Kochan <vadym.kochan@plvision.eu>
---
v2:
   #1 added missing SOB for Noam

   #2 fix wrong endianess in a3700_spi_fifo_read()

 drivers/spi/spi-armada-3700.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/spi/spi-armada-3700.c b/drivers/spi/spi-armada-3700.c
index d8cc4b270644..9df9fc40b783 100644
--- a/drivers/spi/spi-armada-3700.c
+++ b/drivers/spi/spi-armada-3700.c
@@ -497,7 +497,7 @@ static int a3700_spi_fifo_write(struct a3700_spi *a3700_spi)
 
 	while (!a3700_is_wfifo_full(a3700_spi) && a3700_spi->buf_len) {
 		val = *(u32 *)a3700_spi->tx_buf;
-		spireg_write(a3700_spi, A3700_SPI_DATA_OUT_REG, val);
+		spireg_write(a3700_spi, A3700_SPI_DATA_OUT_REG, cpu_to_le32(val));
 		a3700_spi->buf_len -= 4;
 		a3700_spi->tx_buf += 4;
 	}
@@ -519,7 +519,7 @@ static int a3700_spi_fifo_read(struct a3700_spi *a3700_spi)
 	while (!a3700_is_rfifo_empty(a3700_spi) && a3700_spi->buf_len) {
 		val = spireg_read(a3700_spi, A3700_SPI_DATA_IN_REG);
 		if (a3700_spi->buf_len >= 4) {
-
+			val = le32_to_cpu(val);
 			memcpy(a3700_spi->rx_buf, &val, 4);
 
 			a3700_spi->buf_len -= 4;
-- 
2.17.1


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

* Re: [PATCH v2] spi: a3700: support BE for AC5 SPI driver
  2022-07-26 13:00 [PATCH v2] spi: a3700: support BE for AC5 SPI driver Vadym Kochan
@ 2022-07-26 15:32 ` Mark Brown
  2022-07-26 15:42   ` [EXT] " Noam Liron
  2022-07-26 17:39 ` Mark Brown
  1 sibling, 1 reply; 4+ messages in thread
From: Mark Brown @ 2022-07-26 15:32 UTC (permalink / raw)
  To: Vadym Kochan; +Cc: linux-spi, linux-kernel, Elad Nachman, Noam

[-- Attachment #1: Type: text/plain, Size: 363 bytes --]

On Tue, Jul 26, 2022 at 04:00:37PM +0300, Vadym Kochan wrote:
> From: Noam <lnoam@marvell.com>
> 
> Signed-off-by: Noam <lnoam@marvell.com>
> Tested-by: Raz Adashi <raza@marvell.com>
> Reviewed-by: Raz Adashi <raza@marvell.com>
> Signed-off-by: Vadym Kochan <vadym.kochan@plvision.eu>
> ---
> v2:
>    #1 added missing SOB for Noam

Noam, is this OK?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

* RE: [EXT] Re: [PATCH v2] spi: a3700: support BE for AC5 SPI driver
  2022-07-26 15:32 ` Mark Brown
@ 2022-07-26 15:42   ` Noam Liron
  0 siblings, 0 replies; 4+ messages in thread
From: Noam Liron @ 2022-07-26 15:42 UTC (permalink / raw)
  To: Mark Brown, Vadym Kochan
  Cc: linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org,
	Elad Nachman

Hi Mark,

Yes, patch looks ok

-----Original Message-----
From: Mark Brown <broonie@kernel.org> 
Sent: Tuesday, July 26, 2022 6:32 PM
To: Vadym Kochan <vadym.kochan@plvision.eu>
Cc: linux-spi@vger.kernel.org; linux-kernel@vger.kernel.org; Elad Nachman <enachman@marvell.com>; Noam Liron <lnoam@marvell.com>
Subject: [EXT] Re: [PATCH v2] spi: a3700: support BE for AC5 SPI driver

External Email

----------------------------------------------------------------------
On Tue, Jul 26, 2022 at 04:00:37PM +0300, Vadym Kochan wrote:
> From: Noam <lnoam@marvell.com>
> 
> Signed-off-by: Noam <lnoam@marvell.com>
> Tested-by: Raz Adashi <raza@marvell.com>
> Reviewed-by: Raz Adashi <raza@marvell.com>
> Signed-off-by: Vadym Kochan <vadym.kochan@plvision.eu>
> ---
> v2:
>    #1 added missing SOB for Noam

Noam, is this OK?

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

* Re: [PATCH v2] spi: a3700: support BE for AC5 SPI driver
  2022-07-26 13:00 [PATCH v2] spi: a3700: support BE for AC5 SPI driver Vadym Kochan
  2022-07-26 15:32 ` Mark Brown
@ 2022-07-26 17:39 ` Mark Brown
  1 sibling, 0 replies; 4+ messages in thread
From: Mark Brown @ 2022-07-26 17:39 UTC (permalink / raw)
  To: linux-spi, linux-kernel, Vadym Kochan; +Cc: Elad Nachman, Noam

On Tue, 26 Jul 2022 16:00:37 +0300, Vadym Kochan wrote:
> From: Noam <lnoam@marvell.com>
> 
> 

Applied to

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

Thanks!

[1/1] spi: a3700: support BE for AC5 SPI driver
      commit: 66bbf1441d218316948877f7ec6b477c9a49d554

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-07-26 17:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-26 13:00 [PATCH v2] spi: a3700: support BE for AC5 SPI driver Vadym Kochan
2022-07-26 15:32 ` Mark Brown
2022-07-26 15:42   ` [EXT] " Noam Liron
2022-07-26 17:39 ` Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox