Skip to contentSkip to conversation

mfd: da9063: occupy second I2C address, too

PATCH Applied Wolfram Sang 2 participants 2 messages Oct 23, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 mfd: da9063: occupy second I2C address, too

The second address can be used as a shortcut to access register pages 2+3. The driver does not use this feature yet. The second address should still be marked as used, otherwise userspace could interfere with the driver.

---

Change since v2: add comment in the code as well

 drivers/mfd/da9063-i2c.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/mfd/da9063-i2c.c +3 -0
index 1ec9ab56442d..a803b7440f09 100644
@@ -469,6 +469,9 @@ static int da9063_i2c_probe(struct i2c_client *i2c)
 		}
 	}
 
+	/* Reserve our unused second address so userspace won't interfere */
+	devm_i2c_new_dummy_device(&i2c->dev, i2c->adapter, i2c->addr + 1);
+
 	return da9063_device_init(da9063, i2c->irq);
 }
 
Signature · 1 line
2.47.2
maintainer Applied
#1 lore raw

Re: (subset) [PATCH v3] mfd: da9063: occupy second I2C address, too

Quoted 6 lines · Wolfram Sang

The second address can be used as a shortcut to access register pages 2+3. The driver does not use this feature yet. The second address should still be marked as used, otherwise userspace could interfere with the driver.

Applied, thanks!

[1/1] mfd: da9063: occupy second I2C address, too

      commit: 3bf76786c95c52bd8cd065061126b3006a0177ed

--
Lee Jones [李琼斯]