mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Jean-François Dagenais" <jeff.dagenais@gmail.com>
To: Evgeniy Polyakov <zbr@ioremap.net>
Cc: linux-kernel@vger.kernel.org, olivier@okprods.com
Subject: Re: [PATCH 1/2] w1: ds2408: make value read-back check a Kconfig option
Date: Tue, 12 Mar 2013 14:28:11 -0400	[thread overview]
Message-ID: <03063BB2-C4D2-4620-AD68-4E479A9595F3@gmail.com> (raw)
In-Reply-To: <20130312020909.GA8181@ioremap.net>


On 2013-03-11, at 10:09 PM, Evgeniy Polyakov wrote:

> Hi
> 
> On Thu, Mar 07, 2013 at 04:07:03PM -0500, Jean-Francois Dagenais (jeff.dagenais@gmail.com) wrote:
>> De-activating this reading back will effectively half the time required
>> for a write to the output register.
> 
> Are you sure you want this to be compile-time option and not module
> parameter?

My experience showed that having this kind of check was only useful for HW/SW
debug development phases, which usually require debug configs. Later in the
development process, when HW and SW are stable, we usually optimize for actual
production. Removing un-needed debug features and modules.

Assuming that, for historical reasons, implementing this new option as a module
parameter would imply initializing it to "true" (i.e. read-back check enabled),
then user-space or kernel invocation would have to override this to "false" in
order to benefit from the enhancement. I felt that this was an awkward burden to
propagate and maintain outside the kernel's config (.config). Especially since
usually, the debug and release configs are meant exactly for this kind of stuff.

Also, it's not so off from the "Protect DS2433 data with a CRC16" option nearby.

We could do the "best of both worlds" and have the Kconfig influence the init
value of a new module parameter which controls whether we read-back or not...

All that said, kernel style and good practices should win here over my own
experiences as the extra run-time "if" check is not an issue really an issue on
most platform.

Thoughts?
/jfd

  reply	other threads:[~2013-03-12 18:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <51238FBA.9050600@okprods.com>
2013-02-19 15:20 ` w1_ds2408 linux driver Jean-Francois Dagenais
2013-03-07 20:09 ` Jean-Francois Dagenais
2013-03-07 21:07   ` [PATCH 1/2] w1: ds2408: make value read-back check a Kconfig option Jean-Francois Dagenais
2013-03-07 21:07     ` [PATCH 2/2] w1: ds2408: use ARRAY_SIZE instead of hard-coded number Jean-Francois Dagenais
2013-03-12  2:09     ` [PATCH 1/2] w1: ds2408: make value read-back check a Kconfig option Evgeniy Polyakov
2013-03-12 18:28       ` Jean-François Dagenais [this message]
2013-03-15  0:15         ` Evgeniy Polyakov
2013-03-15 18:20           ` Jean-Francois Dagenais
2013-03-15 18:20             ` [PATCH 2/2] w1: ds2408: use ARRAY_SIZE instead of hard-coded number Jean-Francois Dagenais

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=03063BB2-C4D2-4620-AD68-4E479A9595F3@gmail.com \
    --to=jeff.dagenais@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=olivier@okprods.com \
    --cc=zbr@ioremap.net \
    /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

all inboxes | Powered by JetHome®