Commit bc43c5ec authored by Kunihiko Hayashi's avatar Kunihiko Hayashi Committed by Mark Brown

spi: f_ospi: Add missing spi_mem_default_supports_op() helper

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: 1b74dd64 ("spi: Add Socionext F_OSPI SPI flash controller driver")
Signed-off-by: default avatarKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/20230322023101.24490-1-hayashi.kunihiko@socionext.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 99d822b3
...@@ -561,7 +561,7 @@ static bool f_ospi_supports_op(struct spi_mem *mem, ...@@ -561,7 +561,7 @@ static bool f_ospi_supports_op(struct spi_mem *mem,
if (!f_ospi_supports_op_width(mem, op)) if (!f_ospi_supports_op_width(mem, op))
return false; return false;
return true; return spi_mem_default_supports_op(mem, op);
} }
static int f_ospi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op) static int f_ospi_adjust_op_size(struct spi_mem *mem, struct spi_mem_op *op)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment