summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2019-05-18 11:59:54 -0600
committerSimon Glass <sjg@chromium.org>2019-07-10 16:52:58 -0600
commitca2abb75a086d8b0bdb51689f331ba8f1a146379 (patch)
treee6afa389d92309be6d002a4eec41a59d7f2b3e66 /board
parent731ba3c0beaf4318cc97ece1e422a61fc5721f5b (diff)
spi: Avoid using malloc() in a critical function
In general we should avoid calling malloc() and free() repeatedly in U-Boot lest we turn it into tianocore. In SPL this can make SPI flash unusable since free() is often a nop and allocation space is limited. In any case, these seems no need for malloc() since the number of bytes is very small, perhaps less than 8. Signed-off-by: Simon Glass <sjg@chromium.org> Fixes: d13f5b254a (spi: Extend the core to ease integration of SPI memory controllers)
Diffstat (limited to 'board')
0 files changed, 0 insertions, 0 deletions