diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2019-06-06 21:52:20 +1000 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2019-06-08 00:18:31 +0200 |
commit | 095561f476abb09c2495b1e0a45a5ebb50a33b27 (patch) | |
tree | 4ecf4227fb5f66a748b6639d8de22d33abd029d4 /drivers/i2c/i2c-stub.c | |
parent | 19b07cb4a187fe5d72519491fc2d11a3a7af1219 (diff) | |
download | linux-stable-095561f476abb09c2495b1e0a45a5ebb50a33b27.tar.gz linux-stable-095561f476abb09c2495b1e0a45a5ebb50a33b27.tar.bz2 linux-stable-095561f476abb09c2495b1e0a45a5ebb50a33b27.zip |
i2c: fsi: Create busses for all ports
Currently we only create an I2C bus for the ports listed in the
device-tree for that master. There's no real reason for this since
we can discover the number of ports the master supports by looking
at the port_max field of the status register.
This patch re-works the bus add logic so that we always create buses
for each port, unless the bus is marked as unavailable in the DT. This
is useful since it ensures that all the buses provided by the CFAM I2C
master are accessible to debug tools.
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Eddie James <eajames@linux.ibm.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/i2c-stub.c')
0 files changed, 0 insertions, 0 deletions