]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit899c72f697692abcfb8e80e09762618868419739
treeb3d80ba277025afffd1bfb253dcc12965f0797d1
parent41d5c82547f83a6bd7f89a881df4200320c94157
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