All of lore.kernel.org
 help / color / mirror / Atom feed
* [Internal PATCH 6/8] spi: atmel-quadspi.c: Fix the buswidth adjustment between spi-mem and controller
       [not found] <20220715070940.540335-1-kavyasree.kotagiri@microchip.com>
@ 2022-07-15  7:09 ` Kavyasree Kotagiri
  2022-07-15  7:26   ` Greg KH
  0 siblings, 1 reply; 3+ messages in thread
From: Kavyasree Kotagiri @ 2022-07-15  7:09 UTC (permalink / raw)
  To: horatiu.vultur; +Cc: madhuri.sripada, Kavyasree.Kotagiri, stable

From: Tudor Ambarus <tudor.ambarus@microchip.com>

Use the spi_mem_default_supports_op() core helper in order to take into
account the buswidth specified by the user in device tree.

Cc: <stable@vger.kernel.org>
Fixes: 0e6aae08e9ae ("spi: Add QuadSPI driver for Atmel SAMA5D2")
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
(cherry picked from commit 41ddc39b3d13273648b9aa34075a085a31ce6031)
---
 drivers/spi/atmel-quadspi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c
index 841eb826d2d4..1893293667ab 100644
--- a/drivers/spi/atmel-quadspi.c
+++ b/drivers/spi/atmel-quadspi.c
@@ -456,6 +456,9 @@ static bool atmel_qspi_supports_op(struct spi_mem *mem,
 {
 	struct atmel_qspi *aq = spi_controller_get_devdata(mem->spi->master);
 
+	if (!spi_mem_default_supports_op(mem, op))
+		return false;
+
 	if (aq->caps->octal) {
 		if (atmel_qspi_sama7g5_find_mode(op) < 0)
 			return false;
-- 
2.25.1


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

* Re: [Internal PATCH 6/8] spi: atmel-quadspi.c: Fix the buswidth adjustment between spi-mem and controller
  2022-07-15  7:09 ` [Internal PATCH 6/8] spi: atmel-quadspi.c: Fix the buswidth adjustment between spi-mem and controller Kavyasree Kotagiri
@ 2022-07-15  7:26   ` Greg KH
  2022-07-15  7:44     ` Kavyasree.Kotagiri
  0 siblings, 1 reply; 3+ messages in thread
From: Greg KH @ 2022-07-15  7:26 UTC (permalink / raw)
  To: Kavyasree Kotagiri; +Cc: horatiu.vultur, madhuri.sripada, stable

On Fri, Jul 15, 2022 at 05:09:38AM -0200, Kavyasree Kotagiri wrote:
> From: Tudor Ambarus <tudor.ambarus@microchip.com>
> 
> Use the spi_mem_default_supports_op() core helper in order to take into
> account the buswidth specified by the user in device tree.
> 
> Cc: <stable@vger.kernel.org>
> Fixes: 0e6aae08e9ae ("spi: Add QuadSPI driver for Atmel SAMA5D2")
> Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
> (cherry picked from commit 41ddc39b3d13273648b9aa34075a085a31ce6031)

This is not a commit id in Linus's tree :(

> ---
>  drivers/spi/atmel-quadspi.c | 3 +++
>  1 file changed, 3 insertions(+)

What does "Internal PATCH" mean?

What stable branch(s) are you wanting this to be applied to?

thanks,

greg k-h

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

* RE: [Internal PATCH 6/8] spi: atmel-quadspi.c: Fix the buswidth adjustment between spi-mem and controller
  2022-07-15  7:26   ` Greg KH
@ 2022-07-15  7:44     ` Kavyasree.Kotagiri
  0 siblings, 0 replies; 3+ messages in thread
From: Kavyasree.Kotagiri @ 2022-07-15  7:44 UTC (permalink / raw)
  To: Kavyasree.Kotagiri; +Cc: Horatiu.Vultur, Madhuri.Sripada

Please ignore. This is wrong communication done, by mistake stable@vger.kernel.org mailing list is added.

Thanks,
kavya
> -----Original Message-----
> From: Greg KH [mailto:gregkh@linuxfoundation.org]
> Sent: Friday, July 15, 2022 12:56 PM
> To: Kavyasree Kotagiri - I30978 <Kavyasree.Kotagiri@microchip.com>
> Cc: Horatiu Vultur - M31836 <Horatiu.Vultur@microchip.com>; Madhuri
> Sripada - I34878 <Madhuri.Sripada@microchip.com>;
> stable@vger.kernel.org
> Subject: Re: [Internal PATCH 6/8] spi: atmel-quadspi.c: Fix the buswidth
> adjustment between spi-mem and controller
> 
> EXTERNAL EMAIL: Do not click links or open attachments unless you know the
> content is safe
> 
> On Fri, Jul 15, 2022 at 05:09:38AM -0200, Kavyasree Kotagiri wrote:
> > From: Tudor Ambarus <tudor.ambarus@microchip.com>
> >
> > Use the spi_mem_default_supports_op() core helper in order to take into
> > account the buswidth specified by the user in device tree.
> >
> > Cc: <stable@vger.kernel.org>
> > Fixes: 0e6aae08e9ae ("spi: Add QuadSPI driver for Atmel SAMA5D2")
> > Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
> > (cherry picked from commit
> 41ddc39b3d13273648b9aa34075a085a31ce6031)
> 
> This is not a commit id in Linus's tree :(
> 
> > ---
> >  drivers/spi/atmel-quadspi.c | 3 +++
> >  1 file changed, 3 insertions(+)
> 
> What does "Internal PATCH" mean?
> 
> What stable branch(s) are you wanting this to be applied to?
> 
> thanks,
> 
> greg k-h

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

end of thread, other threads:[~2022-07-15  7:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20220715070940.540335-1-kavyasree.kotagiri@microchip.com>
2022-07-15  7:09 ` [Internal PATCH 6/8] spi: atmel-quadspi.c: Fix the buswidth adjustment between spi-mem and controller Kavyasree Kotagiri
2022-07-15  7:26   ` Greg KH
2022-07-15  7:44     ` Kavyasree.Kotagiri

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.