Revert "net: ftgmac100: Ensure tx descriptor updates are visible"
This reverts commit f48cec25ee
.
This commit is contained in:
parent
41c096fbd1
commit
d4c68e1fc4
1 changed files with 8 additions and 18 deletions
|
@ -653,11 +653,6 @@ static bool ftgmac100_tx_complete_packet(struct ftgmac100 *priv)
|
||||||
ftgmac100_free_tx_packet(priv, pointer, skb, txdes, ctl_stat);
|
ftgmac100_free_tx_packet(priv, pointer, skb, txdes, ctl_stat);
|
||||||
txdes->txdes0 = cpu_to_le32(ctl_stat & priv->txdes0_edotr_mask);
|
txdes->txdes0 = cpu_to_le32(ctl_stat & priv->txdes0_edotr_mask);
|
||||||
|
|
||||||
/* Ensure the descriptor config is visible before setting the tx
|
|
||||||
* pointer.
|
|
||||||
*/
|
|
||||||
smp_wmb();
|
|
||||||
|
|
||||||
priv->tx_clean_pointer = ftgmac100_next_tx_pointer(priv, pointer);
|
priv->tx_clean_pointer = ftgmac100_next_tx_pointer(priv, pointer);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -811,11 +806,6 @@ static netdev_tx_t ftgmac100_hard_start_xmit(struct sk_buff *skb,
|
||||||
dma_wmb();
|
dma_wmb();
|
||||||
first->txdes0 = cpu_to_le32(f_ctl_stat);
|
first->txdes0 = cpu_to_le32(f_ctl_stat);
|
||||||
|
|
||||||
/* Ensure the descriptor config is visible before setting the tx
|
|
||||||
* pointer.
|
|
||||||
*/
|
|
||||||
smp_wmb();
|
|
||||||
|
|
||||||
/* Update next TX pointer */
|
/* Update next TX pointer */
|
||||||
priv->tx_pointer = pointer;
|
priv->tx_pointer = pointer;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue