Re: [rtc-linux] Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Mike Frysinger
On Dec 4, 2007 11:41 AM, Alessandro Zummo <[EMAIL PROTECTED]> wrote: > it should be EINVAL. at least it is wat rtc-cmos does when the value > is invalid. in the example rtc test code (Documentation/rtc.txt), would it be useful to handle EINVAL ? if the freq isnt supported, just say "hardware

Re: [rtc-linux] Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Alessandro Zummo
On Tue, 4 Dec 2007 11:56:54 -0500 "Mike Frysinger" <[EMAIL PROTECTED]> wrote: > On Dec 4, 2007 11:49 AM, Alessandro Zummo <[EMAIL PROTECTED]> wrote: > > On Tue, 4 Dec 2007 11:47:56 -0500 > > "Mike Frysinger" <[EMAIL PROTECTED]> wrote: > > > the return of ENOTTY is to say "changing of freq isnt

Re: [rtc-linux] Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Mike Frysinger
On Dec 4, 2007 11:49 AM, Alessandro Zummo <[EMAIL PROTECTED]> wrote: > On Tue, 4 Dec 2007 11:47:56 -0500 > "Mike Frysinger" <[EMAIL PROTECTED]> wrote: > > the return of ENOTTY is to say "changing of freq isnt supported", not > > that the value is invalid. but i can get the same behavior by > >

Re: [rtc-linux] Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Alessandro Zummo
On Tue, 4 Dec 2007 11:47:56 -0500 "Mike Frysinger" <[EMAIL PROTECTED]> wrote: > > the return of ENOTTY is to say "changing of freq isnt supported", not > that the value is invalid. but i can get the same behavior by > deleting the function as the rtc-dev layer will take care of returning >

Re: [rtc-linux] Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Mike Frysinger
On Dec 4, 2007 11:41 AM, Alessandro Zummo <[EMAIL PROTECTED]> wrote: > On Tue, 4 Dec 2007 11:29:11 -0500 "Mike Frysinger" <[EMAIL PROTECTED]> wrote: > > On Dec 4, 2007 11:26 AM, Alessandro Zummo <[EMAIL PROTECTED]> wrote: > > > Bryan Wu <[EMAIL PROTECTED]> wrote: > > > > > > Hi, I fannly got some

Re: [rtc-linux] Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Alessandro Zummo
On Tue, 4 Dec 2007 11:29:11 -0500 "Mike Frysinger" <[EMAIL PROTECTED]> wrote: > > On Dec 4, 2007 11:26 AM, Alessandro Zummo <[EMAIL PROTECTED]> wrote: > > Bryan Wu <[EMAIL PROTECTED]> wrote: > > > > Hi, I fannly got some time to review the patches. Seems ok, the > > only question is... > > > >

