Skip to content

Commit 4f9ac18

Browse files
ElectronFluxcfriedt
authored andcommitted
drivers: dma: dma_sam0: change sam0 DMA to higher priority init.
fixes peripheral drivers such as async uart that rely on dma being ready failing because dma is not initialized yet. Signed-off-by: Ron Smith <[email protected]>
1 parent 0d53844 commit 4f9ac18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/dma/dma_sam0.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,5 +458,5 @@ static const struct dma_driver_api dma_sam0_api = {
458458
};
459459

460460
DEVICE_DT_INST_DEFINE(0, &dma_sam0_init, NULL,
461-
&dmac_data, NULL, POST_KERNEL,
462-
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &dma_sam0_api);
461+
&dmac_data, NULL, PRE_KERNEL_1,
462+
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &dma_sam0_api);

0 commit comments

Comments
 (0)