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
919ca181
Commit
919ca181
authored
Jun 21, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: use use complete spec_fw_load() on firmware change
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
5056e81c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
spec-core.c
software/kernel/spec-core.c
+1
-1
spec-dbg.c
software/kernel/spec-dbg.c
+1
-1
spec.h
software/kernel/spec.h
+2
-0
No files found.
software/kernel/spec-core.c
View file @
919ca181
...
@@ -115,7 +115,7 @@ static const char *spec_fw_name_init_get(struct spec_dev *spec)
...
@@ -115,7 +115,7 @@ static const char *spec_fw_name_init_get(struct spec_dev *spec)
*
*
* Return: 0 on success, otherwise a negative error number
* Return: 0 on success, otherwise a negative error number
*/
*/
static
int
spec_fw_load
(
struct
spec_dev
*
spec
,
const
char
*
name
)
int
spec_fw_load
(
struct
spec_dev
*
spec
,
const
char
*
name
)
{
{
int
err
;
int
err
;
...
...
software/kernel/spec-dbg.c
View file @
919ca181
...
@@ -51,7 +51,7 @@ static ssize_t spec_dbg_fw_write(struct file *file,
...
@@ -51,7 +51,7 @@ static ssize_t spec_dbg_fw_write(struct file *file,
struct
spec_dev
*
spec
=
file
->
private_data
;
struct
spec_dev
*
spec
=
file
->
private_data
;
int
err
;
int
err
;
err
=
compat_
spec_fw_load
(
spec
,
buf
);
err
=
spec_fw_load
(
spec
,
buf
);
if
(
err
)
if
(
err
)
return
err
;
return
err
;
return
count
;
return
count
;
...
...
software/kernel/spec.h
View file @
919ca181
...
@@ -178,6 +178,8 @@ static inline void gennum_mask_val(struct spec_dev *spec,
...
@@ -178,6 +178,8 @@ static inline void gennum_mask_val(struct spec_dev *spec,
gennum_writel
(
spec
,
v
,
reg
);
gennum_writel
(
spec
,
v
,
reg
);
}
}
extern
int
spec_fw_load
(
struct
spec_dev
*
spec
,
const
char
*
name
);
extern
int
spec_irq_init
(
struct
spec_dev
*
spec
);
extern
int
spec_irq_init
(
struct
spec_dev
*
spec
);
extern
void
spec_irq_exit
(
struct
spec_dev
*
spec
);
extern
void
spec_irq_exit
(
struct
spec_dev
*
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