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)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 14 May 2014 16:59:57 +0000 (18:59 +0200)
commitd7653964c590ba846aa11a8f6edf409773cbc492
tree631c1fb2ad1e7b7745404c93a66f1e44003fe0e8
parentfa01d096bfcfd89398b1f3a3f91805dab76f7fe5
i2c: rcar: bail out on zero length transfers

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>
Cc: stable@kernel.org
drivers/i2c/busses/i2c-rcar.c