We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8347f9 commit eb0c062Copy full SHA for eb0c062
drivers/gpu/host1x/context.c
@@ -58,6 +58,7 @@ int host1x_memory_context_list_init(struct host1x *host1x)
58
ctx->dev.parent = host1x->dev;
59
ctx->dev.release = host1x_memory_context_release;
60
61
+ ctx->dev.dma_parms = &ctx->dma_parms;
62
dma_set_max_seg_size(&ctx->dev, UINT_MAX);
63
64
err = device_add(&ctx->dev);
include/linux/host1x.h
@@ -466,6 +466,7 @@ struct host1x_memory_context {
466
refcount_t ref;
467
struct pid *owner;
468
469
+ struct device_dma_parameters dma_parms;
470
struct device dev;
471
u64 dma_mask;
472
u32 stream_id;
0 commit comments