[i2c] [PATCH 8/12] drivers: PMC MSP71xx TWI driver
Marc St-Jean
Marc_St-Jean at pmc-sierra.com
Thu Jun 28 02:59:05 CEST 2007
Marc St-Jean wrote:
>
> I have a question related to this, after converting to a platform driver
> our chips driver will no longer attempts to find it's devices. The bus
> driver first loads successfully. When the chip driver loads, it's
> attach_adapter function calls i2c_probe which returns no error. However
> i2c_probe never calls the detect function pointer that's passed to it!
>
> There is no debugging output with all flags on. I've been looking at
> other bus and chip drivers but see nothing obvious. I'm also working
> through the list archive, too bad it's not searchable.
>
> Anyone have an idea if anything new is required once the bus driver
> is a platform driver?
> Must a custom addr_data structure be passed in to i2c_probe?
> Must the .id field of the chip driver be specified?
Found the issue. Jean you had asked to drop the 'probe' workaround
but that won't work as it appears the i2c core probes with 0 length
reads. Without the work around we return errors and it doesn't
proceed to calling the chip drivers detect function.
Marc
More information about the i2c
mailing list