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
bb8ffa8a
Commit
bb8ffa8a
authored
Jan 12, 2003
by
Linus Torvalds
Committed by
Kai Germaschewski
Jan 12, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always assign bus numbers for cardbus. Firmware often doesn't do it right.
parent
ace0c5cb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
drivers/pci/probe.c
drivers/pci/probe.c
+4
-8
No files found.
drivers/pci/probe.c
View file @
bb8ffa8a
...
@@ -262,7 +262,8 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev * dev, int max
...
@@ -262,7 +262,8 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev * dev, int max
pci_read_config_dword
(
dev
,
PCI_PRIMARY_BUS
,
&
buses
);
pci_read_config_dword
(
dev
,
PCI_PRIMARY_BUS
,
&
buses
);
DBG
(
"Scanning behind PCI bridge %s, config %06x, pass %d
\n
"
,
dev
->
slot_name
,
buses
&
0xffffff
,
pass
);
DBG
(
"Scanning behind PCI bridge %s, config %06x, pass %d
\n
"
,
dev
->
slot_name
,
buses
&
0xffffff
,
pass
);
if
((
buses
&
0xffff00
)
&&
!
pcibios_assign_all_busses
())
{
if
((
buses
&
0xffff00
)
&&
!
pcibios_assign_all_busses
()
&&
!
is_cardbus
)
{
unsigned
int
cmax
;
/*
/*
* Bus already configured by firmware, process it in the first
* Bus already configured by firmware, process it in the first
* pass and just note the configuration.
* pass and just note the configuration.
...
@@ -274,13 +275,8 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev * dev, int max
...
@@ -274,13 +275,8 @@ int __devinit pci_scan_bridge(struct pci_bus *bus, struct pci_dev * dev, int max
child
->
secondary
=
(
buses
>>
8
)
&
0xFF
;
child
->
secondary
=
(
buses
>>
8
)
&
0xFF
;
child
->
subordinate
=
(
buses
>>
16
)
&
0xFF
;
child
->
subordinate
=
(
buses
>>
16
)
&
0xFF
;
child
->
number
=
child
->
secondary
;
child
->
number
=
child
->
secondary
;
if
(
!
is_cardbus
)
{
cmax
=
pci_do_scan_bus
(
child
);
unsigned
int
cmax
=
pci_do_scan_bus
(
child
);
if
(
cmax
>
max
)
max
=
cmax
;
}
else
{
unsigned
int
cmax
=
child
->
subordinate
;
if
(
cmax
>
max
)
max
=
cmax
;
if
(
cmax
>
max
)
max
=
cmax
;
}
}
else
{
}
else
{
/*
/*
* We need to assign a number to this bus which we always
* We need to assign a number to this bus which we always
...
...
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