Commit 856b2e5
committed
[ot] hw/opentitan: spi_device: fix off-by-one last_read_addr
Read commands automatically increment the address so the last read
address register was too high.
I don't want to assign to this register before we do the increment
because the OpenTitan docs say it's only updated on CS release.
Signed-off-by: James Wainwright <[email protected]>1 parent 996a48e commit 856b2e5
1 file changed
+7
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
394 | 394 | | |
395 | 395 | | |
396 | 396 | | |
| 397 | + | |
397 | 398 | | |
398 | 399 | | |
399 | 400 | | |
| |||
706 | 707 | | |
707 | 708 | | |
708 | 709 | | |
| 710 | + | |
709 | 711 | | |
710 | 712 | | |
711 | 713 | | |
| |||
841 | 843 | | |
842 | 844 | | |
843 | 845 | | |
844 | | - | |
845 | | - | |
846 | | - | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
847 | 850 | | |
848 | 851 | | |
849 | 852 | | |
| |||
1228 | 1231 | | |
1229 | 1232 | | |
1230 | 1233 | | |
| 1234 | + | |
1231 | 1235 | | |
1232 | 1236 | | |
1233 | 1237 | | |
| |||
0 commit comments