]> git.sur5r.net Git - u-boot/commit
exynos: i2c: Fix i2c driver to handle NACKs properly
authorNaveen Krishna Ch <ch.naveen@samsung.com>
Tue, 15 Oct 2013 10:31:43 +0000 (16:01 +0530)
committerHeiko Schocher <hs@denx.de>
Thu, 17 Oct 2013 05:20:26 +0000 (07:20 +0200)
commite4e2402071e8052eab7fb10ecfbdec01310ac06f
treea1556915d8ed661408672fc234e867569cfd5af5
parent83d271b5ffc19e98098861dd21e940cf53545a43
exynos: i2c: Fix i2c driver to handle NACKs properly

The Exynos5 i2c driver does not handle NACKs properly. This change:

- fixes the NACK processing problem (do not continue transaction if
  address cycle was NACKed)

- eliminates a fair amount of duplicate code

Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-by: Simon Glass <sjg@google.com>
Signed-off-by: Naveen Krishna Chatradhi <ch.naveen@samsung.com>
drivers/i2c/s3c24x0_i2c.c