From: "Bruno Prémont" <bonbons@linux-vserver.org>
To: "Rick L. Vinyard Jr." <rvinyard@cs.nmsu.edu>
Cc: linux-kernel@vger.kernel.org, npavel@ituner.com,
tomi.valkeinen@nokia.com, tony@atomide.com,
FlorianSchandinat@gmx.de, krzysztof.h1@wp.pl,
akpm@linux-foundation.org, linux-fbdev@vger.kernel.org,
jkosina@suse.cz
Subject: Re: [PATCH] Add sysfs support for fbdefio delay
Date: Thu, 25 Feb 2010 22:32:50 +0000 [thread overview]
Message-ID: <20100225233250.241e7d6d@neptune.home> (raw)
In-Reply-To: <201002252215.o1PMFnoP011425@mustang.cs.nmsu.edu>
On Thu, 25 February 2010 "Rick L. Vinyard Jr." <rvinyard@cs.nmsu.edu> wrote:
> This patch adds support for examining and modifying the fbdefio delay
> parameter through sysfs. It also adds two driver definable minimum
> and maximum bounds.
>
> The default behavior is to not permit modifications if delay_max is 0,
> thus preventing modification of the delay if the driver does not
> explicitly permit modification.
>
...
> @@ -503,6 +584,12 @@ static struct device_attribute device_attrs[] = {
> #ifdef CONFIG_FB_BACKLIGHT
> __ATTR(bl_curve, S_IRUGO|S_IWUSR, show_bl_curve, store_bl_curve),
> #endif
> +#ifdef CONFIG_FB_DEFERRED_IO
> + __ATTR(defio_delay, S_IRUGO|S_IWUSR,
> + show_defio_delay, store_defio_delay),
> + __ATTR(defio_delay_min, S_IRUGO, show_defio_delay_min, NULL),
> + __ATTR(defio_delay_max, S_IRUGO, show_defio_delay_max, NULL),
> +#endif
> };
>
> int fb_init_device(struct fb_info *fb_info)
Would it be reasonable to add these attributes in
fb_deferred_io_init() and remove them in fb_deferred_io_cleanup()?
This would also make it possible to add write permission to delay
attribute only when it effectively can be modified.
IMHO having only attributes pertinent to the features supported by the
framebuffer is better than having all the possible ones and those of
unsupported features returning -ENODEV.
Bruno
next prev parent reply other threads:[~2010-02-25 22:32 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-25 22:15 [PATCH] Add sysfs support for fbdefio delay Rick L. Vinyard Jr.
2010-02-25 22:32 ` Bruno Prémont [this message]
2010-02-25 22:41 ` Rick L. Vinyard, Jr.
2010-02-26 2:30 ` Jaya Kumar
2010-02-26 10:53 ` Bruno Prémont
2010-02-26 11:09 ` Jaya Kumar
2010-02-26 11:37 ` Bruno Prémont
2010-03-01 16:10 ` Rick L. Vinyard, Jr.
2010-03-02 6:49 ` Jaya Kumar
2010-03-02 15:36 ` Rick L. Vinyard, Jr.
2010-03-03 0:11 ` Jaya Kumar
2010-04-13 15:50 ` Rick L. Vinyard, Jr.
2010-03-02 18:47 ` Rick L. Vinyard Jr.
2010-03-03 0:19 ` Andrew Morton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100225233250.241e7d6d@neptune.home \
--to=bonbons@linux-vserver.org \
--cc=FlorianSchandinat@gmx.de \
--cc=akpm@linux-foundation.org \
--cc=jkosina@suse.cz \
--cc=krzysztof.h1@wp.pl \
--cc=linux-fbdev@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=npavel@ituner.com \
--cc=rvinyard@cs.nmsu.edu \
--cc=tomi.valkeinen@nokia.com \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).