Skip to contentSkip to conversation

mfd: da9063: occupy second I2C address, too

PATCH Superseded Wolfram Sang 2 participants 2 messages Oct 7, 2025 – Oct 21, 2025

Subsystems (2)

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 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 v1: reworded commit message

 drivers/mfd/da9063-i2c.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mfd/da9063-i2c.c +2 -0
index 1ec9ab56442d..12f3dd927aba 100644
@@ -469,6 +469,8 @@ static int da9063_i2c_probe(struct i2c_client *i2c)
 		}
 	}
 
+	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
#1 lore raw
Quoted 4 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.

Perfect. Thanks for updating.

Quoted 16 lines

---

Change since v1: reworded commit message

 drivers/mfd/da9063-i2c.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/mfd/da9063-i2c.c +0 -0
index 1ec9ab56442d..12f3dd927aba 100644

drivers/mfd/da9063-i2c.c static int da9063_i2c_probe(struct i2c_client *i2c) · line 472

Quoted 4 lines
drivers/mfd/da9063-i2c.c +1 -0
@@ -469,6 +469,8 @@ static int da9063_i2c_probe(struct i2c_client *i2c)
 		}
 	}
 
+	devm_i2c_new_dummy_device(&i2c->dev, i2c->adapter, i2c->addr + 1);

I still think we need a simple comment to explain why we're obtaining and seemingly not using the address.

Signature · 1 line
Lee Jones [李琼斯]