Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
92ecef67
Commit
92ecef67
authored
Apr 28, 2002
by
Dave Jones
Committed by
Jaroslav Kysela
Apr 28, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] NCR53c810 PCI quirk
This device returns a wrong class code which we work around at boot up time.
parent
0f5325fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
arch/i386/kernel/pci-pc.c
arch/i386/kernel/pci-pc.c
+14
-1
No files found.
arch/i386/kernel/pci-pc.c
View file @
92ecef67
...
...
@@ -1132,11 +1132,23 @@ static void __devinit pci_fixup_umc_ide(struct pci_dev *d)
*/
int
i
;
printk
(
"PCI: Fixing base address flags for device %s
\n
"
,
d
->
slot_name
);
printk
(
KERN_WARNING
"PCI: Fixing base address flags for device %s
\n
"
,
d
->
slot_name
);
for
(
i
=
0
;
i
<
4
;
i
++
)
d
->
resource
[
i
].
flags
|=
PCI_BASE_ADDRESS_SPACE_IO
;
}
static
void
__devinit
pci_fixup_ncr53c810
(
struct
pci_dev
*
d
)
{
/*
* NCR 53C810 returns class code 0 (at least on some systems).
* Fix class to be PCI_CLASS_STORAGE_SCSI
*/
if
(
!
d
->
class
)
{
printk
(
"PCI: fixing NCR 53C810 class code for %s
\n
"
,
d
->
slot_name
);
d
->
class
=
PCI_CLASS_STORAGE_SCSI
<<
8
;
}
}
static
void
__devinit
pci_fixup_ide_bases
(
struct
pci_dev
*
d
)
{
int
i
;
...
...
@@ -1228,6 +1240,7 @@ struct pci_fixup pcibios_fixups[] = {
{
PCI_FIXUP_HEADER
,
PCI_VENDOR_ID_VIA
,
PCI_DEVICE_ID_VIA_8622
,
pci_fixup_via_northbridge_bug
},
{
PCI_FIXUP_HEADER
,
PCI_VENDOR_ID_VIA
,
PCI_DEVICE_ID_VIA_8361
,
pci_fixup_via_northbridge_bug
},
{
PCI_FIXUP_HEADER
,
PCI_VENDOR_ID_VIA
,
PCI_DEVICE_ID_VIA_8367_0
,
pci_fixup_via_northbridge_bug
},
{
PCI_FIXUP_HEADER
,
PCI_VENDOR_ID_NCR
,
PCI_DEVICE_ID_NCR_53C810
,
pci_fixup_ncr53c810
},
{
0
}
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment