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
f7f92deb
Commit
f7f92deb
authored
Jun 30, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: remove useless code
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
59adb80d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
test_dma.py
pytest/test_dma.py
+2
-2
spec-core-fpga.c
software/kernel/spec-core-fpga.c
+0
-6
No files found.
pytest/test_dma.py
View file @
f7f92deb
...
...
@@ -26,8 +26,8 @@ class TestDma(object):
def
test_dma_no_buffer
(
self
,
spec
):
"""
The
DMA engine should not return an error on a 0 length DMA
transfer. Instead, it returns 0 byte transfered
.
The
read/write will return immediatelly if asked to perform
0-length transfer
.
"""
spec
.
dma_start
()
data
=
spec
.
dma_read
(
0
,
0
)
...
...
software/kernel/spec-core-fpga.c
View file @
f7f92deb
...
...
@@ -230,9 +230,6 @@ static ssize_t spec_fpga_dbg_dma_read(struct file *file, char __user *buf,
struct
spec_fpga_dbg_dma
*
dbgdma
=
file
->
private_data
;
int
err
;
if
(
count
==
0
)
return
0
;
if
(
*
ppos
>=
SPEC_DDR_SIZE
)
return
-
EINVAL
;
...
...
@@ -261,9 +258,6 @@ static ssize_t spec_fpga_dbg_dma_write(struct file *file,
struct
spec_fpga_dbg_dma
*
dbgdma
=
file
->
private_data
;
int
err
;
if
(
count
==
0
)
return
0
;
if
(
*
ppos
>=
SPEC_DDR_SIZE
)
return
-
EINVAL
;
...
...
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