aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/stoneyridge/Makefile.inc
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2018-01-25 17:30:45 -0700
committerAaron Durbin <adurbin@chromium.org>2018-01-26 23:37:39 +0000
commit3a649eec28b9440a628626a7b882a9fb185a9a4a (patch)
tree9e0e774a2c4abb994186e7f39bdf8e0d09197dae /src/soc/amd/stoneyridge/Makefile.inc
parente98722856e37c31152f1561891a1428a7bdbb557 (diff)
drivers/spi/spi_flash: honor spi controller fifo size for reads
The spi_flash_cmd_read_fast() and spi_flash_cmd_read_slow() were just passing full size buffers to the spi controller ops. However, the code wasn't honoring what the spi controller can actually perform. This would cause failures to read on controllers when large requests were sent in. Fix this by introducing a spi_flash_cmd_read_array_wrapped() function that calls spi_flash_cmd_read_array() in a loop once the maximum transfer size is calculated based on the spi controller's settings. BUG=b:65485690 Change-Id: I442d6e77a93fda411cb289b606189e490a4e464e Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/23444 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Justin TerAvest <teravest@chromium.org>
Diffstat (limited to 'src/soc/amd/stoneyridge/Makefile.inc')
0 files changed, 0 insertions, 0 deletions