@@ -685,11 +685,6 @@ struct net_device *fbnic_netdev_alloc(struct fbnic_dev *fbd)
netdev->min_mtu = IPV6_MIN_MTU;
netdev->max_mtu = FBNIC_MAX_JUMBO_FRAME_SIZE - ETH_HLEN;
- /* TBD: This is workaround for BMC as phylink doesn't have support
- * for leavling the link enabled if a BMC is present.
- */
- netdev->ethtool->wol_enabled = true;
-
fbn->fec = FBNIC_FEC_AUTO | FBNIC_FEC_RS;
fbn->link_mode = FBNIC_LINK_AUTO | FBNIC_LINK_50R2;
netif_carrier_off(netdev);
@@ -2526,7 +2526,7 @@ EXPORT_SYMBOL_GPL(phylink_rx_clk_stop_unblock);
/**
* phylink_suspend() - handle a network device suspend event
* @pl: a pointer to a &struct phylink returned from phylink_create()
- * @mac_wol: true if the MAC needs to receive packets for Wake-on-Lan
+ * @mac_link_up: true if the MAC needs to receive packets after suspend
*
* Handle a network device suspend event. There are several cases:
*
@@ -2536,12 +2536,15 @@ EXPORT_SYMBOL_GPL(phylink_rx_clk_stop_unblock);
* can also bring down the link between the MAC and PHY.
* - If Wake-on-Lan is active, but being handled by the MAC, the MAC
* still needs to receive packets, so we can not bring the link down.
+ * - If rolling_start is requested, and the MAC is shared with a BMC, the MAC
+ * still needs to receive packets, so we can not bring the link down.
*/
-void phylink_suspend(struct phylink *pl, bool mac_wol)
+void phylink_suspend(struct phylink *pl, bool mac_link_up)
{
ASSERT_RTNL();
- if (mac_wol && (!pl->netdev || pl->netdev->ethtool->wol_enabled)) {
+ if (mac_link_up && (!pl->netdev || pl->netdev->ethtool->wol_enabled ||
+ pl->config->rolling_start)) {
/* Wake-on-Lan enabled, MAC handling */
mutex_lock(&pl->state_mutex);