From: Masahiro Yamada Date: Wed, 10 Dec 2014 22:19:39 +0900 Subject: [U-Boot] [PATCH v5 05/11] dm: i2c: Add an I2C EEPROM simulator In-Reply-To: <1417793534-31642-6-git-send-email-sjg@chromium.org> References: <1417793534-31642-1-git-send-email-sjg@chromium.org> <1417793534-31642-6-git-send-email-sjg@chromium.org> Message-ID: <20141210221939.02F7.AA925319@jp.panasonic.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, Some minor comments. On Fri, 5 Dec 2014 08:32:08 -0700 Simon Glass wrote: > +int sandbox_i2c_probe_chip(struct udevice *bus, uint chip_addr, uint chip_flags) > +{ static ?? > + /* 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. Best Regards Masahiro Yamada