i2c: designware: report short transfers
authorRussell King <rmk+kernel@armlinux.org.uk>
Fri, 18 Nov 2016 19:40:04 +0000 (19:40 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 24 Nov 2016 15:17:34 +0000 (16:17 +0100)
commit2bf413d56b7de72ab800a6edb009177e5669b929
tree2089398e2fbb900a7b9c3eae37c3901118f0ce9a
parent9c763584b7c8911106bb77af7e648bef09af9d80
i2c: designware: report short transfers

Rather than reporting success for a short transfer due to interrupt
latency, report an error both to the caller, as well as to the kernel
log.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-core.c