Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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 ADC 100M 14b 4cha - Software
Commits
7e483136
Commit
7e483136
authored
Sep 15, 2020
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drv: skip slave_config on SVEC
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
d6d564cf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
fa-dma.c
kernel/fa-dma.c
+12
-1
No files found.
kernel/fa-dma.c
View file @
7e483136
...
...
@@ -488,6 +488,17 @@ err_alloc_pages:
return
err
;
}
static
int
fa_dmaengine_slave_config
(
struct
fa_dev
*
fa
,
struct
dma_slave_config
*
sconfig
)
{
/*
* For SVEC we must set the DMA context, there is not slave config
*/
if
(
fa_is_flag_set
(
fa
,
FMC_ADC_SVEC
))
return
0
;
return
dmaengine_slave_config
(
fa
->
dchan
,
sconfig
);
}
/**
* It maps the ZIO blocks with an sg table, then it starts the DMA transfer
* from the ADC to the host memory.
...
...
@@ -536,7 +547,7 @@ static int zfad_dma_start(struct zio_cset *cset)
* because the address of shot 2 is exactly after shot 1
*/
sconfig
.
src_addr
=
fa_ddr_offset
(
fa
,
i
);
err
=
dmaengine_slave_config
(
fa
->
dchan
,
&
sconfig
);
err
=
fa_dmaengine_slave_config
(
fa
,
&
sconfig
);
if
(
err
)
goto
err_config
;
err
=
zfad_dma_prep_slave_sg
(
fa
->
dchan
,
cset
,
&
zfad_block
[
i
]);
...
...
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