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>
1 file changed