diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2006-10-27 12:32:10 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2006-10-27 12:32:10 +0000 |
commit | 93ab44d5d6c121fb5a971ff3684bc66f93f6c5fa (patch) | |
tree | d10866389a2c46c6114f9bd497681ef556edc662 /target/linux/generic-2.6/patches/208-rtl8110sb_fix.patch | |
parent | 2d2179f503930a0f04673205a97161f015cf42c9 (diff) | |
download | mtk-20170518-93ab44d5d6c121fb5a971ff3684bc66f93f6c5fa.zip mtk-20170518-93ab44d5d6c121fb5a971ff3684bc66f93f6c5fa.tar.gz mtk-20170518-93ab44d5d6c121fb5a971ff3684bc66f93f6c5fa.tar.bz2 |
add redboot parsing and rtl8169 fixes, enable r8169 and add the free ixp4xx ethernet driver - the later still needs fixes and testing for the gateway 7001
SVN-Revision: 5311
Diffstat (limited to 'target/linux/generic-2.6/patches/208-rtl8110sb_fix.patch')
-rw-r--r-- | target/linux/generic-2.6/patches/208-rtl8110sb_fix.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/target/linux/generic-2.6/patches/208-rtl8110sb_fix.patch b/target/linux/generic-2.6/patches/208-rtl8110sb_fix.patch new file mode 100644 index 0000000..5d48342 --- /dev/null +++ b/target/linux/generic-2.6/patches/208-rtl8110sb_fix.patch @@ -0,0 +1,35 @@ +diff -Nur linux-2.6.17/drivers/net/r8169.c linux-2.6.17-owrt/drivers/net/r8169.c +--- linux-2.6.17/drivers/net/r8169.c 2006-06-18 03:49:35.000000000 +0200 ++++ linux-2.6.17-owrt/drivers/net/r8169.c 2006-10-27 13:18:46.000000000 +0200 +@@ -483,7 +483,7 @@ + #endif + + static const u16 rtl8169_intr_mask = +- SYSErr | LinkChg | RxOverflow | RxFIFOOver | TxErr | TxOK | RxErr | RxOK; ++ LinkChg | RxOverflow | RxFIFOOver | TxErr | TxOK | RxErr | RxOK; + static const u16 rtl8169_napi_event = + RxOK | RxOverflow | RxFIFOOver | TxOK | TxErr; + static const unsigned int rtl8169_rx_config = +@@ -1832,8 +1832,8 @@ + */ + RTL_W16(IntrMitigate, 0x0000); + +- RTL_W32(TxDescStartAddrLow, ((u64) tp->TxPhyAddr & DMA_32BIT_MASK)); + RTL_W32(TxDescStartAddrHigh, ((u64) tp->TxPhyAddr >> 32)); ++ RTL_W32(TxDescStartAddrLow, ((u64) tp->TxPhyAddr & DMA_32BIT_MASK)); + RTL_W32(RxDescAddrLow, ((u64) tp->RxPhyAddr & DMA_32BIT_MASK)); + RTL_W32(RxDescAddrHigh, ((u64) tp->RxPhyAddr >> 32)); + RTL_W8(Cfg9346, Cfg9346_Lock); +@@ -2535,10 +2535,12 @@ + if (!(status & rtl8169_intr_mask)) + break; + ++#if 0 + if (unlikely(status & SYSErr)) { + rtl8169_pcierr_interrupt(dev); + break; + } ++#endif + + if (status & LinkChg) + rtl8169_check_link_status(dev, tp, ioaddr); |