Linux Input/HID development
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Grazvydas Ignotas <notasas@gmail.com>,
	"linux-input@vger.kernel.org" <linux-input@vger.kernel.org>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"lrg@slimlogic.co.uk" <lrg@slimlogic.co.uk>
Subject: Re: [PATCH] Input: ads7846: add regulator support
Date: Thu, 4 Feb 2010 18:59:22 +0000	[thread overview]
Message-ID: <583BCA92-EE63-48E7-B2EF-D0281E7F676C@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <20100204180807.GB10965@core.coreip.homeip.net> (sfid-20100204_180836_896233_FC3A8E05)

On 4 Feb 2010, at 18:08, Dmitry Torokhov <dmitry.torokhov@gmail.com>  
wrote:

> On Thu, Feb 04, 2010 at 04:21:55PM +0000, Mark Brown wrote:
>> On Thu, Feb 04, 2010 at 04:52:26PM +0200, Grazvydas Ignotas wrote:
>>> On Thu, Feb 4, 2010 at 4:24 PM, Mark Brown
>>
>>>> The updates to fix up the boards that need this are fairly
>>>> straightforward and given that it's fairly easy to identify systems
>>>> which are using the driver in mainline so I'd really prefer not  
>>>> to go
>>>> down the route of trying to carry on in the face of error, it  
>>>> papers
>>>> over stuff now but is not robust in the face of future changes.
>>
>>> What about warning and continuing only on ENODEV then? I really  
>>> don't
>>> want to be responsible for potentially breaking touchscreen on ~30
>>> boards, where I have no idea about how things are wired up and how  
>>> the
>>> regulators should be set up.
>>
>> I'm really not terribly enthusiastic about that approach - like I  
>> say,
>> it just moves the problem about a bit and postpones the breakage in a
>> potentially more obscure fashion.
>>
>
> Maybe we should rely on platform data to tell us whether we need to  
> plug
> into regulator framework and in this case fail hard on any error?

That doesn't really help - it requres per driver code for the platform  
data and for conditionalising all the regulator API calls, results in  
inconsistent behaviour between drivers (does this driver have a no  
regulator switch?) and is looking a bit like the situation where  
you're passing around the regulator name to match device and supply.  
It seems like more work overall for users. 
  

  reply	other threads:[~2010-02-04 18:59 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-04 13:39 [PATCH] Input: ads7846: add regulator support Grazvydas Ignotas
2010-02-04 14:24 ` Mark Brown
2010-02-04 14:52   ` Grazvydas Ignotas
2010-02-04 16:21     ` Mark Brown
2010-02-04 18:08       ` Dmitry Torokhov
2010-02-04 18:59         ` Mark Brown [this message]
2010-02-05 20:45       ` Mike Rapoport
2010-02-08 11:30         ` Mark Brown
2010-02-09  8:55           ` Mike Rapoport
2010-02-04 15:08   ` Mike Rapoport
2010-02-04 16:03     ` Mark Brown

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=583BCA92-EE63-48E7-B2EF-D0281E7F676C@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=lrg@slimlogic.co.uk \
    --cc=notasas@gmail.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