From: Hayes Wang Date: Tue, 6 Sep 2011 08:55:15 +0000 (+0800) Subject: r8169: define the early size for 8111evl X-Git-Tag: v2.6.39-400.9.0~423^2~19^2~11^2~51 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d1642089c74fcbcbb1fe026199e5160a05657a7a;p=users%2Fjedix%2Flinux-maple.git r8169: define the early size for 8111evl For RTL8111EVL, the register of MaxTxPacketSize doesn't acctually limit the tx size. It influnces the feature of early tx. (cherry picked from commit 3090bd9a3102331ed981280ef05ee5433ce978d7) Signed-off-by: Hayes Wang Signed-off-by: Joe Jin --- diff --git a/drivers/net/r8169.c b/drivers/net/r8169.c index dea381b39178..a0c2910f19c2 100644 --- a/drivers/net/r8169.c +++ b/drivers/net/r8169.c @@ -310,6 +310,7 @@ enum rtl_registers { MaxTxPacketSize = 0xec, /* 8101/8168. Unit of 128 bytes. */ #define TxPacketMax (8064 >> 7) +#define EarlySize 0x27 FuncEvent = 0xf0, FuncEventMask = 0xf4, @@ -4339,7 +4340,7 @@ static void rtl_hw_start_8168e_2(void __iomem *ioaddr, struct pci_dev *pdev) rtl_w1w0_eri(ioaddr, 0x0d4, ERIAR_MASK_0011, 0x0c00, 0xff00, ERIAR_EXGMAC); - RTL_W8(MaxTxPacketSize, 0x27); + RTL_W8(MaxTxPacketSize, EarlySize); rtl_disable_clock_request(pdev);