linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi: spi-sn-f-ospi: fix duplicate flag while assigning to mode_bits
@ 2023-02-23  9:52 Dhruva Gole
  2023-02-23 13:06 ` Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Dhruva Gole @ 2023-02-23  9:52 UTC (permalink / raw)
  To: Mark Brown
  Cc: Vignesh Raghavendra, Dhruva Gole, Pratyush Yadav, linux-spi,
	Kunihiko Hayashi, linux-kernel, David Binderman, stable

Replace the SPI_TX_OCTAL flag that appeared two time with SPI_RX_OCTAL
in the chain of '|' operators while assigning to mode_bits

Fixes: 1b74dd64c861 ("spi: Add Socionext F_OSPI SPI flash controller driver")

Reported-by: David Binderman <dcb314@hotmail.com>
Link: https://lore.kernel.org/all/DB6P189MB0568F3BE9384315F5C8C1A3E9CA49@DB6P189MB0568.EURP189.PROD.OUTLOOK.COM/

Cc: stable@vger.kernel.org
Signed-off-by: Dhruva Gole <d-gole@ti.com>
---
 drivers/spi/spi-sn-f-ospi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-sn-f-ospi.c b/drivers/spi/spi-sn-f-ospi.c
index 348c6e1edd38..333b22dfd8db 100644
--- a/drivers/spi/spi-sn-f-ospi.c
+++ b/drivers/spi/spi-sn-f-ospi.c
@@ -611,7 +611,7 @@ static int f_ospi_probe(struct platform_device *pdev)
 		return -ENOMEM;
 
 	ctlr->mode_bits = SPI_TX_DUAL | SPI_TX_QUAD | SPI_TX_OCTAL
-		| SPI_RX_DUAL | SPI_RX_QUAD | SPI_TX_OCTAL
+		| SPI_RX_DUAL | SPI_RX_QUAD | SPI_RX_OCTAL
 		| SPI_MODE_0 | SPI_MODE_1 | SPI_LSB_FIRST;
 	ctlr->mem_ops = &f_ospi_mem_ops;
 	ctlr->bus_num = -1;
-- 
2.25.1


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

* Re: [PATCH] spi: spi-sn-f-ospi: fix duplicate flag while assigning to mode_bits
  2023-02-23  9:52 [PATCH] spi: spi-sn-f-ospi: fix duplicate flag while assigning to mode_bits Dhruva Gole
@ 2023-02-23 13:06 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2023-02-23 13:06 UTC (permalink / raw)
  To: Dhruva Gole
  Cc: Vignesh Raghavendra, Pratyush Yadav, linux-spi, Kunihiko Hayashi,
	linux-kernel, David Binderman, stable

On Thu, 23 Feb 2023 15:22:02 +0530, Dhruva Gole wrote:
> Replace the SPI_TX_OCTAL flag that appeared two time with SPI_RX_OCTAL
> in the chain of '|' operators while assigning to mode_bits
> 
> Fixes: 1b74dd64c861 ("spi: Add Socionext F_OSPI SPI flash controller driver")
> 
> Reported-by: David Binderman <dcb314@hotmail.com>
> Link: https://lore.kernel.org/all/DB6P189MB0568F3BE9384315F5C8C1A3E9CA49@DB6P189MB0568.EURP189.PROD.OUTLOOK.COM/
> 
> [...]

Applied to

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

Thanks!

[1/1] spi: spi-sn-f-ospi: fix duplicate flag while assigning to mode_bits
      commit: 078a5517d22342eb0474046d3e891427a2552e3c

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] 2+ messages in thread

end of thread, other threads:[~2023-02-23 13:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-23  9:52 [PATCH] spi: spi-sn-f-ospi: fix duplicate flag while assigning to mode_bits Dhruva Gole
2023-02-23 13:06 ` 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).