u-boot/drivers
Matt Sealey 784097ae5a spi: fix mxc_spi_slave structure allocation to clear memory
Use calloc() instead of malloc() to allocate the mxc_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. Tested on Efika MX over several years..

Signed-off-by: Matt Sealey <matt@genesi-usa.com>
Acked-by: Stefano Babic <sbabic@denx.de>
2012-09-01 14:58:27 +02:00
..
bios_emulator Add abs() macro to return absolute value 2012-05-15 08:31:37 +02:00
block Remove remaining mdelay() macros 2012-07-08 22:15:08 +02:00
bootcount Consolidate bootcount code into drivers/bootcount 2012-09-01 14:26:02 +02:00
dma mxs: Convert sys_proto.h prefixes to 'mxs' 2012-09-01 14:58:25 +02:00
fpga Remove execute permissions from source files 2012-03-04 21:56:15 +01:00
gpio tegra20: rename tegra2 -> tegra20 2012-09-01 14:58:21 +02:00
hwmon hwmon: do not init sensors on startup 2011-08-04 23:30:38 +02:00
i2c mxs: Convert sys_proto.h prefixes to 'mxs' 2012-09-01 14:58:25 +02:00
input tegra20: rename tegra2 -> tegra20 2012-09-01 14:58:21 +02:00
misc pmic: dialog: Avoid name conflicts 2012-05-15 08:31:34 +02:00
mmc mxs: Convert sys_proto.h prefixes to 'mxs' 2012-09-01 14:58:25 +02:00
mtd mxs: Convert sys_proto.h prefixes to 'mxs' 2012-09-01 14:58:25 +02:00
net arm : Atmel : add at91sam9x5ek board support 2012-09-01 14:58:14 +02:00
pci pci: declare pciauto functions in header 2012-03-30 22:46:00 +02:00
pcmcia PXA: Remove PXA PCMCIA support 2012-03-26 23:09:23 +02:00
power i2c: Add TPS6586X driver 2012-05-15 08:31:37 +02:00
qe drivers/qe/uec.c: Fix compile warning 2012-05-22 13:41:48 -05:00
rtc rtc: add support of mx27 rtc 2012-09-01 14:58:25 +02:00
serial snowball: Add support for ux500 based snowball board 2012-09-01 14:58:19 +02:00
spi spi: fix mxc_spi_slave structure allocation to clear memory 2012-09-01 14:58:27 +02:00
tpm Introduce generic TPM support in u-boot 2011-12-07 08:45:51 +01:00
twserial Switch from archive libraries to partial linking 2010-11-17 21:02:18 +01:00
usb mxs: rename regs-clkctrl.h to regs-clkctrl-mx28.h 2012-09-01 14:58:25 +02:00
video video: support exynos pwm backlight driver 2012-09-01 14:58:24 +02:00
watchdog AT91: fix at91sam_wdt.c to reworked header files 2011-05-18 07:56:51 +02:00