Skip to content

Commit 60774d2

Browse files
Saravana Kannangregkh
authored andcommitted
i2c: of: Populate fwnode in of_i2c_get_board_info()
This allows the of_devlink feature to work across i2c devices too. This avoid unnecessary probe deferrals of i2c devices, defers consumers of i2c devices till the i2c devices probe, and allows i2c drivers to implement sync_state() callbacks. Signed-off-by: Saravana Kannan <[email protected]> Acked-by: Wolfram Sang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent abf5c67 commit 60774d2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/i2c/i2c-core-of.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ int of_i2c_get_board_info(struct device *dev, struct device_node *node,
5050

5151
info->addr = addr;
5252
info->of_node = node;
53+
info->fwnode = of_fwnode_handle(node);
5354

5455
if (of_property_read_bool(node, "host-notify"))
5556
info->flags |= I2C_CLIENT_HOST_NOTIFY;

0 commit comments

Comments
 (0)