From: Wolfram Sang Date: Tue, 16 Jun 2015 17:57:29 +0000 (+0200) Subject: i2c: tegra: apply size limit quirk X-Git-Tag: omap-for-v4.2/fixes-rc1^2~108^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3aaa34b9923b994c13267e05ce8246faa1e8c8eb;p=pandora-kernel.git i2c: tegra: apply size limit quirk payload_size is a 12 bit field in the HW register, so add a limit for this size. That way we gracefully reject the message beforehand instead of generating an OOPS while transferring. Verified using some older Tegra2 documentation and a more recent Jetson TK1 board. Signed-off-by: Wolfram Sang Reviewed-by: Alexander Sverdlin --- Reading git-diff-tree failed