Re: [rtc-linux] Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Mike Frysinger
On Dec 4, 2007 11:26 AM, Alessandro Zummo <[EMAIL PROTECTED]> wrote: > Bryan Wu <[EMAIL PROTECTED]> wrote: > > Hi, I fannly got some time to review the patches. Seems ok, the > only question is... > > > static int bfin_irq_set_freq(struct device *dev, int freq) > > { > > - struct bfin_rtc

Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Alessandro Zummo
On Fri, 23 Nov 2007 18:08:26 +0800 Bryan Wu <[EMAIL PROTECTED]> wrote: Hi, I fannly got some time to review the patches. Seems ok, the only question is... > static int bfin_irq_set_freq(struct device *dev, int freq) > { > - struct bfin_rtc *rtc = dev_get_drvdata(dev); > stampit(); >

Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Alessandro Zummo
On Fri, 23 Nov 2007 18:08:26 +0800 Bryan Wu [EMAIL PROTECTED] wrote: Hi, I fannly got some time to review the patches. Seems ok, the only question is... static int bfin_irq_set_freq(struct device *dev, int freq) { - struct bfin_rtc *rtc = dev_get_drvdata(dev); stampit(); -

Re: [rtc-linux] Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Mike Frysinger
On Dec 4, 2007 11:26 AM, Alessandro Zummo [EMAIL PROTECTED] wrote: Bryan Wu [EMAIL PROTECTED] wrote: Hi, I fannly got some time to review the patches. Seems ok, the only question is... static int bfin_irq_set_freq(struct device *dev, int freq) { - struct bfin_rtc *rtc =

Re: [rtc-linux] Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Alessandro Zummo
On Tue, 4 Dec 2007 11:29:11 -0500 Mike Frysinger [EMAIL PROTECTED] wrote: On Dec 4, 2007 11:26 AM, Alessandro Zummo [EMAIL PROTECTED] wrote: Bryan Wu [EMAIL PROTECTED] wrote: Hi, I fannly got some time to review the patches. Seems ok, the only question is... static int

Re: [rtc-linux] Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Mike Frysinger
On Dec 4, 2007 11:41 AM, Alessandro Zummo [EMAIL PROTECTED] wrote: On Tue, 4 Dec 2007 11:29:11 -0500 Mike Frysinger [EMAIL PROTECTED] wrote: On Dec 4, 2007 11:26 AM, Alessandro Zummo [EMAIL PROTECTED] wrote: Bryan Wu [EMAIL PROTECTED] wrote: Hi, I fannly got some time to review the

Re: [rtc-linux] Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Alessandro Zummo
On Tue, 4 Dec 2007 11:47:56 -0500 Mike Frysinger [EMAIL PROTECTED] wrote: the return of ENOTTY is to say changing of freq isnt supported, not that the value is invalid. but i can get the same behavior by deleting the function as the rtc-dev layer will take care of returning ENOTTY. so

Re: [rtc-linux] Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Mike Frysinger
On Dec 4, 2007 11:49 AM, Alessandro Zummo [EMAIL PROTECTED] wrote: On Tue, 4 Dec 2007 11:47:56 -0500 Mike Frysinger [EMAIL PROTECTED] wrote: the return of ENOTTY is to say changing of freq isnt supported, not that the value is invalid. but i can get the same behavior by deleting the

Re: [rtc-linux] Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Alessandro Zummo
On Tue, 4 Dec 2007 11:56:54 -0500 Mike Frysinger [EMAIL PROTECTED] wrote: On Dec 4, 2007 11:49 AM, Alessandro Zummo [EMAIL PROTECTED] wrote: On Tue, 4 Dec 2007 11:47:56 -0500 Mike Frysinger [EMAIL PROTECTED] wrote: the return of ENOTTY is to say changing of freq isnt supported, not

Re: [rtc-linux] Re: [PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-12-04 Thread Mike Frysinger
On Dec 4, 2007 11:41 AM, Alessandro Zummo [EMAIL PROTECTED] wrote: it should be EINVAL. at least it is wat rtc-cmos does when the value is invalid. in the example rtc test code (Documentation/rtc.txt), would it be useful to handle EINVAL ? if the freq isnt supported, just say hardware does

[PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-11-23 Thread Bryan Wu
From: Mike Frysinger <[EMAIL PROTECTED]> Signed-off-by: Mike Frysinger <[EMAIL PROTECTED]> Signed-off-by: Bryan Wu <[EMAIL PROTECTED]> --- drivers/rtc/rtc-bfin.c | 24 +--- 1 files changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/rtc/rtc-bfin.c

[PATCH 1/7] Blackfin RTC driver: the frequency function is in units of Hz, not units of seconds, so lock our driver down to 1 Hz

2007-11-23 Thread Bryan Wu
From: Mike Frysinger [EMAIL PROTECTED] Signed-off-by: Mike Frysinger [EMAIL PROTECTED] Signed-off-by: Bryan Wu [EMAIL PROTECTED] --- drivers/rtc/rtc-bfin.c | 24 +--- 1 files changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/rtc/rtc-bfin.c