[U-Boot] [PATCH v5 05/11] dm: i2c: Add an I2C EEPROM simulator
Simon Glass
sjg at chromium.org
Wed Dec 10 19:00:50 CET 2014
Hi Masahiro,
On 10 December 2014 at 06:19, Masahiro Yamada <yamada.m at jp.panasonic.com> wrote:
> Hi Simon,
>
> Some minor comments.
>
>
> On Fri, 5 Dec 2014 08:32:08 -0700
> Simon Glass <sjg at chromium.org> wrote:
>
>> +int sandbox_i2c_probe_chip(struct udevice *bus, uint chip_addr, uint chip_flags)
>> +{
>
> static ??
Fixed.
>
>
>> + /* Always let probe succeed */
>> + printf("%s: Detected probe\n", __func__);
>> + return 0;
>> +}
>> +
>> +struct dm_i2c_ops sandbox_i2c_emul_ops = {
>> + .xfer = sandbox_i2c_eeprom_xfer,
>> + .probe_chip = sandbox_i2c_probe_chip,
>> +};
>
> Are you using .probe_chip ?
> (Or planning to use it in the future?)
>
> sandbox-i2c does not use a dedicated .probe_chip handler.
I'll drop it for now. As you say the xfer() function is suitable and
returns the correct value for a probe_chip.
Regards,
Simon
More information about the U-Boot
mailing list