From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Stefan Achatz <erazor_de@users.sourceforge.net>
Cc: Jiri Kosina <jkosina@suse.cz>,
Jussi Kivilinna <jussi.kivilinna@mbnet.fi>,
wylda@volny.cz, Pavel Machek <pavel@suse.cz>,
Alessandro Guido <ag@alessandroguido.name>,
Tomas Hanak <tomas.hanak@gmail.com>,
Jason Noble <nobleja@polezero.com>,
simon.windows@gmail.com,
Sean Hildebrand <silverwraithii@gmail.com>,
Sid Boyce <sboyce@blueyonder.co.uk>,
Henning Glawe <glaweh@debian.org>,
linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 4/4] Added locks for sysfs attributes and internal data.
Date: Sun, 14 Mar 2010 00:42:15 -0800 [thread overview]
Message-ID: <20100314084215.GA8226@core.coreip.homeip.net> (raw)
In-Reply-To: <201003131219.27482.erazor_de@users.sourceforge.net>
Hi Stefan,
On Sat, Mar 13, 2010 at 12:19:27PM +0100, Stefan Achatz wrote:
> Hello,
> I have some more questions regarding the work on my driver:
>
> 1. binary vs text sysfs attributes
> As I found little information about binary sysfs attributes I used the normal
> sysfs attributes to transfer binary data because they are also easier to use.
> The transfered data is far less than the 4096 bytes minimum page size.
> So, is there a significant difference in these two variants that should force
> me to use the binary variant?
>
I'd say in this case it just sets expectations for the interface -
normal sysfs attributes are supposed to pass data in human-readable
form, one value per attribute.
> 2. memory footprint
> I'm thinking about a redesign of my sysfs attributes to reduce io and simplify
> the use of binary sysfs attributes (if needed, see above). This would
> increase the memory footprint of hid_drvdata to around 5kbytes.
> Is it allowed for a driver to constantly alloc such an amount of data or
> should I stick with more complicated code and more io?
5K is not that much but why do you think binary attributes will require
such increase?
>
> 3. grow up of driver
> I see my work is not quite ready for kernel inclusion. Maybe I'm wrong in this
> list and should bug other people. Would the linuxdriverproject.org be a
> better place to raise my work to adulthood?
>
Rarely a driver is ready for inclusion right away ;) Normally that
happens after someone submitted a few of them to the same subsystem so
he knows maintainers perferences, etc. I'd say you are doing well as is
here, there is no sense to move away somewhere else at this point.
Thanks.
--
Dmitry
next prev parent reply other threads:[~2010-03-14 8:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-20 8:11 [PATCH] HID: add driver for Roccat Kone gaming mouse Stefan Achatz
2010-02-21 8:13 ` Dmitry Torokhov
2010-02-21 16:50 ` [PATCH 2/2] HID: documentation additions and elimination of legacy filenames for Roccat Kone driver Stefan Achatz
2010-02-22 6:29 ` Dmitry Torokhov
2010-02-22 10:01 ` Jiri Kosina
2010-02-22 18:42 ` [PATCH 3/3] Adding documentation to sysfs attributes of roccat kone driver Stefan Achatz
2010-02-22 23:10 ` Dmitry Torokhov
2010-02-23 8:03 ` Stefan Achatz
2010-02-26 7:44 ` Dmitry Torokhov
2010-03-08 16:04 ` [PATCH 4/4] Added locks for sysfs attributes and internal data Stefan Achatz
2010-03-09 0:05 ` Jiri Kosina
2010-03-09 7:41 ` Dmitry Torokhov
2010-03-13 11:19 ` Stefan Achatz
2010-03-14 8:42 ` Dmitry Torokhov [this message]
2010-03-15 13:51 ` Jiri Kosina
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=20100314084215.GA8226@core.coreip.homeip.net \
--to=dmitry.torokhov@gmail.com \
--cc=ag@alessandroguido.name \
--cc=erazor_de@users.sourceforge.net \
--cc=glaweh@debian.org \
--cc=jkosina@suse.cz \
--cc=jussi.kivilinna@mbnet.fi \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nobleja@polezero.com \
--cc=pavel@suse.cz \
--cc=sboyce@blueyonder.co.uk \
--cc=silverwraithii@gmail.com \
--cc=simon.windows@gmail.com \
--cc=tomas.hanak@gmail.com \
--cc=wylda@volny.cz \
/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
Powered by JetHome