Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
FMC DEL 1ns 4cha - Software
Commits
23aded34
Commit
23aded34
authored
Jan 24, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel/fd-core.c: use new fmc_reprogram() function
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
e8f31478
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
fd-core.c
kernel/fd-core.c
+3
-15
No files found.
kernel/fd-core.c
View file @
23aded34
...
...
@@ -161,8 +161,8 @@ int fd_probe(struct fmc_device *fmc)
fwname
=
FDELAY_GATEWARE_NAME
;
if
(
fd_drv
.
gw_n
)
fwname
=
""
;
/*
->
reprogram will pick from module parameter */
ret
=
fmc
->
op
->
reprogram
(
fmc
,
&
fd_drv
,
fwname
);
fwname
=
""
;
/* reprogram will pick from module parameter */
ret
=
fmc
_reprogram
(
fmc
,
&
fd_drv
,
fwname
,
0
/* SDB entry point */
);
if
(
ret
<
0
)
{
if
(
ret
==
-
ESRCH
)
{
dev_info
(
dev
,
"%s: no gateware at index %i
\n
"
,
...
...
@@ -171,20 +171,9 @@ int fd_probe(struct fmc_device *fmc)
}
return
ret
;
/* other error: pass over */
}
/* All our FPGA images are expected to have SDB at offset 0 */
if
(
fmc_readl
(
fmc
,
0
)
!=
0x5344422d
)
{
dev_err
(
dev
,
"Can't find SDB magic (got 0x%x)
\n
"
,
fmc_readl
(
fmc
,
0
));
ret
=
-
ENODEV
;
goto
out
;
}
dev_info
(
dev
,
"Gateware successfully loaded
\n
"
);
if
(
(
ret
=
fmc_scan_sdb_tree
(
fmc
,
0
))
<
0
)
{
dev_err
(
dev
,
"scan fmc failed %i
\n
"
,
ret
);
goto
out
;
}
/* FIXME: this is obsoleted by fmc-bus internal parameters */
if
(
fd_show_sdb
)
fmc_show_sdb_tree
(
fmc
);
...
...
@@ -256,7 +245,6 @@ err:
while
(
--
m
,
--
i
>=
0
)
if
(
m
->
exit
)
m
->
exit
(
fd
);
out:
return
ret
;
}
...
...
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