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;
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
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
linux-stable-mirror@lists.linaro.org