[U-Boot] [PATCH v2 19/26] dm: i2c: Move slave details to child platdata

2015-01-19 Thread Simon Glass
At present we go through various contortions to store the I2C's chip address in its private data. This only exists when the chip is active so must be set up when it is probed. Until the device is probed we don't actually record what address it will appear on. However, now that we can support per-c

Re: [U-Boot] [PATCH v2 19/26] dm: i2c: Move slave details to child platdata

2015-01-23 Thread Masahiro Yamada
Hi Simon, On Mon, 19 Jan 2015 20:12:48 -0700 Simon Glass wrote: > if (offset_len > I2C_MAX_OFFSET_LEN) > return -EINVAL; > @@ -450,13 +448,26 @@ int i2c_post_bind(struct udevice *dev) > return dm_scan_fdt_node(dev, gd->fdt_blob, dev->of_offset, false); > } > > +int

Re: [U-Boot] [PATCH v2 19/26] dm: i2c: Move slave details to child platdata

2015-01-23 Thread Simon Glass
Hi Masahiro, On 23 January 2015 at 05:32, Masahiro Yamada wrote: > Hi Simon, > > > > On Mon, 19 Jan 2015 20:12:48 -0700 > Simon Glass wrote: > >> if (offset_len > I2C_MAX_OFFSET_LEN) >> return -EINVAL; >> @@ -450,13 +448,26 @@ int i2c_post_bind(struct udevice *dev) >> r