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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Alessandro Zummo <alessandro.zummo@...>
Cc: <rtc-linux@...>, Bryan Wu <bryan.wu@...>, <linux-kernel@...>, <uclinux-dist-devel@...>, Mike Frysinger <michael.frysinger@...>
Date: Tuesday, December 4, 2007 - 12:47 pm

On Dec 4, 2007 11:41 AM, Alessandro Zummo <alessandro.zummo@towertech.it> 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 the behavior is for the RTC_IRQP_SET ioctl:
 - return ENOTTY if you cannot change freq
   - the rtc-dev layer will do this for you if you do not set irq_set_freq
 - return EINVAL if the requested freq is not within the capabilities
of the hardware

sound about right ?
-mike
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/7] Blackfin On-Chip RTC driver updates, Bryan Wu, (Fri Nov 23, 6:08 am)
Re: [rtc-linux] Re: [PATCH 1/7] Blackfin RTC driver: the fre..., Mike Frysinger, (Tue Dec 4, 12:47 pm)