r8169: define the early size for 8111evl
authorHayes Wang <hayeswang@realtek.com>
Tue, 6 Sep 2011 08:55:15 +0000 (16:55 +0800)
committerFrancois Romieu <romieu@fr.zoreil.com>
Thu, 22 Sep 2011 09:32:10 +0000 (11:32 +0200)
For RTL8111EVL, the register of MaxTxPacketSize doesn't acctually
limit the tx size. It influnces the feature of early tx.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
drivers/net/ethernet/realtek/r8169.c

index 6eb9f4ea3bfd2c95af216a432a8995ed88defa4d..44b40ea1d44361ccdd5f6de0448c4eba9c5dba49 100644 (file)
@@ -311,6 +311,7 @@ enum rtl_registers {
        MaxTxPacketSize = 0xec, /* 8101/8168. Unit of 128 bytes. */
 
 #define TxPacketMax    (8064 >> 7)
+#define EarlySize      0x27
 
        FuncEvent       = 0xf0,
        FuncEventMask   = 0xf4,
@@ -4479,7 +4480,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);