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
288f551a
Commit
288f551a
authored
May 06, 2003
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] PCI Hotplug: fix up the ibm driver to work properly again.
parent
47ad4279
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
drivers/hotplug/ibmphp_core.c
drivers/hotplug/ibmphp_core.c
+7
-5
No files found.
drivers/hotplug/ibmphp_core.c
View file @
288f551a
...
...
@@ -846,22 +846,24 @@ static int ibm_configure_device (struct pci_func *func)
{
unsigned
char
bus
;
struct
pci_bus
*
child
;
int
rc
=
0
;
int
num
;
int
flag
=
0
;
/* this is to make sure we don't double scan the bus, for bridged devices primarily */
if
(
!
(
bus_structure_fixup
(
func
->
busno
)))
flag
=
1
;
if
(
func
->
dev
==
NULL
)
func
->
dev
=
pci_find_slot
(
func
->
busno
,
(
func
->
device
<<
3
)
|
(
func
->
function
&
0x7
));
func
->
dev
=
pci_find_slot
(
func
->
busno
,
PCI_DEVFN
(
func
->
device
,
func
->
function
));
if
(
func
->
dev
==
NULL
)
{
struct
pci_bus
*
bus
=
ibmphp_find_bus
(
func
->
busno
);
if
(
!
bus
)
return
0
;
func
->
dev
=
pci_scan_slot
(
bus
,
(
func
->
device
<<
3
)
+
(
func
->
function
&
0x7
));
num
=
pci_scan_slot
(
bus
,
PCI_DEVFN
(
func
->
device
,
func
->
function
));
if
(
num
)
pci_bus_add_devices
(
bus
);
func
->
dev
=
pci_find_slot
(
func
->
busno
,
PCI_DEVFN
(
func
->
device
,
func
->
function
));
if
(
func
->
dev
==
NULL
)
{
err
(
"ERROR... : pci_dev still NULL
\n
"
);
return
0
;
...
...
@@ -873,7 +875,7 @@ static int ibm_configure_device (struct pci_func *func)
pci_do_scan_bus
(
child
);
}
return
rc
;
return
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