Due to IP integration difference, there are 2 ahb irqs
for imx6 and only 1 ahb irq for imx8. This patch makes
mlb driver compatible with irq difference.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
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>
After coverity code check, it tips:
unsigned_compare: This less-than-zero comparison of an unsigned value is never true
Interrupt variable must be signed type.
Signed-off-by: Fugang Duan <B38611@freescale.com>
i.MX6SX has MLB150, add support for it.
Signed-off-by: Anson Huang <b20788@freescale.com>
(cherry picked from commit 99d374da7d49d45800821b28d55e032387f1cc67)