Since commit 4a3cc7fb6e63 ("spi: spi-mem: Introduce a capability structure")
introduced a new struct spi_controller_mem_caps to indicate the DTR mode is
supportd or not. For S32G fsl-qspi, it uses DTR mode, so set it to true to
tell that the DTR mode is enabled, or else, there will be following error:
# dmesg | grep nor
spi-nor spi6.0: Software reset failed: -524
Signed-off-by: Zhantao Tang <[email protected]>
---
drivers/spi/spi-fsl-qspi.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/drivers/spi/spi-fsl-qspi.c b/drivers/spi/spi-fsl-qspi.c
index b74573b6bf84..5ac50921a014 100644
--- a/drivers/spi/spi-fsl-qspi.c
+++ b/drivers/spi/spi-fsl-qspi.c
@@ -1446,6 +1446,10 @@ static const struct spi_controller_mem_ops
fsl_qspi_mem_ops = {
.get_name = fsl_qspi_get_name,
};
+static const struct spi_controller_mem_caps fsl_qspi_mem_caps = {
+ .dtr = true,
+};
+
static int fsl_qspi_probe(struct platform_device *pdev)
{
struct spi_controller *ctlr;
@@ -1535,6 +1539,7 @@ static int fsl_qspi_probe(struct platform_device *pdev)
ctlr->bus_num = -1;
ctlr->num_chipselect = 4;
ctlr->mem_ops = &fsl_qspi_mem_ops;
+ ctlr->mem_caps = &fsl_qspi_mem_caps;
q->from_str = false;
fsl_qspi_default_setup(q);
--
2.25.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#12715):
https://lists.yoctoproject.org/g/linux-yocto/message/12715
Mute This Topic: https://lists.yoctoproject.org/mt/99398805/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-