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) Signed-off-by: Jon Lin <jon.lin@rock-chips.com> (cherry picked from commit ca2abb75a086d8b0bdb51689f331ba8f1a146379) Change-Id: Ia76abf7491780b1984eb81c6c78796bcc0141095 |
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| altera_spi.c | ||
| atcspi200_spi.c | ||
| ath79_spi.c | ||
| atmel_spi.c | ||
| atmel_spi.h | ||
| bcm63xx_hsspi.c | ||
| bcm63xx_spi.c | ||
| cadence_qspi.c | ||
| cadence_qspi.h | ||
| cadence_qspi_apb.c | ||
| cf_spi.c | ||
| davinci_spi.c | ||
| designware_spi.c | ||
| exynos_spi.c | ||
| fsl_dspi.c | ||
| fsl_espi.c | ||
| fsl_qspi.c | ||
| fsl_qspi.h | ||
| ich.c | ||
| ich.h | ||
| kirkwood_spi.c | ||
| lpc32xx_ssp.c | ||
| mpc8xx_spi.c | ||
| mpc8xxx_spi.c | ||
| mvebu_a3700_spi.c | ||
| mxc_spi.c | ||
| mxs_spi.c | ||
| omap3_spi.c | ||
| pic32_spi.c | ||
| renesas_rpc_spi.c | ||
| rk_spi.c | ||
| rk_spi.h | ||
| rockchip_sfc.c | ||
| sandbox_spi.c | ||
| sh_qspi.c | ||
| sh_spi.c | ||
| sh_spi.h | ||
| soft_spi.c | ||
| soft_spi_legacy.c | ||
| spi-emul-uclass.c | ||
| spi-mem-nodm.c | ||
| spi-mem.c | ||
| spi-uclass.c | ||
| spi.c | ||
| stm32_qspi.c | ||
| tegra20_sflash.c | ||
| tegra20_slink.c | ||
| tegra114_spi.c | ||
| tegra210_qspi.c | ||
| tegra_spi.h | ||
| ti_qspi.c | ||
| xilinx_spi.c | ||
| zynq_qspi.c | ||
| zynq_spi.c | ||