cxgb4: depend on firmware event for link status
authorGanesh Goudar <ganeshgr@chelsio.com>
Fri, 23 Mar 2018 11:33:10 +0000 (17:03 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Mar 2018 01:08:14 +0000 (21:08 -0400)
Depend on the firmware sending us link status changes,
rather than assuming that the link goes down upon L1
configuration.

Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c

index 38e38dcfff91e25c927112918666ea96d9e3bbfe..b862477f00a72dcbdec7f7aa2c420a0855bbc751 100644 (file)
@@ -4066,8 +4066,6 @@ int t4_link_l1cfg(struct adapter *adapter, unsigned int mbox,
        unsigned int fw_mdi = FW_PORT_CAP32_MDI_V(FW_PORT_CAP32_MDI_AUTO);
        fw_port_cap32_t fw_fc, cc_fec, fw_fec, rcap;
 
-       lc->link_ok = 0;
-
        /* Convert driver coding of Pause Frame Flow Control settings into the
         * Firmware's API.
         */