Skip to content
Commit 173b77e8 authored by Liguo Zhang's avatar Liguo Zhang Committed by Wolfram Sang
Browse files

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: default avatarLiguo Zhang <liguo.zhang@mediatek.com>
Reviewed-by: default avatarEddie Huang <eddie.huang@mediatek.com>
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 948c58a0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment