]> git.karo-electronics.de Git - linux-beck.git/commit
i2c: mediatek: add i2c first write then read optimization
authorLiguo Zhang <liguo.zhang@mediatek.com>
Mon, 9 Nov 2015 05:43:58 +0000 (13:43 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 1 Dec 2015 00:55:45 +0000 (01:55 +0100)
commit173b77e8d8fe18e2792fa5dadebd2350f213abbe
tree2a158d30dcbe6d6eb54e2a79cec0e6c6ad027968
parent948c58a03a4c63edc1007c222c340003fdba6d98
i2c: mediatek: add i2c first write then read optimization

For platform with auto restart support, between every transfer,
i2c controller will trigger an interrupt and SW need to handle
it to start new transfer. When doing write-then-read transfer,
instead of restart mechanism, using WRRD mode to have controller
send both transfer in one request to reduce latency.

Signed-off-by: Liguo Zhang <liguo.zhang@mediatek.com>
Reviewed-by: Eddie Huang <eddie.huang@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mt65xx.c