From: Bruce Allan Date: Fri, 16 Dec 2011 00:46:01 +0000 (+0000) Subject: e1000e: always set transmit descriptor control registers the same X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~364 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=b31ca916c9e1a1790e5ef692f0717f93081195c3;p=users%2Fjedix%2Flinux-maple.git e1000e: always set transmit descriptor control registers the same The hardware erratum workaround where the TXDCTL register must be the same setting for both queues should always be done. (cherry picked from commit 56032be77c7eab50e2020247ffa35ca61850503f) Signed-off-by: Bruce Allan Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher Signed-off-by: Joe Jin --- diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index ec1a9709fb34..07150e49eb2e 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c @@ -2805,9 +2805,9 @@ static void e1000_configure_tx(struct e1000_adapter *adapter) */ txdctl |= E1000_TXDCTL_DMA_BURST_ENABLE; ew32(TXDCTL(0), txdctl); - /* erratum work around: set txdctl the same for both queues */ - ew32(TXDCTL(1), txdctl); } + /* erratum work around: set txdctl the same for both queues */ + ew32(TXDCTL(1), er32(TXDCTL(0))); /* Program the Transmit Control Register */ tctl = er32(TCTL);