]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
e1000e: 82574/82583 Tx hang workaround
authorBruce Allan <bruce.w.allan@intel.com>
Fri, 16 Dec 2011 00:46:22 +0000 (00:46 +0000)
committerJoe Jin <joe.jin@oracle.com>
Thu, 17 May 2012 07:05:00 +0000 (15:05 +0800)
On 82574/82583, there is a hardware bug which might cause a Tx hang when
the internal buffer is full.  Setting this bit enables a hardware fix to
work around the issue.

(cherry picked from commit d6cb17d5f8015717f6963d24d52b06292a4cb40a)
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/e1000e/82571.c

index 2d4dc53a4fb8567d10578e6cf4f559cb708094ec..e8d65a5f653a8f00d4490d02dfdbd200e912af08 100644 (file)
@@ -1227,6 +1227,10 @@ static void e1000_initialize_hw_bits_82571(struct e1000_hw *hw)
        case e1000_82572:
                reg |= (1 << 23) | (1 << 24) | (1 << 25) | (1 << 26);
                break;
+       case e1000_82574:
+       case e1000_82583:
+               reg |= (1 << 26);
+               break;
        default:
                break;
        }