add mini_fo
[openwrt.git] / target / linux / generic-2.6 / patches / 208-rtl8110sb_fix.patch
1 diff -Nur linux-2.6.17/drivers/net/r8169.c linux-2.6.17-owrt/drivers/net/r8169.c
2 --- linux-2.6.17/drivers/net/r8169.c    2006-06-18 03:49:35.000000000 +0200
3 +++ linux-2.6.17-owrt/drivers/net/r8169.c       2006-10-27 13:18:46.000000000 +0200
4 @@ -483,7 +483,7 @@
5  #endif
6  
7  static const u16 rtl8169_intr_mask =
8 -       SYSErr | LinkChg | RxOverflow | RxFIFOOver | TxErr | TxOK | RxErr | RxOK;
9 +       LinkChg | RxOverflow | RxFIFOOver | TxErr | TxOK | RxErr | RxOK;
10  static const u16 rtl8169_napi_event =
11         RxOK | RxOverflow | RxFIFOOver | TxOK | TxErr;
12  static const unsigned int rtl8169_rx_config =
13 @@ -1832,8 +1832,8 @@
14          */
15         RTL_W16(IntrMitigate, 0x0000);
16  
17 -       RTL_W32(TxDescStartAddrLow, ((u64) tp->TxPhyAddr & DMA_32BIT_MASK));
18         RTL_W32(TxDescStartAddrHigh, ((u64) tp->TxPhyAddr >> 32));
19 +       RTL_W32(TxDescStartAddrLow, ((u64) tp->TxPhyAddr & DMA_32BIT_MASK));
20         RTL_W32(RxDescAddrLow, ((u64) tp->RxPhyAddr & DMA_32BIT_MASK));
21         RTL_W32(RxDescAddrHigh, ((u64) tp->RxPhyAddr >> 32));
22         RTL_W8(Cfg9346, Cfg9346_Lock);
23 @@ -2535,10 +2535,12 @@
24                 if (!(status & rtl8169_intr_mask))
25                         break;
26  
27 +#if 0
28                 if (unlikely(status & SYSErr)) {
29                         rtl8169_pcierr_interrupt(dev);
30                         break;
31                 }
32 +#endif
33  
34                 if (status & LinkChg)
35                         rtl8169_check_link_status(dev, tp, ioaddr);