From: Harini Katakam Date: Tue, 13 Jan 2015 18:34:59 +0000 (+0530) Subject: i2c: cadence: Check for errata condition involving master receive X-Git-Tag: fixes-v4.0-rc1~32^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a86c3aee0cfec09b35159da9d925157f3e4f2cc;p=pandora-kernel.git i2c: cadence: Check for errata condition involving master receive Cadence I2C controller has the following bugs: - completion indication is not given to the driver at the end of a read/receive transfer with HOLD bit set. - Invalid read transaction are generated on the bus when HW timeout condition occurs with HOLD bit set. As a result of the above, if a set of messages to be transferred with repeated start includes any message following a read message, completion is never indicated and timeout occurs. Hence a check is implemented to return -EOPNOTSUPP for such sequences. Signed-off-by: Harini Katakam Signed-off-by: Vishnu Motghare [wsa: fixed some whitespaces] Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed