diff options
| author | Daniel Vetter <[email protected]> | 2018-04-27 08:17:10 +0200 |
|---|---|---|
| committer | Daniel Vetter <[email protected]> | 2018-05-03 11:48:22 +0200 |
| commit | 95ed01ea97b3d76380a817bc41ceeefffa6a99f1 (patch) | |
| tree | 96ac4fcae66b5a543b3a0b578535400afae4d35e /include/linux | |
| parent | aee1a37d0f1a904a1443c327211f4bcd645681f1 (diff) | |
dma-fence: Make ->enable_signaling optional
Many drivers have a trivial implementation for ->enable_signaling.
Let's make it optional by assuming that signalling is already
available when the callback isn't present.
Signed-off-by: Daniel Vetter <[email protected]>
Cc: Sumit Semwal <[email protected]>
Cc: Gustavo Padovan <[email protected]>
Cc: [email protected]
Cc: [email protected]
Reviewed-by: Christian König <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/dma-fence.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/dma-fence.h b/include/linux/dma-fence.h index 111aefe1c956..c053d19e1e24 100644 --- a/include/linux/dma-fence.h +++ b/include/linux/dma-fence.h @@ -166,7 +166,8 @@ struct dma_fence_ops { * released when the fence is signalled (through e.g. the interrupt * handler). * - * This callback is mandatory. + * This callback is optional. If this callback is not present, then the + * driver must always have signaling enabled. */ bool (*enable_signaling)(struct dma_fence *fence); |