mirror of
https://github.com/torvalds/linux.git
synced 2026-12-03 11:53:53 +00:00
net: stmmac: add new switch to struct plat_stmmacenet_data
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 <[email protected]> Reviewed-by: Jose Abreu <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
This commit is contained in:
committed by
Jakub Kicinski
parent
463120c31c
commit
aa571b6275
@@ -5798,7 +5798,7 @@ static void stmmac_common_interrupt(struct stmmac_priv *priv)
|
||||
}
|
||||
|
||||
/* 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
|
||||
|
||||
@@ -293,5 +293,6 @@ struct plat_stmmacenet_data {
|
||||
bool sph_disable;
|
||||
bool serdes_up_after_phy_linkup;
|
||||
const struct dwmac4_addrs *dwmac4_addrs;
|
||||
bool has_integrated_pcs;
|
||||
};
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user