summaryrefslogtreecommitdiffstats
path: root/drivers/power/battery
diff options
context:
space:
mode:
authorChris Packham <judge.packham@gmail.com>2016-05-13 15:19:31 +1200
committerHeiko Schocher <hs@denx.de>2016-05-17 08:32:02 +0200
commitd6b7757e41d22e08f21f58d3fe9183a150582f61 (patch)
treeb476033fedb3cdd1be2b8facfa49b189ead172b3 /drivers/power/battery
parent3a3705280d1d06e4d9a62fbe895dbe03939ad00e (diff)
downloadblackbird-obmc-uboot-d6b7757e41d22e08f21f58d3fe9183a150582f61.tar.gz
blackbird-obmc-uboot-d6b7757e41d22e08f21f58d3fe9183a150582f61.zip
i2c: mvtwsi: Eliminate twsi_control_flags
In a system where the initial u-boot location is genuinely NOR flash (as opposed to RAM or a cache-line setup by a pre-bootloader) writes to the data section are problematic. At best these writes have no effect, at worst they put the flash memory into a status mode which changes the executable code underneath us. Pass around a stack variable from the top of the twsi i2c driver to avoid writing to global data. Signed-off-by: Chris Packham <judge.packham@gmail.com>
Diffstat (limited to 'drivers/power/battery')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud