i2c: designware-pci: Make bus number allocation robust
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Jun 2016 15:05:05 +0000 (18:05 +0300)
committerWolfram Sang <wsa@the-dreams.de>
Sun, 19 Jun 2016 17:34:16 +0000 (19:34 +0200)
commited1bf03470b8c666d6d0d81e8faa8cbb32a5656e
tree6e9a34448adb5a1fef3fc6341604611d3d70657a
parentf41021bba68371b7ff4bcb0fc764473de1782c14
i2c: designware-pci: Make bus number allocation robust

On some platforms, such as Intel Medfield, the I2C slave devices are enumerated
through SFI tables where bus numbering is expected to be defined in the OS.
Make the bus number allocation robust for such platforms.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-designware-core.h
drivers/i2c/busses/i2c-designware-pcidrv.c