i2c: lpc32xx: fix read timeout
authorSylvain Lemieux <slemieux@tycoint.com>
Mon, 27 Jul 2015 17:37:38 +0000 (13:37 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 17 Aug 2015 12:11:49 +0000 (08:11 -0400)
commit3d2b6a2e5f57f752c2541116beb89bf6db41a841
tree16d586d424889d4f8375c407203c65ac7e0218cf
parentb395a996a65572a5e64d648ac4dc4d43a53ea38b
i2c: lpc32xx: fix read timeout

Fix a condition that generate watchdog timeout inside "lpc32xx_i2c_read" when parameters alen != 0 and len = 0.

Signed-off-by: Sylvain Lemieux <slemieux@tycoint.com>
drivers/i2c/lpc32xx_i2c.c