From: Jean Delvare Date: Mon, 14 Jul 2008 20:38:33 +0000 (+0200) Subject: i2c-i801: Fix handling of error conditions X-Git-Tag: v2.6.27-rc1~1077^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf898dc5e9dfd1487b28ca0176b68722f05d4d48;p=pandora-kernel.git i2c-i801: Fix handling of error conditions Move the check of pre-transaction and post-transaction conditions to separate functions, and adjust them a bit. Having dedicated functions for that ensures that errors are handled in a consistent way. Bit HOST_BUSY of the status register is read-only, so writing to it is certainly not going to clear it. If this bit is set then we simply don't want to start the transaction, as it means that somebody else (ACPI, SMM?) is already using the controller. Signed-off-by: Jean Delvare --- Reading git-diff-tree failed