diff options
| author | Chris Packham <[email protected]> | 2016-05-13 15:19:31 +1200 |
|---|---|---|
| committer | Heiko Schocher <[email protected]> | 2016-05-17 08:32:02 +0200 |
| commit | d6b7757e41d22e08f21f58d3fe9183a150582f61 (patch) | |
| tree | b476033fedb3cdd1be2b8facfa49b189ead172b3 /api/api.c | |
| parent | 3a3705280d1d06e4d9a62fbe895dbe03939ad00e (diff) | |
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 <[email protected]>
Diffstat (limited to 'api/api.c')
0 files changed, 0 insertions, 0 deletions
