i2c: smbus: use DMA safe buffers for emulated SMBus transactions
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Sat, 4 Nov 2017 20:20:06 +0000 (21:20 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 3 Dec 2017 20:24:52 +0000 (21:24 +0100)
commit8a77821e74d6d5ba2eacd4b450684ae6cbe012a0
treee031cea44e187adad246ed430beedf519f6ce702
parentba98645c7d54640f163096cda3609d4d55c6ae54
i2c: smbus: use DMA safe buffers for emulated SMBus transactions

For all block commands, try to allocate a DMA safe buffer and mark it
accordingly. Only use the stack, if the buffers cannot be allocated.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core-smbus.c