* [PATCH v2] spi: atmel-quadspi: Fix the buswidth adjustment between spi-mem and controller
@ 2022-04-08 8:40 Tudor Ambarus
2022-04-27 6:07 ` Eugen.Hristev
0 siblings, 1 reply; 2+ messages in thread
From: Tudor Ambarus @ 2022-04-08 8:40 UTC (permalink / raw)
To: jagan, Eugen.Hristev; +Cc: u-boot, Tudor Ambarus
Use the spi_mem_default_supports_op() core helper in order to take into
account the buswidth specified by the user in device tree.
Fixes: 24c8ff4684 ("spi: Add Atmel QuadSPI driver")
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
---
v2: Fix commit's subject
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 098298336d..cb64119f97 100644
--- a/drivers/spi/atmel-quadspi.c
+++ b/drivers/spi/atmel-quadspi.c
@@ -438,6 +438,9 @@ static bool atmel_qspi_supports_op(struct spi_slave *slave,
{
struct atmel_qspi *aq = dev_get_priv(slave->dev->parent);
+ if (!spi_mem_default_supports_op(slave, 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] 2+ messages in thread
* Re: [PATCH v2] spi: atmel-quadspi: Fix the buswidth adjustment between spi-mem and controller
2022-04-08 8:40 [PATCH v2] spi: atmel-quadspi: Fix the buswidth adjustment between spi-mem and controller Tudor Ambarus
@ 2022-04-27 6:07 ` Eugen.Hristev
0 siblings, 0 replies; 2+ messages in thread
From: Eugen.Hristev @ 2022-04-27 6:07 UTC (permalink / raw)
To: Tudor.Ambarus, jagan; +Cc: u-boot
On 4/8/22 11:40 AM, Tudor Ambarus wrote:
> Use the spi_mem_default_supports_op() core helper in order to take into
> account the buswidth specified by the user in device tree.
>
> Fixes: 24c8ff4684 ("spi: Add Atmel QuadSPI driver")
> Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
> ---
> v2: Fix commit's subject
>
Applied to u-boot-at91/master, thanks !
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-04-27 6:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-08 8:40 [PATCH v2] spi: atmel-quadspi: Fix the buswidth adjustment between spi-mem and controller Tudor Ambarus
2022-04-27 6:07 ` Eugen.Hristev
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.