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.2.10~85 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46774e8405812c94d96d795c9f0e1750f90811e0;p=pandora-kernel.git i2c: mxs: only flag completion when queue is completely done commit 844990daa2e69a4258049ba9c2bae1180657dac3 upstream. 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed