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
b5f17afd
Commit
b5f17afd
authored
Dec 17, 2019
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
skip dmaengine_slave_config() on SVEC, it's not supported
parent
94b93f04
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
fa-dma.c
kernel/fa-dma.c
+11
-8
No files found.
kernel/fa-dma.c
View file @
b5f17afd
...
...
@@ -451,14 +451,17 @@ static int zfad_dma_start(struct zio_cset *cset)
goto
err
;
}
memset
(
&
sconfig
,
0
,
sizeof
(
sconfig
));
sconfig
.
direction
=
DMA_DEV_TO_MEM
;
if
(
fa
->
n_shots
==
1
)
sconfig
.
src_addr
=
zfad_dev_mem_offset
(
cset
);
sconfig
.
src_addr_width
=
8
;
/* 2 bytes for each channel (4) */
err
=
dmaengine_slave_config
(
dchan
,
&
sconfig
);
if
(
err
)
goto
err_config
;
if
(
fa
->
pdev
->
id_entry
->
driver_data
==
ADC_VER_SPEC
)
{
memset
(
&
sconfig
,
0
,
sizeof
(
sconfig
));
sconfig
.
direction
=
DMA_DEV_TO_MEM
;
if
(
fa
->
n_shots
==
1
)
sconfig
.
src_addr
=
zfad_dev_mem_offset
(
cset
);
sconfig
.
src_addr_width
=
8
;
/* 2 bytes for each channel (4) */
err
=
dmaengine_slave_config
(
dchan
,
&
sconfig
);
if
(
err
)
goto
err_config
;
}
for
(
i
=
0
;
i
<
fa
->
n_shots
;
++
i
)
{
err
=
zfad_dma_prep_slave_sg
(
dchan
,
cset
,
&
zfad_block
[
i
]);
if
(
err
)
...
...
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