]> git.sur5r.net Git - u-boot/commit
i2c: i2c-uclass-compat: avoid any BSS usage
authorVignesh R <vigneshr@ti.com>
Mon, 25 Jul 2016 10:56:45 +0000 (16:26 +0530)
committerTom Rini <trini@konsulko.com>
Mon, 8 Aug 2016 17:33:00 +0000 (13:33 -0400)
commit95def3cf5d24aebbcdffe6c4fc1a39288cf00b6a
tree5da7983c36c96d4411c17842e532ad2b887e378c
parent0812d1a094c402db4fc25ca988113a6d6663c70f
i2c: i2c-uclass-compat: avoid any BSS usage

As I2C can be used before DRAM initialization for reading EEPROM,
avoid using static variables stored in BSS, since BSS is in DRAM, which
may not have been initialised yet. Explicitly mark "static global"
variables as belonging to the .data section.

Signed-off-by: Vignesh R <vigneshr@ti.com>
Acked-by: Heiko Schocher<hs@denx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/i2c/i2c-uclass-compat.c