OSDN Git Service

i2c: Export of_i2c_get_board_info()
authorBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 25 Mar 2018 12:49:03 +0000 (14:49 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 22 May 2018 11:42:16 +0000 (13:42 +0200)
commitda0086d018223529c686ef46db039533572418d8
treef4c06cbe7be590bbd50ac3c7013ad77b51aa68e5
parent04782265641839fcead0383e23e3a799f55085e3
i2c: Export of_i2c_get_board_info()

I3C busses have to know about all I2C devices connected on the I3C bus
to properly initialize the I3C master, and I2C frames can't be sent on
the bus until this initialization is done.

We can't let the I2C core parse the DT and instantiate I2C devices as
part of its i2c_add_adapter() procedure because, when done this way,
I2C devices are directly registered to the device-model and might be
attached to drivers which could in turn start sending frames on the bus,
which won't work since, as said above, the bus is not yet initialized.

Export of_i2c_register_device() in order to let the I3C core parse the
I2C device nodes by itself and initialize the bus.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/i2c-core-of.c
include/linux/i2c.h