]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/i2c/busses/i2c-sh_mobile.c
i2c: sh_mobile: add DMA support
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Fri, 7 Nov 2014 10:11:41 +0000 (11:11 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 12 Nov 2014 16:08:40 +0000 (17:08 +0100)
commit2d09581b4cc95c82b5fcc654e78b2d6de7350527
tree0aae176505533e752aa133c08dc562db4488135b
parent5bbe687912fef9a12f6fc1c0c236486536f6d578
i2c: sh_mobile: add DMA support

Make it possible to transfer i2c message buffers via DMA.
Start/Stop/Sending_Slave_Address is still handled using the old state
machine, it is sending the actual data that is done via DMA. This is
least intrusive and allows us to work with the message buffers directly
instead of preparing a custom buffer which involves copying the data
around.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
[wsa: fixed an uninitialized var problem]
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt
drivers/i2c/busses/i2c-sh_mobile.c