spi: cadence-qspi: Add disable STIG mode quikrs.
authorBoon Khai Ng <boon.khai.ng@altera.com>
Wed, 16 Apr 2025 03:17:51 +0000 (11:17 +0800)
committerTom Rini <trini@konsulko.com>
Thu, 24 Apr 2025 14:25:43 +0000 (08:25 -0600)
commitfd313530ae79e96f1b7a9edbf2bb98908985e6ba
tree2225f564f4ff4f79c7d2c3d83fe0e7ca535e0ace
parent40184015ef8348f0a5b9a61a6188f678a10c3a2a
spi: cadence-qspi: Add disable STIG mode quikrs.

Adding quirk to disable STIG mode since cadence controller has
issue for read/write using the STIG mode. STIG mode is enabled
by default since 2023.04 for small read/write(<8bytes).

Updated STIG mode reading from dev_get_driver_data by assigning
to platdata struct before read quirks variable.

The STIG mode is disabled for normal read case and enabled
for QSPI Jedec ID read/write since it requires STIG read/write.

Porting from linux implementation
https://lore.kernel.org/all/20241204063338.296959-1-niravkumar
.l.rabara@intel.com/T/

Signed-off-by: Boon Khai Ng <boon.khai.ng@altera.com>
Reviewed-by: Tien Fong Chee <tien.fong.chee@altera.com>
drivers/spi/cadence_qspi.c
drivers/spi/cadence_qspi.h