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
1a982b3e
Commit
1a982b3e
authored
Jun 01, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: Recent firmware removes the compatible property on pci bridges.
parent
577f1d2a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
arch/ppc64/kernel/prom.c
arch/ppc64/kernel/prom.c
+14
-5
arch/ppc64/kernel/smp.c
arch/ppc64/kernel/smp.c
+1
-0
No files found.
arch/ppc64/kernel/prom.c
View file @
1a982b3e
...
...
@@ -878,7 +878,7 @@ prom_initialize_tce_table(void)
phandle
node
;
ihandle
phb_node
;
unsigned
long
offset
=
reloc_offset
();
char
compatible
[
64
],
path
[
64
],
type
[
64
];
char
compatible
[
64
],
path
[
64
],
type
[
64
]
,
model
[
64
]
;
unsigned
long
i
,
table
=
0
;
unsigned
long
base
,
vbase
,
align
;
unsigned
int
minalign
,
minsize
;
...
...
@@ -893,16 +893,25 @@ prom_initialize_tce_table(void)
for
(
node
=
0
;
prom_next_node
(
&
node
);
)
{
compatible
[
0
]
=
0
;
type
[
0
]
=
0
;
model
[
0
]
=
0
;
call_prom
(
RELOC
(
"getprop"
),
4
,
1
,
node
,
RELOC
(
"compatible"
),
compatible
,
sizeof
(
compatible
));
call_prom
(
RELOC
(
"getprop"
),
4
,
1
,
node
,
RELOC
(
"device_type"
),
type
,
sizeof
(
type
));
call_prom
(
RELOC
(
"getprop"
),
4
,
1
,
node
,
RELOC
(
"model"
),
model
,
sizeof
(
model
));
if
((
compatible
[
0
]
==
0
)
||
((
strstr
(
compatible
,
RELOC
(
"python"
))
==
NULL
)
&&
(
strstr
(
compatible
,
RELOC
(
"Speedwagon"
))
==
NULL
)))
{
continue
;
/* Keep the old logic in tack to avoid regression. */
if
(
compatible
[
0
]
!=
0
)
{
if
((
strstr
(
compatible
,
RELOC
(
"python"
))
==
NULL
)
&&
(
strstr
(
compatible
,
RELOC
(
"Speedwagon"
))
==
NULL
))
continue
;
}
else
if
(
model
[
0
]
!=
0
)
{
if
((
strstr
(
model
,
RELOC
(
"ython"
))
==
NULL
)
&&
(
strstr
(
model
,
RELOC
(
"peedwagon"
))
==
NULL
))
continue
;
}
if
((
type
[
0
]
==
0
)
||
(
strstr
(
type
,
RELOC
(
"pci"
))
==
NULL
))
{
continue
;
}
...
...
arch/ppc64/kernel/smp.c
View file @
1a982b3e
...
...
@@ -31,6 +31,7 @@
/* #include <linux/openpic.h> */
#include <linux/spinlock.h>
#include <linux/cache.h>
#include <linux/err.h>
#include <asm/ptrace.h>
#include <asm/atomic.h>
...
...
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