[U-Boot] [U-Boot, RFC] i2c: i2c-uclass-compat: avoid any BSS usage

Tom Rini trini at konsulko.com
Wed Aug 10 02:45:13 CEST 2016


On Mon, Jul 25, 2016 at 04:26:45PM +0530, Vignesh R wrote:

> 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 at ti.com>
> Acked-by: Heiko Schocher<hs at denx.de>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160809/99dc7a69/attachment.sig>


More information about the U-Boot mailing list