• Oliver O'Halloran's avatar
    i2c: fsi: Create busses for all ports · 095561f4
    Oliver O'Halloran authored
    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: default avatarOliver O'Halloran <oohall@gmail.com>
    Reviewed-by: default avatarEddie James <eajames@linux.ibm.com>
    Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
    095561f4
i2c-fsi.c 17.4 KB