i2c: add retry-process when slave NACK. [1/1]
authorDaogao Xu <daogao.xu@amlogic.com>
Thu, 28 Feb 2019 07:01:10 +0000 (15:01 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 11 Mar 2019 03:21:36 +0000 (19:21 -0800)
commite2c9db9405d8148bfe673a1fd12da6de013549ee
tree62a5b9d888a60bea5cf1942847f8272ca2596f80
parentf1b1f034d6df72867894d8daf024f7e3e87e7e9a
i2c: add retry-process when slave NACK. [1/1]

PD#SWPL-4761

Problem:
When slave device is busy processing, it is unable to handle the
incoming communication attempts. i2c master have to repeatedly attemp
communication  until the slave sends an ACK after receiving its slave
address.

Solution:
add retry-process when slave NACK.

Verify:
mesonaxg_s420_32_release

Change-Id: Ieb195176cac4b80e223ea6adb502ffd3bc9ef728
Signed-off-by: Daogao Xu <daogao.xu@amlogic.com>
drivers/amlogic/i2c/i2c-meson-master.c