diff options
| author | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-11 14:36:25 +0100 | 
|---|---|---|
| committer | David Woodhouse <David.Woodhouse@intel.com> | 2008-07-11 14:36:25 +0100 | 
| commit | a8931ef380c92d121ae74ecfb03b2d63f72eea6f (patch) | |
| tree | 980fb6b019e11e6cb1ece55b7faff184721a8053 /arch/alpha/kernel/pci.c | |
| parent | 90574d0a4d4b73308ae54a2a57a4f3f1fa98e984 (diff) | |
| parent | e5a5816f7875207cb0a0a7032e39a4686c5e10a4 (diff) | |
| download | olio-linux-3.10-a8931ef380c92d121ae74ecfb03b2d63f72eea6f.tar.xz olio-linux-3.10-a8931ef380c92d121ae74ecfb03b2d63f72eea6f.zip  | |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'arch/alpha/kernel/pci.c')
| -rw-r--r-- | arch/alpha/kernel/pci.c | 17 | 
1 files changed, 17 insertions, 0 deletions
diff --git a/arch/alpha/kernel/pci.c b/arch/alpha/kernel/pci.c index 36ab22a7ea1..5cf45fc5134 100644 --- a/arch/alpha/kernel/pci.c +++ b/arch/alpha/kernel/pci.c @@ -71,6 +71,23 @@ DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82378, quirk_i  static void __init  quirk_cypress(struct pci_dev *dev)  { +	/* The Notorious Cy82C693 chip.  */ + +	/* The generic legacy mode IDE fixup in drivers/pci/probe.c +	   doesn't work correctly with the Cypress IDE controller as +	   it has non-standard register layout.  Fix that.  */ +	if (dev->class >> 8 == PCI_CLASS_STORAGE_IDE) { +		dev->resource[2].start = dev->resource[3].start = 0; +		dev->resource[2].end = dev->resource[3].end = 0; +		dev->resource[2].flags = dev->resource[3].flags = 0; +		if (PCI_FUNC(dev->devfn) == 2) { +			dev->resource[0].start = 0x170; +			dev->resource[0].end = 0x177; +			dev->resource[1].start = 0x376; +			dev->resource[1].end = 0x376; +		} +	} +  	/* The Cypress bridge responds on the PCI bus in the address range  	   0xffff0000-0xffffffff (conventional x86 BIOS ROM).  There is no  	   way to turn this off.  The bridge also supports several extended  |