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
Kirill Smelkov
linux
Commits
3cfd0146
Commit
3cfd0146
authored
Aug 10, 2010
by
Mauro Carvalho Chehab
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
i7core_edac: Improve debug to seek for register/remove errors
Signed-off-by:
Mauro Carvalho Chehab
<
mchehab@redhat.com
>
parent
e9144601
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
drivers/edac/i7core_edac.c
drivers/edac/i7core_edac.c
+9
-2
No files found.
drivers/edac/i7core_edac.c
View file @
3cfd0146
...
@@ -1889,7 +1889,8 @@ static int i7core_register_mci(struct i7core_dev *i7core_dev,
...
@@ -1889,7 +1889,8 @@ static int i7core_register_mci(struct i7core_dev *i7core_dev,
if
(
unlikely
(
!
mci
))
if
(
unlikely
(
!
mci
))
return
-
ENOMEM
;
return
-
ENOMEM
;
debugf0
(
"MC: "
__FILE__
": %s(): mci = %p
\n
"
,
__func__
,
mci
);
debugf0
(
"MC: "
__FILE__
": %s(): mci = %p, dev = %p
\n
"
,
__func__
,
mci
,
&
i7core_dev
->
pdev
[
0
]
->
dev
);
/* record ptr to the generic device */
/* record ptr to the generic device */
mci
->
dev
=
&
i7core_dev
->
pdev
[
0
]
->
dev
;
mci
->
dev
=
&
i7core_dev
->
pdev
[
0
]
->
dev
;
...
@@ -2057,12 +2058,18 @@ static void __devexit i7core_remove(struct pci_dev *pdev)
...
@@ -2057,12 +2058,18 @@ static void __devexit i7core_remove(struct pci_dev *pdev)
list_for_each_entry_safe
(
i7core_dev
,
tmp
,
&
i7core_edac_list
,
list
)
{
list_for_each_entry_safe
(
i7core_dev
,
tmp
,
&
i7core_edac_list
,
list
)
{
mci
=
find_mci_by_dev
(
&
i7core_dev
->
pdev
[
0
]
->
dev
);
mci
=
find_mci_by_dev
(
&
i7core_dev
->
pdev
[
0
]
->
dev
);
if
(
unlikely
(
!
mci
||
!
mci
->
pvt_info
))
{
if
(
unlikely
(
!
mci
||
!
mci
->
pvt_info
))
{
debugf0
(
"MC: "
__FILE__
": %s(): dev = %p
\n
"
,
__func__
,
&
i7core_dev
->
pdev
[
0
]
->
dev
);
i7core_printk
(
KERN_ERR
,
i7core_printk
(
KERN_ERR
,
"Couldn't find mci hanler
\n
"
);
"Couldn't find mci hanler
\n
"
);
}
else
{
}
else
{
pvt
=
mci
->
pvt_info
;
pvt
=
mci
->
pvt_info
;
i7core_dev
=
pvt
->
i7core_dev
;
i7core_dev
=
pvt
->
i7core_dev
;
debugf0
(
"MC: "
__FILE__
": %s(): mci = %p, dev = %p
\n
"
,
__func__
,
mci
,
&
i7core_dev
->
pdev
[
0
]
->
dev
);
if
(
likely
(
pvt
->
i7core_pci
))
if
(
likely
(
pvt
->
i7core_pci
))
edac_pci_release_generic_ctl
(
pvt
->
i7core_pci
);
edac_pci_release_generic_ctl
(
pvt
->
i7core_pci
);
else
else
...
...
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