dpaa2-mac: workaround for zero advertising on the MAC
authorIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 2 Jun 2021 15:27:55 +0000 (18:27 +0300)
committerXiaobo Xie <xiaobo.xie@nxp.com>
Thu, 3 Jun 2021 04:13:59 +0000 (06:13 +0200)
commitead765a527718bfb3b1cb6c673aa882b65afd095
treee89653ce6d3a87d6e0af3cb995bae56bf45888ef
parentcf8c29c14df7f7cacfe04b71e682cfe409f7ec22
dpaa2-mac: workaround for zero advertising on the MAC

It seems there are some circumstances in the latest MC firmware versions
where an empty advertising field is returned by the dpmac_get_link_cfg()
command. This will eventually lead to the link not going up.
Work around this issue by skipping PHY reconfiguration if this happens.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
drivers/net/ethernet/freescale/dpaa2/dpaa2-mac.c