mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-03 09:59:44 +00:00
c6b52c4927
Use calloc() instead of malloc() to allocate the mxs_spi_slave structure. Clearing the memory is necessary since most of the time this gets done super early in boot, but on warm reboots, and when SPI probing is done long after the init stages it could actually pick up previously used memory, and things like the chipselect polarity and other data end up being filled with trash data if not explicitly set by the board files. This solves a semi-random, almost unreproducable error whereby SPI devices act very, very strangly on boot. Signed-off-by: Matt Sealey <matt@genesi-usa.com> Acked-by: Stefano Babic <sbabic@denx.de> |
||
---|---|---|
.. | ||
altera_spi.c | ||
andes_spi.c | ||
andes_spi.h | ||
armada100_spi.c | ||
atmel_dataflash_spi.c | ||
atmel_spi.c | ||
atmel_spi.h | ||
bfin_spi.c | ||
cf_spi.c | ||
davinci_spi.c | ||
davinci_spi.h | ||
fsl_espi.c | ||
kirkwood_spi.c | ||
Makefile | ||
mpc8xxx_spi.c | ||
mpc52xx_spi.c | ||
mxc_spi.c | ||
mxs_spi.c | ||
oc_tiny_spi.c | ||
omap3_spi.c | ||
omap3_spi.h | ||
sh_spi.c | ||
sh_spi.h | ||
soft_spi.c | ||
tegra_spi.c | ||
xilinx_spi.c | ||
xilinx_spi.h |