projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fsldma: Fix cookie issues
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
include
/
linux
/
dmaengine.h
diff --git
a/include/linux/dmaengine.h
b/include/linux/dmaengine.h
index 78784982b33e36906dd47afd404287cdccdbc0f9..4d8d619f28bcf36f70285897872e5975fc8d845a 100644
(file)
--- a/
include/linux/dmaengine.h
+++ b/
include/linux/dmaengine.h
@@
-31,6
+31,8
@@
* if dma_cookie_t is >0 it's a DMA request cookie, <0 it's an error code
*/
typedef s32 dma_cookie_t;
+#define DMA_MIN_COOKIE 1
+#define DMA_MAX_COOKIE INT_MAX
#define dma_submit_error(cookie) ((cookie) < 0 ? 1 : 0)