i2c: rcar: bail out on zero length transfers
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 5 May 2014 16:36:21 +0000 (18:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Jun 2014 20:25:39 +0000 (13:25 -0700)
commit670a6ed522e0fa814d74547cb95fbc4854660474
tree8c7fc82cf538e35ff5e21d5a804b35b2bb23f16d
parentfeed5a88f45f26e4fda34838b4929536d4a8e775
i2c: rcar: bail out on zero length transfers

commit d7653964c590ba846aa11a8f6edf409773cbc492 upstream.

This hardware does not support zero length transfers. Instead, the
driver does one (random) byte transfers currently with undefined results
for the slaves. We now bail out.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-rcar.c