drivers: net: ldpaa_eth: lx2160a: fix bug in checking if a DPMAC is enabled
authorGrigore Popescu <grigore.popescu@nxp.com>
Thu, 10 Sep 2020 09:59:03 +0000 (12:59 +0300)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 24 Sep 2020 15:27:32 +0000 (20:57 +0530)
commit479cfd1fa6559b6b4e260b05657a0c09bb76c837
tree6bb78ae2c4c57f18a4645c0720dda35c30ab37d8
parent4e0dc38da007548702684bcd0b87700385f235a6
drivers: net: ldpaa_eth: lx2160a: fix bug in checking if a DPMAC is enabled

The next DPMAC was always verified if it is enabled.  In case of
DPMAC@6, the DPMAC@7 is verified.  As DPMAC@7 is disabled, DPMAC@6 will
be considered disabled and not detected by uboot.

Signed-off-by: Grigore Popescu <grigore.popescu@nxp.com>
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
drivers/net/ldpaa_eth/lx2160a.c