|
@@ -911,6 +911,13 @@ static void bcm_sf2_sw_fixed_link_update(struct dsa_switch *ds, int port,
|
|
*/
|
|
*/
|
|
if (port == 7) {
|
|
if (port == 7) {
|
|
status->link = priv->port_sts[port].link;
|
|
status->link = priv->port_sts[port].link;
|
|
|
|
+ /* For MoCA interfaces, also force a link down notification
|
|
|
|
+ * since some version of the user-space daemon (mocad) use
|
|
|
|
+ * cmd->autoneg to force the link, which messes up the PHY
|
|
|
|
+ * state machine and make it go in PHY_FORCING state instead.
|
|
|
|
+ */
|
|
|
|
+ if (!status->link)
|
|
|
|
+ netif_carrier_off(ds->ports[port]);
|
|
status->duplex = 1;
|
|
status->duplex = 1;
|
|
} else {
|
|
} else {
|
|
status->link = 1;
|
|
status->link = 1;
|