projects
/
platform
/
kernel
/
linux-amlogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
656066d
)
ge2d: reset alloc flag when free dma buffer [1/2]
author
Jian Cao
<jian.cao@amlogic.com>
Fri, 18 Jan 2019 07:33:52 +0000
(15:33 +0800)
committer
Luan Yuan
<luan.yuan@amlogic.com>
Wed, 13 Mar 2019 12:22:16 +0000
(20:22 +0800)
PD#SWPL-4354
Problem:
alloc flag is not correct when free dma buffer
Solution:
reset alloc flag when free dma buffer
Verify:
test pass on g12a-u200
Change-Id: I4aea27f38ebda72cfe77183423600c918b836d7c
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
drivers/amlogic/media/common/ge2d/ge2d_dmabuf.c
patch
|
blob
|
history
diff --git
a/drivers/amlogic/media/common/ge2d/ge2d_dmabuf.c
b/drivers/amlogic/media/common/ge2d/ge2d_dmabuf.c
index
e5d6b65
..
5225e72
100644
(file)
--- a/
drivers/amlogic/media/common/ge2d/ge2d_dmabuf.c
+++ b/
drivers/amlogic/media/common/ge2d/ge2d_dmabuf.c
@@
-416,6
+416,7
@@
int ge2d_dma_buffer_free(struct aml_dma_buffer *buffer, int index)
return (-EINVAL);
}
aml_dma_put(buf);
+ buffer->gd_buffer[index].alloc = 0;
return 0;
}