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
68e0f3a0
Commit
68e0f3a0
authored
Jan 28, 2004
by
Ralf Bächle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI: fix probing for some mips systems
parent
1e57188a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
drivers/pci/probe.c
drivers/pci/probe.c
+9
-0
No files found.
drivers/pci/probe.c
View file @
68e0f3a0
...
...
@@ -337,12 +337,19 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev * dev, int max
struct
pci_bus
*
child
;
int
is_cardbus
=
(
dev
->
hdr_type
==
PCI_HEADER_TYPE_CARDBUS
);
u32
buses
;
u16
bctl
;
pci_read_config_dword
(
dev
,
PCI_PRIMARY_BUS
,
&
buses
);
DBG
(
"Scanning behind PCI bridge %s, config %06x, pass %d
\n
"
,
pci_name
(
dev
),
buses
&
0xffffff
,
pass
);
/* Disable MasterAbortMode during probing to avoid reporting
of bus errors (in some architectures) */
pci_read_config_word
(
dev
,
PCI_BRIDGE_CONTROL
,
&
bctl
);
pci_write_config_word
(
dev
,
PCI_BRIDGE_CONTROL
,
bctl
&
~
PCI_BRIDGE_CTL_MASTER_ABORT
);
if
((
buses
&
0xffff00
)
&&
!
pcibios_assign_all_busses
()
&&
!
is_cardbus
)
{
unsigned
int
cmax
,
busnr
;
/*
...
...
@@ -406,6 +413,8 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev * dev, int max
pci_write_config_byte
(
dev
,
PCI_SUBORDINATE_BUS
,
max
);
}
pci_write_config_word
(
dev
,
PCI_BRIDGE_CONTROL
,
bctl
);
sprintf
(
child
->
name
,
(
is_cardbus
?
"PCI CardBus #%02x"
:
"PCI Bus #%02x"
),
child
->
number
);
return
max
;
...
...
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