summaryrefslogtreecommitdiff
path: root/packages/linux/linux-titan-sh4/titan-pcibios-scan-update.patch
diff options
context:
space:
mode:
authorKristoffer Ericson <kristoffer_e1@hotmail.com>2006-07-31 15:36:05 +0000
committerKristoffer Ericson <kristoffer_e1@hotmail.com>2006-07-31 15:36:05 +0000
commitcc67256da139ba348bfc5e98138da3d7e84c7f48 (patch)
treea88692987440c7a78c27dfc5ff1aa3cf01223da1 /packages/linux/linux-titan-sh4/titan-pcibios-scan-update.patch
parent5e5b590002af02b51b7e39ddb3a18357ce1954c6 (diff)
parent09436056f94e7103d436177bdaea7c3bd9493913 (diff)
merge of 158d7fcc3d3ef86d360c775f912e5e314992018d
and bbd3a2811e13a3b99224c1a846af2a244d292c41
Diffstat (limited to 'packages/linux/linux-titan-sh4/titan-pcibios-scan-update.patch')
-rw-r--r--packages/linux/linux-titan-sh4/titan-pcibios-scan-update.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/packages/linux/linux-titan-sh4/titan-pcibios-scan-update.patch b/packages/linux/linux-titan-sh4/titan-pcibios-scan-update.patch
new file mode 100644
index 0000000000..9324ba4cc2
--- /dev/null
+++ b/packages/linux/linux-titan-sh4/titan-pcibios-scan-update.patch
@@ -0,0 +1,22 @@
+--- linux-2.6.17/include/asm-sh/pci.h.orig 2006-07-27 10:17:30.000000000 +1000
++++ linux-2.6.17/include/asm-sh/pci.h 2006-07-27 10:21:53.000000000 +1000
+@@ -143,6 +143,19 @@
+ /* generic pci stuff */
+ #include <asm-generic/pci.h>
+
++#ifdef CONFIG_SH_TITAN
++/*
++ * With the updated BIOS the RTL8139D is function 1 while the
++ * mini-pci card is function 0 of the RTL8139D. This is a feature
++ * which enables more pci bus-master inputs than are available by
++ * using a bus-master sharing feature of the RTL8139D. Without this
++ * patch the RTL8139D isn't detected when no mini-pci card is
++ * inserted.
++ */
++#undef pcibios_scan_all_fns
++#define pcibios_scan_all_fns(a, b) ((b)?0:1)
++#endif
++
+ /* generic DMA-mapping stuff */
+ #include <asm-generic/pci-dma-compat.h>
+