Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
73bf95f5
Commit
73bf95f5
authored
Jan 20, 2019
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/qcom' into for-linus
parents
55f53b9c
546c0547
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
drivers/dma/qcom/bam_dma.c
drivers/dma/qcom/bam_dma.c
+2
-2
drivers/dma/qcom/hidma.c
drivers/dma/qcom/hidma.c
+11
-8
drivers/dma/qcom/hidma_mgmt.c
drivers/dma/qcom/hidma_mgmt.c
+1
-2
No files found.
drivers/dma/qcom/bam_dma.c
View file @
73bf95f5
...
...
@@ -636,8 +636,8 @@ static struct dma_async_tx_descriptor *bam_prep_slave_sg(struct dma_chan *chan,
num_alloc
+=
DIV_ROUND_UP
(
sg_dma_len
(
sg
),
BAM_FIFO_SIZE
);
/* allocate enough room to accomodate the number of entries */
async_desc
=
kzalloc
(
s
izeof
(
*
async_desc
)
+
(
num_alloc
*
sizeof
(
struct
bam_desc_hw
)),
GFP_NOWAIT
);
async_desc
=
kzalloc
(
s
truct_size
(
async_desc
,
desc
,
num_alloc
),
GFP_NOWAIT
);
if
(
!
async_desc
)
goto
err_out
;
...
...
drivers/dma/qcom/hidma.c
View file @
73bf95f5
...
...
@@ -138,24 +138,25 @@ static void hidma_process_completed(struct hidma_chan *mchan)
desc
=
&
mdesc
->
desc
;
last_cookie
=
desc
->
cookie
;
llstat
=
hidma_ll_status
(
mdma
->
lldev
,
mdesc
->
tre_ch
);
spin_lock_irqsave
(
&
mchan
->
lock
,
irqflags
);
if
(
llstat
==
DMA_COMPLETE
)
{
mchan
->
last_success
=
last_cookie
;
result
.
result
=
DMA_TRANS_NOERROR
;
}
else
{
result
.
result
=
DMA_TRANS_ABORTED
;
}
dma_cookie_complete
(
desc
);
spin_unlock_irqrestore
(
&
mchan
->
lock
,
irqflags
);
llstat
=
hidma_ll_status
(
mdma
->
lldev
,
mdesc
->
tre_ch
);
dmaengine_desc_get_callback
(
desc
,
&
cb
);
dma_run_dependencies
(
desc
);
spin_lock_irqsave
(
&
mchan
->
lock
,
irqflags
);
list_move
(
&
mdesc
->
node
,
&
mchan
->
free
);
if
(
llstat
==
DMA_COMPLETE
)
{
mchan
->
last_success
=
last_cookie
;
result
.
result
=
DMA_TRANS_NOERROR
;
}
else
result
.
result
=
DMA_TRANS_ABORTED
;
spin_unlock_irqrestore
(
&
mchan
->
lock
,
irqflags
);
dmaengine_desc_callback_invoke
(
&
cb
,
&
result
);
...
...
@@ -415,6 +416,7 @@ hidma_prep_dma_memcpy(struct dma_chan *dmach, dma_addr_t dest, dma_addr_t src,
if
(
!
mdesc
)
return
NULL
;
mdesc
->
desc
.
flags
=
flags
;
hidma_ll_set_transfer_params
(
mdma
->
lldev
,
mdesc
->
tre_ch
,
src
,
dest
,
len
,
flags
,
HIDMA_TRE_MEMCPY
);
...
...
@@ -447,6 +449,7 @@ hidma_prep_dma_memset(struct dma_chan *dmach, dma_addr_t dest, int value,
if
(
!
mdesc
)
return
NULL
;
mdesc
->
desc
.
flags
=
flags
;
hidma_ll_set_transfer_params
(
mdma
->
lldev
,
mdesc
->
tre_ch
,
value
,
dest
,
len
,
flags
,
HIDMA_TRE_MEMSET
);
...
...
drivers/dma/qcom/hidma_mgmt.c
View file @
73bf95f5
...
...
@@ -423,9 +423,8 @@ static int __init hidma_mgmt_init(void)
hidma_mgmt_of_populate_channels
(
child
);
}
#endif
platform_driver_register
(
&
hidma_mgmt_driver
);
return
platform_driver_register
(
&
hidma_mgmt_driver
);
return
0
;
}
module_init
(
hidma_mgmt_init
);
MODULE_LICENSE
(
"GPL v2"
);
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