Re: [PATCH] i2c: new driver for ds1337 RTC

2005-04-07 Thread Ladislav Michl
Jean, I'll comment your mail first and then send separate patches (somehow I can't sleep this night :)) On Thu, Apr 07, 2005 at 11:29:08PM +0200, Jean Delvare wrote: > > * Move NULL argument checking from get/set date functions to > > ds1337_command function, so it is only at one place. Note th

Re: [PATCH] i2c: new driver for ds1337 RTC

2005-04-07 Thread Jean Delvare
Hi Ladislav, > Here is yet another patch this time fixes only. > CHANGELOG: > * use i2_tranfer function instead of adapter->algo->master_xfer, so > we have proper bus locking. You are absolutely right. My mistake, I should have noticed when first reviewing the code, as calling master_xfer direc

Re: [PATCH] i2c: new driver for ds1337 RTC

2005-04-07 Thread Greg KH
On Thu, Apr 07, 2005 at 04:28:04PM +0200, Ladislav Michl wrote: > Here is yet another patch this time fixes only. > CHANGELOG: > * use i2_tranfer function instead of adapter->algo->master_xfer, so > we have proper bus locking. > * BCD2BIN and BIN2BCD are proper macros to use here, see linux/bcd.h

Re: [PATCH] i2c: new driver for ds1337 RTC

2005-04-07 Thread Ladislav Michl
Dear Jean, On Thu, Apr 07, 2005 at 03:07:40PM +0200, Jean Delvare wrote: > > I have objection ;-) Nothing in kernel seems to use that driver (...) > > How would you know? It has a user-space interface > (ds1337_driver.command), which anyone might be using. I asked how is this driver supposed to

Re: [PATCH] i2c: new driver for ds1337 RTC

2005-04-07 Thread Jean Delvare
Hi Ladislav, > > Please slice this into separarte patches. Adding support for the DS1339 > > is one thing, bug fixes are another. I can't review patches which do > > that many different things at once. > > I have objection ;-) Nothing in kernel seems to use that driver (...) How would you know?

Re: [PATCH] i2c: new driver for ds1337 RTC

2005-04-07 Thread Ladislav Michl
On Thu, Apr 07, 2005 at 11:59:05AM +0200, Jean Delvare wrote: > Please slice this into separarte patches. Adding support for the DS1339 > is one thing, bug fixes are another. I can't review patches which do > that many different things at once. I have objection ;-) Nothing in kernel seems to use t

Re: [PATCH] i2c: new driver for ds1337 RTC

2005-04-07 Thread Jean Delvare
Hi Ladislav, > I know it is bad time to send any patches, but lets try anyway :) > > My embedded device is using DS1339 I2C RTC clock which differs from > DS1337 only in one register at address 10h which enables battery charge. > Originaly I was using my own driver, but decided to extend existing

Re: [PATCH] i2c: new driver for ds1337 RTC

2005-04-07 Thread Ladislav Michl
On Thu, Mar 31, 2005 at 03:23:11PM -0800, Greg KH wrote: > ChangeSet 1.2331, 2005/03/31 14:08:02-08:00, [EMAIL PROTECTED] > > [PATCH] i2c: new driver for ds1337 RTC Hi, I know it is bad time to send any patches, but lets try anyway :) My embedded device is using DS1339 I2C RTC clock which diffe