linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [RFC] spi: cadence-quadspi: Disable DAC on SoCFPGA
@ 2022-02-21  4:32 Marek Vasut
  2022-02-21 16:38 ` Dinh Nguyen
  0 siblings, 1 reply; 13+ messages in thread
From: Marek Vasut @ 2022-02-21  4:32 UTC (permalink / raw)
  To: linux-spi; +Cc: Marek Vasut, Dinh Nguyen, Pratyush Yadav

On SoCFPGA Gen5, DAC memcpy_fromio() in cqspi_direct_read_execute()
leads to data abort, disable DAC to avoid triggering it:

Unhandled fault: imprecise external abort (0x1406) at 0x0400d3e9
[0400d3e9] *pgd=00000000

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@kernel.org>
Cc: Pratyush Yadav <p.yadav@ti.com>
---
 drivers/spi/spi-cadence-quadspi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c
index b808c94641fa6..65f2c2449be09 100644
--- a/drivers/spi/spi-cadence-quadspi.c
+++ b/drivers/spi/spi-cadence-quadspi.c
@@ -1870,7 +1870,7 @@ static const struct cqspi_driver_platdata intel_lgm_qspi = {
 };
 
 static const struct cqspi_driver_platdata socfpga_qspi = {
-	.quirks = CQSPI_NO_SUPPORT_WR_COMPLETION,
+	.quirks = CQSPI_DISABLE_DAC_MODE | CQSPI_NO_SUPPORT_WR_COMPLETION,
 };
 
 static const struct cqspi_driver_platdata versal_ospi = {
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-02-23 23:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-21  4:32 [PATCH] [RFC] spi: cadence-quadspi: Disable DAC on SoCFPGA Marek Vasut
2022-02-21 16:38 ` Dinh Nguyen
2022-02-21 17:05   ` Marek Vasut
2022-02-22 15:49     ` Dinh Nguyen
2022-02-22 18:30       ` Marek Vasut
2022-02-22 21:32         ` Dinh Nguyen
2022-02-23  0:54           ` Marek Vasut
2022-02-23 16:28             ` Dinh Nguyen
2022-02-23 16:43               ` Marek Vasut
2022-02-23 16:46                 ` Dinh Nguyen
2022-02-23 17:16                   ` Marek Vasut
2022-02-23 22:18                     ` Dinh Nguyen
2022-02-23 23:46                       ` Marek Vasut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).