mirror of https://gitee.com/openkylin/linux.git
sky2: turn off pause during shutdown
This unblocks the chip if it is stuck in pause cycle during shutdown. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
4bb3f52207
commit
d104acaf05
|
@ -1808,7 +1808,8 @@ static int sky2_down(struct net_device *dev)
|
|||
|
||||
synchronize_irq(hw->pdev->irq);
|
||||
|
||||
sky2_gmac_reset(hw, port);
|
||||
/* Force flow control off */
|
||||
sky2_write8(hw, SK_REG(port, GMAC_CTRL), GMC_PAUSE_OFF);
|
||||
|
||||
/* Stop transmitter */
|
||||
sky2_write32(hw, Q_ADDR(txqaddr[port], Q_CSR), BMU_STOP);
|
||||
|
|
Loading…
Reference in New Issue