Message ID | 20200424221758.15984-1-afd@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | dma-buf: heaps: Initialize during core instead of subsys | expand |
On Fri, Apr 24, 2020 at 3:18 PM Andrew F. Davis <afd@ti.com> wrote: > > Some clients of DMA-Heaps probe earlier than subsys_initcall(), this > can cause issues when these clients call dma_heap_add() before the > core DMA-Heaps framework has initialized. DMA-Heaps should initialize > during core startup to get ahead of all users. > > Signed-off-by: Andrew F. Davis <afd@ti.com> No objection from me right off. Acked-by: John Stultz <john.stultz@linaro.org> thanks -john
diff --git a/drivers/dma-buf/dma-heap.c b/drivers/dma-buf/dma-heap.c index afd22c9dbdcf..af6edfbeddfe 100644 --- a/drivers/dma-buf/dma-heap.c +++ b/drivers/dma-buf/dma-heap.c @@ -295,4 +295,4 @@ static int dma_heap_init(void) return 0; } -subsys_initcall(dma_heap_init); +core_initcall(dma_heap_init);
Some clients of DMA-Heaps probe earlier than subsys_initcall(), this can cause issues when these clients call dma_heap_add() before the core DMA-Heaps framework has initialized. DMA-Heaps should initialize during core startup to get ahead of all users. Signed-off-by: Andrew F. Davis <afd@ti.com> --- drivers/dma-buf/dma-heap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)