All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] spi: dw: Replace incorrect spi_get_chipselect with set
@ 2023-06-13 16:21 Abe Kohandel
  2023-06-13 19:02 ` Serge Semin
  2023-06-13 20:12 ` Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Abe Kohandel @ 2023-06-13 16:21 UTC (permalink / raw)
  To: linux-kernel, linux-spi
  Cc: Serge Semin, Mark Brown, Amit Kumar Mahapatra, Abe Kohandel,
	Andy Shevchenko

Commit 445164e8c136 ("spi: dw: Replace spi->chip_select references with
function calls") replaced direct access to spi.chip_select with
spi_*_chipselect calls but incorrectly replaced a set instance with a
get instance, replace the incorrect instance.

Fixes: 445164e8c136 ("spi: dw: Replace spi->chip_select references with function calls")
Signed-off-by: Abe Kohandel <abe.kohandel@intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/spi/spi-dw-mmio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c
index a699ce496cc5..a963bc96c223 100644
--- a/drivers/spi/spi-dw-mmio.c
+++ b/drivers/spi/spi-dw-mmio.c
@@ -292,7 +292,7 @@ static void dw_spi_elba_set_cs(struct spi_device *spi, bool enable)
 	 */
 	spi_set_chipselect(spi, 0, 0);
 	dw_spi_set_cs(spi, enable);
-	spi_get_chipselect(spi, cs);
+	spi_set_chipselect(spi, 0, cs);
 }
 
 static int dw_spi_elba_init(struct platform_device *pdev,
-- 
2.40.1


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

* Re: [PATCH] spi: dw: Replace incorrect spi_get_chipselect with set
  2023-06-13 16:21 [PATCH] spi: dw: Replace incorrect spi_get_chipselect with set Abe Kohandel
@ 2023-06-13 19:02 ` Serge Semin
  2023-06-13 20:12 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Serge Semin @ 2023-06-13 19:02 UTC (permalink / raw)
  To: Abe Kohandel
  Cc: linux-kernel, linux-spi, Mark Brown, Amit Kumar Mahapatra,
	Andy Shevchenko

On Tue, Jun 13, 2023 at 09:21:03AM -0700, Abe Kohandel wrote:
> Commit 445164e8c136 ("spi: dw: Replace spi->chip_select references with
> function calls") replaced direct access to spi.chip_select with
> spi_*_chipselect calls but incorrectly replaced a set instance with a
> get instance, replace the incorrect instance.
> 
> Fixes: 445164e8c136 ("spi: dw: Replace spi->chip_select references with function calls")
> Signed-off-by: Abe Kohandel <abe.kohandel@intel.com>
> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Indeed! Thanks for fixing this.
Acked-by: Serge Semin <fancer.lancer@gmail.com>

-Serge(y)

> ---
>  drivers/spi/spi-dw-mmio.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c
> index a699ce496cc5..a963bc96c223 100644
> --- a/drivers/spi/spi-dw-mmio.c
> +++ b/drivers/spi/spi-dw-mmio.c
> @@ -292,7 +292,7 @@ static void dw_spi_elba_set_cs(struct spi_device *spi, bool enable)
>  	 */
>  	spi_set_chipselect(spi, 0, 0);
>  	dw_spi_set_cs(spi, enable);
> -	spi_get_chipselect(spi, cs);
> +	spi_set_chipselect(spi, 0, cs);
>  }
>  
>  static int dw_spi_elba_init(struct platform_device *pdev,
> -- 
> 2.40.1
> 

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

* Re: [PATCH] spi: dw: Replace incorrect spi_get_chipselect with set
  2023-06-13 16:21 [PATCH] spi: dw: Replace incorrect spi_get_chipselect with set Abe Kohandel
  2023-06-13 19:02 ` Serge Semin
@ 2023-06-13 20:12 ` Mark Brown
  1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2023-06-13 20:12 UTC (permalink / raw)
  To: linux-kernel, linux-spi, Abe Kohandel
  Cc: Serge Semin, Amit Kumar Mahapatra, Andy Shevchenko

On Tue, 13 Jun 2023 09:21:03 -0700, Abe Kohandel wrote:
> Commit 445164e8c136 ("spi: dw: Replace spi->chip_select references with
> function calls") replaced direct access to spi.chip_select with
> spi_*_chipselect calls but incorrectly replaced a set instance with a
> get instance, replace the incorrect instance.
> 
> 

Applied to

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

Thanks!

[1/1] spi: dw: Replace incorrect spi_get_chipselect with set
      commit: eee43699217504ba69cadefc85c6992df555e33f

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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-13 16:21 [PATCH] spi: dw: Replace incorrect spi_get_chipselect with set Abe Kohandel
2023-06-13 19:02 ` Serge Semin
2023-06-13 20:12 ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.