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
48a395b2
Commit
48a395b2
authored
Nov 24, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: remove useless REPROGRAMMED bit
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
aae86210
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
14 deletions
+0
-14
svec-core-fpga.c
software/kernel/svec-core-fpga.c
+0
-1
svec-core.c
software/kernel/svec-core.c
+0
-12
svec.h
software/kernel/svec.h
+0
-1
No files found.
software/kernel/svec-core-fpga.c
View file @
48a395b2
...
...
@@ -970,7 +970,6 @@ int svec_fpga_exit(struct svec_dev *svec_dev)
return
0
;
/* this function must run before re-flashing */
BUG_ON
(
svec_dev
->
flags
&
SVEC_DEV_FLAGS_REPROGRAMMED
);
svec_fpga_app_exit
(
svec_fpga
);
svec_fmc_exit
(
svec_fpga
);
svec_fpga_devices_exit
(
svec_fpga
);
...
...
software/kernel/svec-core.c
View file @
48a395b2
...
...
@@ -95,10 +95,6 @@ static ssize_t svec_dbg_fw_write(struct file *file,
if
(
err
)
return
-
EFAULT
;
spin_lock
(
&
svec_dev
->
lock
);
svec_dev
->
flags
|=
SVEC_DEV_FLAGS_REPROGRAMMED
;
spin_unlock
(
&
svec_dev
->
lock
);
err
=
svec_fw_load
(
svec_dev
,
buf_l
);
if
(
err
)
dev_err
(
&
svec_dev
->
dev
,
...
...
@@ -638,14 +634,6 @@ static int svec_remove(struct device *dev, unsigned int ndev)
fpga_mgr_unregister
(
svec
->
mgr
);
fpga_mgr_free
(
svec
->
mgr
);
svec_vme_exit
(
svec
);
if
((
svec
->
flags
&
SVEC_DEV_FLAGS_REPROGRAMMED
)
==
0
)
{
/*
* If FPGA is REPROGRAMMED then there is
* no device to disable
*/
vme_disable_device
(
to_vme_dev
(
svec
->
dev
.
parent
));
}
device_unregister
(
&
svec
->
dev
);
kfree
(
svec
);
...
...
software/kernel/svec.h
View file @
48a395b2
...
...
@@ -106,7 +106,6 @@ static inline struct svec_fpga *to_svec_fpga(struct device *_dev)
}
#define SVEC_DEV_FLAGS_REPROGRAMMED BIT(0)
/**
* struct svec_dev - SVEC instance
* It describes a SVEC device instance.
...
...
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