commit | 518e230f4a99c22542ff2c9919a9afdd42977cbe | [log] [tgz] |
---|---|---|
author | Sagar Dharia <sdharia@codeaurora.org> | Fri Aug 05 11:03:03 2011 -0600 |
committer | Bryan Huntsman <bryanh@codeaurora.org> | Mon Oct 03 10:29:06 2011 -0700 |
tree | 8e218e465783808c068afa8582308d493fc3d20d | |
parent | 7ab6a9cb65c16bdc0e76fae50ac4773e88672219 [diff] |
qup_i2c: Fix state check in polling code. If QUP core is in PAUSE state then the state check returns true for any other state incorrectly. Also, if the core is in RUN state and it's being put in RESET, then RESET state check may return true even if it's not out of RUN (and if VALID bit is set). State mask is used to verify what state QUP core is in to avoid this problem. Signed-off-by: Sagar Dharia <sdharia@codeaurora.org>