OSDN Git Service

i2c: mediatek: Use DMA safe buffers for i2c transactions
authorJun Gao <jun.gao@mediatek.com>
Thu, 6 Sep 2018 13:15:29 +0000 (21:15 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 6 Sep 2018 18:33:15 +0000 (20:33 +0200)
commitfc66b39fe36acfd06f716e338de7cd8f9550fad2
treeb3d80ba277025afffd1bfb253dcc12965f0797d1
parent9cbeeca05049b1109e7e445369898b8a88d5ea7b
i2c: mediatek: Use DMA safe buffers for i2c transactions

DMA mode will always be used in i2c transactions, try to allocate
a DMA safe buffer if the buf of struct i2c_msg used is not DMA safe.

Signed-off-by: Jun Gao <jun.gao@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mt65xx.c