Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple VME FMC Carrier SVEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
14
Issues
14
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 VME FMC Carrier SVEC
Commits
6d8377ab
Commit
6d8377ab
authored
Oct 12, 2017
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel: don't wait for done if already failed
Signed-off-by:
Federico Vaga
<
federico.vaga@vaga.pv.it
>
parent
e922da65
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
svec-core.c
kernel/svec-core.c
+6
-3
No files found.
kernel/svec-core.c
View file @
6d8377ab
...
...
@@ -290,6 +290,11 @@ static int svec_fpga_write_stop(struct svec_dev *svec)
1
);
if
(
svec
->
prog_err
==
-
EINVAL
)
svec
->
prog_err
=
0
;
}
else
{
dev_err
(
&
svec
->
dev
,
"Failed to program the application FPGA (%d).
\n
"
,
svec
->
prog_err
);
goto
out
;
}
/* Reset the bitstream programming words */
...
...
@@ -314,11 +319,9 @@ static int svec_fpga_write_stop(struct svec_dev *svec)
dev_err
(
&
svec
->
dev
,
"Bitstream loaded, status ERROR
\n
"
);
return
-
EINVAL
;
}
out:
/* give the VME bus control to App FPGA */
iowrite32be
(
XLDR_CSR_EXIT
,
loader_addr
+
XLDR_REG_CSR
);
if
(
svec
->
prog_err
)
dev_err
(
&
svec
->
dev
,
"FPGA programming failed (%d)
\n
"
,
svec
->
prog_err
);
/* give the VME core a little while to settle up */
msleep
(
10
);
...
...
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