Commit 3373e90
spi: stm32: fix fifo threshold level in case of short transfer
When transfer is shorter than half of the fifo, set the data packet size
up to transfer size instead of up to half of the fifo.
Check also that threshold is set at least to 1 data frame.
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Signed-off-by: Alain Volmat <alain.volmat@st.com>
Link: https://lore.kernel.org/r/1597043558-29668-3-git-send-email-alain.volmat@st.com
Signed-off-by: Mark Brown <broonie@kernel.org>1 parent 135dd87 commit 3373e90
1 file changed
Lines changed: 18 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
470 | 471 | | |
471 | | - | |
| 472 | + | |
472 | 473 | | |
473 | | - | |
| 474 | + | |
474 | 475 | | |
475 | 476 | | |
476 | 477 | | |
477 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
478 | 485 | | |
479 | | - | |
| 486 | + | |
480 | 487 | | |
481 | | - | |
| 488 | + | |
482 | 489 | | |
483 | | - | |
| 490 | + | |
484 | 491 | | |
485 | 492 | | |
486 | 493 | | |
487 | 494 | | |
488 | 495 | | |
489 | 496 | | |
490 | 497 | | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
491 | 501 | | |
492 | 502 | | |
493 | 503 | | |
| |||
1393 | 1403 | | |
1394 | 1404 | | |
1395 | 1405 | | |
1396 | | - | |
| 1406 | + | |
1397 | 1407 | | |
1398 | 1408 | | |
1399 | 1409 | | |
| |||
1588 | 1598 | | |
1589 | 1599 | | |
1590 | 1600 | | |
| 1601 | + | |
| 1602 | + | |
1591 | 1603 | | |
1592 | 1604 | | |
1593 | 1605 | | |
| |||
1635 | 1647 | | |
1636 | 1648 | | |
1637 | 1649 | | |
1638 | | - | |
1639 | | - | |
1640 | 1650 | | |
1641 | 1651 | | |
1642 | 1652 | | |
| |||
0 commit comments