[PATCH] mfd: max77759: set zero DMA mask
From: André Draszik
Date: Mon Nov 23 2026 - 12:40:31 EST
During probe of the DT-backed MFD child devices,
platform_dma_configure() calls of_dma_configure() with force_dma=true.
Since the parent I2C client device leaves dma_mask as NULL, both
DT-backed children trigger warnings in the kernel log:
platform max77759-gpio.0.auto: DMA mask not set
platform max77759-nvmem.2.auto: DMA mask not set
MAX77759 and its child devices only communicate via I2C/regmap and do
not perform DMA themselves (any I2C DMA uses the host controller
device). Clear coherent_dma_mask and point dma_mask at it before
registering the MFD children, so mfd_add_device() propagates a non-NULL
zero DMA mask to all sub-devices.
Fixes: bb71e40db1b7 ("mfd: max77759: Add Maxim MAX77759 core driver")
Signed-off-by: André Draszik <andre.draszik@xxxxxxxxxx>
---
drivers/mfd/max77759.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mfd/max77759.c b/drivers/mfd/max77759.c
index 5818ee2811d1..e31af2c0d25a 100644
--- a/drivers/mfd/max77759.c
+++ b/drivers/mfd/max77759.c
@@ -693,6 +693,9 @@ static int max77759_probe(struct i2c_client *client)
"failed to add IRQ chip '%s'\n",
max77759_pmic_irq_chip.name);
+ client->dev.coherent_dma_mask = 0;
+ client->dev.dma_mask = &client->dev.coherent_dma_mask;
+
ret = max77759_add_chained_maxq(client, max77759, irq_chip_data_pmic);
if (ret)
return ret;
---
base-commit: 749a4de370409464cf8501ec5b2451df45c84eb4
change-id: 20261123-max77759-dma-mask-65417b861a53
Best regards,
--
André Draszik <andre.draszik@xxxxxxxxxx>