Re: [PATCH v2] powerpc/pasemi: Remove hardcoded bus numbers on smbus

2017-01-24 Thread Michael Ellerman
Darren Stevens writes: > The pasemi smbus controller uses PCI_FUNC(dev->devfn) to define which > number bus to attach to, however this fails when something else is > probed first, for example an ATI Radeon graphics card will claim 9 or > 10 busses, including the ones the pasemi wants. > Patch the

[PATCH v2] powerpc/pasemi: Remove hardcoded bus numbers on smbus

2017-01-20 Thread Darren Stevens
The pasemi smbus controller uses PCI_FUNC(dev->devfn) to define which number bus to attach to, however this fails when something else is probed first, for example an ATI Radeon graphics card will claim 9 or 10 busses, including the ones the pasemi wants. Patch the driver to call i2c_add_adapter ra