public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] tweak driver documentation for rtc periodic
@ 2007-11-07  9:17 Mike Frysinger
  2007-11-09  8:30 ` [rtc-linux] " Alessandro Zummo
  0 siblings, 1 reply; 2+ messages in thread
From: Mike Frysinger @ 2007-11-07  9:17 UTC (permalink / raw)
  To: rtc-linux, linux-kernel, Andrew Morton, Alessandro Zummo

The max_user_freq member is not really meant for RTC drivers to modify, so
update the rtc documentation so drivers writers know what is expected of them
when handling periodic events.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
diff --git a/Documentation/rtc.txt b/Documentation/rtc.txt
index c931d61..6153790 100644
--- a/Documentation/rtc.txt
+++ b/Documentation/rtc.txt
@@ -180,9 +180,10 @@ driver returns ENOIOCTLCMD.  Some common examples:
     *	RTC_IRQP_SET, RTC_IRQP_READ: the irq_set_freq function will be called
 	to set the frequency while the framework will handle the read for you
 	since the frequency is stored in the irq_freq member of the rtc_device
-	structure.  Also make sure you set the max_user_freq member in your
-	initialization routines so the framework can sanity check the user
-	input for you.
+	structure.  Your driver needs to initialize the irq_freq member during
+	init.  Make sure you check the requested frequency is in range of your
+	hardware in the irq_set_freq function.  If you cannot actually change
+	the frequency, just return -ENOTTY.
 
 If all else fails, check out the rtc-test.c driver!
 

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [rtc-linux] [patch] tweak driver documentation for rtc periodic
  2007-11-07  9:17 [patch] tweak driver documentation for rtc periodic Mike Frysinger
@ 2007-11-09  8:30 ` Alessandro Zummo
  0 siblings, 0 replies; 2+ messages in thread
From: Alessandro Zummo @ 2007-11-09  8:30 UTC (permalink / raw)
  To: rtc-linux; +Cc: vapier.adi, linux-kernel, Andrew Morton

On Wed, 7 Nov 2007 04:17:00 -0500
Mike Frysinger <vapier.adi@gmail.com> wrote:

> 
> The max_user_freq member is not really meant for RTC drivers to modify, so
> update the rtc documentation so drivers writers know what is expected of them
> when handling periodic events.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>


 Acked-by: Alessandro Zummo <a.zummo@towertech.it>

--

 Best regards,

 Alessandro Zummo,
  Tower Technologies - Torino, Italy

  http://www.towertech.it


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-09  8:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-07  9:17 [patch] tweak driver documentation for rtc periodic Mike Frysinger
2007-11-09  8:30 ` [rtc-linux] " Alessandro Zummo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox