aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/brcm47xx/patches-2.6.32/610-pci_ide_fix.patch
diff options
context:
space:
mode:
authorAlexandros C. Couloumbis <alex@ozo.com>2010-04-16 15:05:32 +0000
committerAlexandros C. Couloumbis <alex@ozo.com>2010-04-16 15:05:32 +0000
commite712ef386e22ef601f8b924fbf8072c12fe378df (patch)
tree969d83641d0f0bc7fd21db0bb0d185fd9e61f8dd /target/linux/brcm47xx/patches-2.6.32/610-pci_ide_fix.patch
parent7e29eac7808bdec0a6a67d9c876f51aca348e319 (diff)
downloadupstream-e712ef386e22ef601f8b924fbf8072c12fe378df.tar.gz
upstream-e712ef386e22ef601f8b924fbf8072c12fe378df.tar.bz2
upstream-e712ef386e22ef601f8b924fbf8072c12fe378df.zip
brcm47xx: fix ide drive assignment (closes #7061)
SVN-Revision: 20924
Diffstat (limited to 'target/linux/brcm47xx/patches-2.6.32/610-pci_ide_fix.patch')
-rw-r--r--target/linux/brcm47xx/patches-2.6.32/610-pci_ide_fix.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/patches-2.6.32/610-pci_ide_fix.patch b/target/linux/brcm47xx/patches-2.6.32/610-pci_ide_fix.patch
new file mode 100644
index 0000000000..26ba3b7557
--- /dev/null
+++ b/target/linux/brcm47xx/patches-2.6.32/610-pci_ide_fix.patch
@@ -0,0 +1,14 @@
+--- a/include/linux/ide.h
++++ b/include/linux/ide.h
+@@ -195,7 +195,11 @@
+ hw->io_ports.ctl_addr = ctl_addr;
+ }
+
++#if defined CONFIG_BCM47XX
++# define MAX_HWIFS 2
++#else
+ #define MAX_HWIFS 10
++#endif
+
+ /*
+ * Now for the data we need to maintain per-drive: ide_drive_t