Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple PCIe FMC carrier SPEC
Commits
aa3e7026
Commit
aa3e7026
authored
Jun 27, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: print more errors
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
c4a3a471
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
6 deletions
+21
-6
spec-core.c
software/kernel/spec-core.c
+21
-6
No files found.
software/kernel/spec-core.c
View file @
aa3e7026
...
...
@@ -262,8 +262,12 @@ static int spec_probe(struct pci_dev *pdev,
pci_set_drvdata
(
pdev
,
spec
);
err
=
pci_enable_device
(
pdev
);
if
(
err
)
if
(
err
)
{
dev_err
(
spec
->
dev
.
parent
,
"Failed to enable PCI device (%d)
\n
"
,
err
);
goto
err_enable
;
}
pci_set_master
(
pdev
);
...
...
@@ -280,8 +284,11 @@ static int spec_probe(struct pci_dev *pdev,
err
=
-
ENOMEM
;
}
}
if
(
err
)
if
(
err
)
{
dev_err
(
spec
->
dev
.
parent
,
"Failed to remap memory (%d)
\n
"
,
err
);
goto
err_remap
;
}
spec
->
dev
.
parent
=
&
pdev
->
dev
;
spec
->
dev
.
type
=
&
spec_dev_type
;
...
...
@@ -290,8 +297,11 @@ static int spec_probe(struct pci_dev *pdev,
goto
err_name
;
err
=
device_register
(
&
spec
->
dev
);
if
(
err
)
if
(
err
)
{
dev_err
(
spec
->
dev
.
parent
,
"Failed to register '%s'
\n
"
,
dev_name
(
&
spec
->
dev
));
goto
err_dev
;
}
/* This virtual device is assciated with this driver */
spec
->
dev
.
driver
=
pdev
->
dev
.
driver
;
...
...
@@ -299,17 +309,22 @@ static int spec_probe(struct pci_dev *pdev,
spec_mfd_devs
,
ARRAY_SIZE
(
spec_mfd_devs
),
&
pdev
->
resource
[
4
],
pdev
->
irq
,
NULL
);
if
(
err
)
if
(
err
)
{
dev_err
(
&
spec
->
dev
,
"Failed to add MFD devices (%d)
\n
"
,
err
);
goto
err_mfd
;
}
err
=
spec_gpio_init
(
spec
);
if
(
err
)
if
(
err
)
{
dev_err
(
&
spec
->
dev
,
"Failed to get GPIOs (%d)
\n
"
,
err
);
goto
err_sgpio
;
}
mutex_lock
(
&
spec
->
mtx
);
err
=
spec_fpga_init
(
spec
);
if
(
err
)
dev_warn
(
&
spec
->
dev
,
"FPGA incorrectly programmed or empty
\n
"
);
dev_warn
(
&
spec
->
dev
,
"FPGA incorrectly programmed or empty (%d)
\n
"
,
err
);
mutex_unlock
(
&
spec
->
mtx
);
spec_dbg_init
(
spec
);
...
...
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