[PATCH v2] i2c: Add support for DesignWare controllers

Sascha Hauer s.hauer at pengutronix.de
Wed Nov 18 23:59:17 PST 2015


On Wed, Nov 18, 2015 at 08:09:05PM -0800, Andrey Smirnov wrote:
> On Wed, Nov 18, 2015 at 5:26 PM, Trent Piepho <tpiepho at kymetacorp.com> wrote:
> > On Mon, 2015-11-09 at 07:20 +0100, Sascha Hauer wrote:
> >> On Sun, Nov 08, 2015 at 04:18:46PM -0800, Andrey Smirnov wrote:
> >> > Add a driver for DesignWare I2C controller IP block found on several
> >> > SoCs including Altera SoC products
> >> >
> >> > Tested using Terrasic SoCKit board and GPIO expander board with I2C
> >> > EEPROM on it
> >> >
> >> > Signed-off-by: Andrey Smirnov <andrew.smirnov at gmail.com>
> >
> >> > +   uint32_t ic_con, ic_comp_type_value;
> >> > +
> >> > +   pdata = pdev->platform_data;
> >> > +
> >> > +   dw = xzalloc(sizeof(*dw), GFP_KERNEL);
> >> > +
> >
> > Doesn't compile, xzalloc() has one argument, no page flags.
> 
> *Sigh* Looks like I didn't do a good job testing v2 patchset, my bad,
> sorry. I'll submit a patch to fix this, unless either of you guys
> already did so.

Just did that, everything fine now.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list