MLK-12185 mlb: imx: fix the operation for mlb status in mlb_isr
authorGao Pan <pandy.gao@nxp.com>
Mon, 11 Jan 2016 08:30:05 +0000 (16:30 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:43 +0000 (14:49 -0500)
commit5fe8f52602d3a93ec7e8aef18504816553cc7aae
treed5e8e40ba0555bfbcb7ab9e56fbfffaf769d9135
parent3945978a5548887be6015fbc2358f173093f97c2
MLK-12185 mlb: imx: fix the operation for mlb status in mlb_isr

As a result that the wrong operation is used for the mlb status
in mlb_isr(), some results are independent of their operations.

for example:
rx_cis = (cdt_val[2] & ~MASK) >> SHIFT, where, MASK = 0xf0000000
and SHIFT = 28. So, the result is always 0 regardless of the values
of its operands.

This patch fixes the operation for mlb status in mlb_isr().

(reported by coverity check)

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
drivers/mxc/mlb/mxc_mlb.c