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>
(cherry picked from commit 8a77821e74d6d5ba2eacd4b450684ae6cbe012a0)
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
1 file changed