]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
mfd: sec: Set DMA coherent mask
authorKaustabh Chakraborty <kauschluss@disroot.org>
Fri, 15 May 2026 21:38:37 +0000 (03:08 +0530)
committerLee Jones <lee@kernel.org>
Wed, 17 Jun 2026 10:26:50 +0000 (11:26 +0100)
Kernel logs are filled with "DMA mask not set" messages for every
sub-device. The device does not use DMA for communication, so these
messages are useless. Disable the coherent DMA mask for the PMIC device,
which is also propagated to sub-devices.

Signed-off-by: Kaustabh Chakraborty <kauschluss@disroot.org>
Link: https://patch.msgid.link/20260516-s2mu005-pmic-v7-5-73f9702fb461@disroot.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/mfd/sec-common.c

index 22f6c74eb6c0e922cb9b922ebedcd8b37d16cdba..fe92bc4a3dd26f3900d3c7e6ee84c6f430ab5d68 100644 (file)
@@ -221,6 +221,9 @@ int sec_pmic_probe(struct device *dev, int device_type, unsigned int irq,
        if (IS_ERR(irq_data))
                return PTR_ERR(irq_data);
 
+       dev->coherent_dma_mask = 0;
+       dev->dma_mask = &dev->coherent_dma_mask;
+
        pm_runtime_set_active(sec_pmic->dev);
 
        switch (sec_pmic->device_type) {