Commit a827ad9
spi: stm32: Revert change that enabled controller before asserting CS
On stm32mp157 enabling the controller before asserting CS makes the
hardware trigger spurious interrupts in a tight loop and the transfers
fail. Revert the commit that swapped the order of enable and CS. This
reintroduces the problem that swapping was supposed to fix, which
however is less grave.
Reported-by: Leonard Göhrs <[email protected]>
Link: https://lore.kernel.org/all/[email protected]/
Fixes: 52b62e7 ("spi: stm32: enable controller before asserting CS")
Signed-off-by: Uwe Kleine-König <[email protected]>
Link: https://msgid.link/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>1 parent ef13561 commit a827ad9
1 file changed
+12
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1016 | 1016 | | |
1017 | 1017 | | |
1018 | 1018 | | |
| 1019 | + | |
1019 | 1020 | | |
1020 | 1021 | | |
| 1022 | + | |
1021 | 1023 | | |
1022 | 1024 | | |
1023 | 1025 | | |
| |||
1185 | 1187 | | |
1186 | 1188 | | |
1187 | 1189 | | |
1188 | | - | |
1189 | | - | |
1190 | 1190 | | |
1191 | 1191 | | |
1192 | 1192 | | |
| |||
1204 | 1204 | | |
1205 | 1205 | | |
1206 | 1206 | | |
| 1207 | + | |
1207 | 1208 | | |
1208 | 1209 | | |
1209 | 1210 | | |
| |||
1218 | 1219 | | |
1219 | 1220 | | |
1220 | 1221 | | |
| 1222 | + | |
1221 | 1223 | | |
1222 | 1224 | | |
1223 | 1225 | | |
| |||
1305 | 1307 | | |
1306 | 1308 | | |
1307 | 1309 | | |
| 1310 | + | |
| 1311 | + | |
1308 | 1312 | | |
1309 | 1313 | | |
1310 | 1314 | | |
| |||
1341 | 1345 | | |
1342 | 1346 | | |
1343 | 1347 | | |
| 1348 | + | |
| 1349 | + | |
1344 | 1350 | | |
1345 | 1351 | | |
1346 | 1352 | | |
| |||
1372 | 1378 | | |
1373 | 1379 | | |
1374 | 1380 | | |
| 1381 | + | |
| 1382 | + | |
1375 | 1383 | | |
1376 | 1384 | | |
1377 | 1385 | | |
| |||
1405 | 1413 | | |
1406 | 1414 | | |
1407 | 1415 | | |
| 1416 | + | |
| 1417 | + | |
1408 | 1418 | | |
1409 | 1419 | | |
1410 | 1420 | | |
| |||
0 commit comments