On some platforms, the PCS can be integrated in the MAC so the driver
will not see any PCS link activity. Add a switch that allows the platform
drivers to let the core code know.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Jose Abreu <Jose.Abreu@synopsys.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
                }
 
                /* PCS link status */
-               if (priv->hw->pcs) {
+               if (priv->hw->pcs && !priv->plat->has_integrated_pcs) {
                        if (priv->xstats.pcs_link)
                                netif_carrier_on(priv->dev);
                        else
 
        bool sph_disable;
        bool serdes_up_after_phy_linkup;
        const struct dwmac4_addrs *dwmac4_addrs;
+       bool has_integrated_pcs;
 };
 #endif