Re: [PATCH v2] rtc: Add NXP PCF8523 support

2012-11-28 Thread Thierry Reding
On Wed, Nov 28, 2012 at 03:31:58PM -0800, Andrew Morton wrote: > On Wed, 28 Nov 2012 20:21:26 +0100 > Thierry Reding wrote: > > > + err = i2c_transfer(client->adapter, &msg, 1); > > + if (err < 0) { > > + /* > > +* If the time cannot be set, restart the RTC anyway. Note

Re: [PATCH v2] rtc: Add NXP PCF8523 support

2012-11-28 Thread Andrew Morton
On Wed, 28 Nov 2012 20:21:26 +0100 Thierry Reding wrote: > + err = i2c_transfer(client->adapter, &msg, 1); > + if (err < 0) { > + /* > + * If the time cannot be set, restart the RTC anyway. Note > + * that errors are ignored if the RTC cannot be start

[PATCH v2] rtc: Add NXP PCF8523 support

2012-11-28 Thread Thierry Reding
This commit adds an RTC driver for PCF8523 chips by NXP Semiconductors. No support is currently provided for the alarm and interrupt functions. Only the time and date functionality is implemented. Signed-off-by: Thierry Reding --- Changes in v2: - return an error if the OS flag cannot be cleared