From: Wolfram Sang Date: Fri, 13 Jan 2012 11:14:26 +0000 (+0100) Subject: i2c: mxs: only flag completion when queue is completely done X-Git-Tag: v3.3-rc6~18^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=844990daa2e69a4258049ba9c2bae1180657dac3;p=pandora-kernel.git i2c: mxs: only flag completion when queue is completely done The hardware generates an interrupt for every completed command in the queue while the code assumed that it will only generate one interrupt when the queue is empty. So, explicitly check if the queue is really empty. This patch fixed problems which occurred due to high traffic on the bus. While we are here, move the completion-initialization after the parameter error checking. Signed-off-by: Wolfram Sang Cc: Shawn Guo Cc: Marek Vasut Cc: Lothar Waßmann Cc: stable@kernel.org --- Reading git-diff-tree failed