diff mbox series

spi: f-ospi: Add missing spi_mem_default_supports_op() helper

Message ID 20230327053451.22375-1-hayashi.kunihiko@socionext.com
State Accepted
Commit c008280a9a5db471cb8771812b98e3749017b54a
Delegated to: Jagannadha Sutradharudu Teki
Headers show
Series spi: f-ospi: Add missing spi_mem_default_supports_op() helper | expand

Commit Message

Kunihiko Hayashi March 27, 2023, 5:34 a.m. UTC
The .supports_op() callback function returns true by default after
performing driver-specific checks. Therefore the driver cannot apply
the buswidth in devicetree.

Call spi_mem_default_supports_op() helper to handle the buswidth
in devicetree.

Fixes: 358f803ae21c ("spi: Add Socionext F_OSPI SPI flash controller driver")
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
---
 drivers/spi/spi-sn-f-ospi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jagan Teki April 25, 2023, 5:28 p.m. UTC | #1
On Mon, Mar 27, 2023 at 11:05 AM Kunihiko Hayashi
<hayashi.kunihiko@socionext.com> wrote:
>
> The .supports_op() callback function returns true by default after
> performing driver-specific checks. Therefore the driver cannot apply
> the buswidth in devicetree.
>
> Call spi_mem_default_supports_op() helper to handle the buswidth
> in devicetree.
>
> Fixes: 358f803ae21c ("spi: Add Socionext F_OSPI SPI flash controller driver")
> Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
> ---

Applied to u-boot-spi/master
diff mbox series

Patch

diff --git a/drivers/spi/spi-sn-f-ospi.c b/drivers/spi/spi-sn-f-ospi.c
index ebf2903d3e..e3633a5260 100644
--- a/drivers/spi/spi-sn-f-ospi.c
+++ b/drivers/spi/spi-sn-f-ospi.c
@@ -556,7 +556,7 @@  static bool f_ospi_supports_op(struct spi_slave *slave,
 	if (!f_ospi_supports_op_width(op))
 		return false;
 
-	return true;
+	return spi_mem_default_supports_op(slave, op);
 }
 
 static int f_ospi_adjust_op_size(struct spi_slave *slave, struct spi_mem_op *op)