Commit 5e42d5cd authored by Tomasz Wlostowski's avatar Tomasz Wlostowski Committed by Alessandro Rubini

nic/device: clear tx descriptors at startup

parent 8c6a1af9
......@@ -162,6 +162,12 @@ static int __devinit wrn_probe(struct platform_device *pdev)
wrn->dev[i] = netdev;
}
for (i = 0; i < WRN_NR_TXDESC; i++) { /* Clear all tx descriptors */
struct wrn_txd *tx;
tx = wrn->txd + i;
writel(0, &tx->tx1);
}
/* Now, prepare RX descriptors */
for (i = 0; i < WRN_NR_RXDESC; i++) {
struct wrn_rxd *rx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment