mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
mfd: sec: Set DMA coherent mask
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>
This commit is contained in:
parent
e491ebea15
commit
9e667b8ebd
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user