diff options
author | Kunihiko Hayashi <hayashi.kunihiko@socionext.com> | 2023-03-22 03:31:01 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-03-22 14:17:43 +0100 |
commit | bc43c5ec1a97772269785d19f62d32c91ac5fc36 (patch) | |
tree | 8db7682bb24f23c702d9109cab1fa6d983414611 /drivers/spi | |
parent | spi: spi-nxp-fspi: use DLL calibration when clock rate > 100MHz (diff) | |
download | linux-bc43c5ec1a97772269785d19f62d32c91ac5fc36.tar.xz linux-bc43c5ec1a97772269785d19f62d32c91ac5fc36.zip |
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: 1b74dd64c861 ("spi: Add Socionext F_OSPI SPI flash controller driver")
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Link: https://lore.kernel.org/r/20230322023101.24490-1-hayashi.kunihiko@socionext.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-sn-f-ospi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-sn-f-ospi.c b/drivers/spi/spi-sn-f-ospi.c index d64100f88181..a2bd9dcde075 100644 --- a/drivers/spi/spi-sn-f-ospi.c +++ b/drivers/spi/spi-sn-f-ospi.c @@ -561,7 +561,7 @@ static bool f_ospi_supports_op(struct spi_mem *mem, if (!f_ospi_supports_op_width(mem, op)) 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) |