diff options
author | Wolfram Sang <w.sang@pengutronix.de> | 2012-01-13 12:14:26 +0100 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-02-24 22:28:27 +0100 |
commit | 844990daa2e69a4258049ba9c2bae1180657dac3 (patch) | |
tree | b86fa5273824030367cb2d45af845b45d2b02982 /drivers/i2c/Kconfig | |
parent | b01543dfe67bb1d191998e90d20534dc354de059 (diff) |
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 <w.sang@pengutronix.de>
Cc: Shawn Guo <shawn.guo@linaro.org>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Lothar Waßmann <LW@KARO-electronics.de>
Cc: stable@kernel.org
Diffstat (limited to 'drivers/i2c/Kconfig')
0 files changed, 0 insertions, 0 deletions