]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: of: Populate fwnode in of_i2c_get_board_info()
authorSaravana Kannan <saravanak@google.com>
Fri, 15 Nov 2019 04:50:48 +0000 (20:50 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Nov 2019 15:36:37 +0000 (16:36 +0100)
commit672d1f855b35febeedb463236e0b24cdd1e7c799
tree44c43068194b9ed8dd656253bce84e146f4b2c5e
parent7c47716c48a32756d3ebe5626fb5cd7762dffff3
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 <saravanak@google.com>
Acked-by: Wolfram Sang <wsa@the-dreams.de>
Link: https://lore.kernel.org/r/20191115045049.261104-1-saravanak@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/i2c-core-of.c