Skip to content

Commit

Permalink
sky2: more receive shutdown
Browse files Browse the repository at this point in the history
Reset more parts of the receive path when device is take offline.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Stephen Hemminger authored and David S. Miller committed Jun 18, 2009
1 parent d104aca commit c0bad0f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion drivers/net/sky2.c
Original file line number Diff line number Diff line change
Expand Up @@ -1151,7 +1151,14 @@ static void sky2_rx_stop(struct sky2_port *sky2)

/* reset the Rx prefetch unit */
sky2_write32(hw, Y2_QADDR(rxq, PREF_UNIT_CTRL), PREF_UNIT_RST_SET);
mmiowb();

/* Reset the RAM Buffer receive queue */
sky2_write8(hw, RB_ADDR(rxq, RB_CTRL), RB_RST_SET);

/* Reset Rx MAC FIFO */
sky2_write8(hw, SK_REG(sky2->port, RX_GMF_CTRL_T), GMF_RST_SET);

sky2_read8(hw, B0_CTST);
}

/* Clean out receive buffer area, assumes receiver hardware stopped */
Expand Down

0 comments on commit c0bad0f

Please sign in to comment.