diff options
author | Wolfram Sang <wsa@kernel.org> | 2023-04-24 13:50:20 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2023-04-24 13:50:20 +0300 |
commit | 38c87827ffd3c7e1dd61eee9a7dea13d487dc2ed (patch) | |
tree | e6bd1c3ae56823874a736c1512409c123c9a4219 /drivers/i2c/i2c-core-of.c | |
parent | 9496fffcb28f39e0352779a0199b6e61861c9221 (diff) | |
parent | d663d93bb47e7ab45602b227701022d8aa16040a (diff) | |
download | linux-38c87827ffd3c7e1dd61eee9a7dea13d487dc2ed.tar.xz |
Merge branch 'i2c/for-current' into i2c/for-mergewindow
This should have been in 6.3, but sadly I missed it.
Diffstat (limited to 'drivers/i2c/i2c-core-of.c')
-rw-r--r-- | drivers/i2c/i2c-core-of.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/i2c/i2c-core-of.c b/drivers/i2c/i2c-core-of.c index aa93467784c2..5c1376386897 100644 --- a/drivers/i2c/i2c-core-of.c +++ b/drivers/i2c/i2c-core-of.c @@ -178,6 +178,11 @@ static int of_i2c_notify(struct notifier_block *nb, unsigned long action, return NOTIFY_OK; } + /* + * Clear the flag before adding the device so that fw_devlink + * doesn't skip adding consumers to this device. + */ + rd->dn->fwnode.flags &= ~FWNODE_FLAG_NOT_DEVICE; client = of_i2c_register_device(adap, rd->dn); if (IS_ERR(client)) { dev_err(&adap->dev, "failed to create client for '%pOF'\n", |