Commit c0b53f4
spi: cadence-quadspi: Disable the SPI before reconfiguring
Observed random DMA timeout failures while doing back to back
transfers which involves switching the modes from DMA to NON-DMA.
This issue is observed while testing the OSPI+UBIFS file system test case
where rootfs is mounted from OSPI UBIFS partition.
To avoid this issue, disable the SPI before changing the configuration
from external DMA to NON-DMA and vice versa and reenable it after changing
the configuration.
As per the Cadence Octal SPI design specification, it is recommended to
disable the Octal-SPI enable bit before reconfiguring.
Signed-off-by: Sai Krishna Potthuri <sai.krishna.potthuri@amd.com>
Link: https://lore.kernel.org/r/20230320095931.2651714-3-sai.krishna.potthuri@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 22c8ce0 commit c0b53f4
1 file changed
Lines changed: 23 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
794 | 809 | | |
795 | 810 | | |
796 | 811 | | |
| |||
815 | 830 | | |
816 | 831 | | |
817 | 832 | | |
| 833 | + | |
| 834 | + | |
818 | 835 | | |
819 | 836 | | |
820 | 837 | | |
821 | 838 | | |
| 839 | + | |
| 840 | + | |
822 | 841 | | |
823 | 842 | | |
824 | 843 | | |
| |||
876 | 895 | | |
877 | 896 | | |
878 | 897 | | |
| 898 | + | |
| 899 | + | |
879 | 900 | | |
880 | 901 | | |
881 | 902 | | |
882 | 903 | | |
| 904 | + | |
| 905 | + | |
883 | 906 | | |
884 | 907 | | |
885 | 908 | | |
| |||
1182 | 1205 | | |
1183 | 1206 | | |
1184 | 1207 | | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
1189 | | - | |
1190 | | - | |
1191 | | - | |
1192 | | - | |
1193 | | - | |
1194 | | - | |
1195 | | - | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | 1208 | | |
1201 | 1209 | | |
1202 | 1210 | | |
| |||
0 commit comments