linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: broonie@opensource.wolfsonmicro.com (Mark Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv2] Input: omap4-keypad: Add pinctrl support
Date: Tue, 30 Oct 2012 15:58:21 +0000	[thread overview]
Message-ID: <20121030155821.GU4511@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <20121030151642.GE29159@arwen.pp.htv.fi>

On Tue, Oct 30, 2012 at 05:16:42PM +0200, Felipe Balbi wrote:
> On Tue, Oct 30, 2012 at 02:07:15PM +0000, Mark Brown wrote:

> > > and all of that SoC-specific detail is already hidden behind power
> > > domains, runtime PM, pinctrl, clk API, regulator framework, etc.

> > That's all getting rather open coded, especially if you're going to get
> > down to a situation where you have varying ordering constraints between
> > the different APIs on different SoCs.

> however we need to consider those cases right ? Otherwise we will endup
> pushing something to mainline which will have to be reverted couple
> weeks later after a big rant from Linus ;-)

I'm not sure there's much risk of that either way; if anything it seems
like it ought to be cleaner to have the stuff owned by the SoCs.

> > > and this is one of the issues we're all trying to solve today so we have
> > > single zImage approach for the ARM port.

> > I don't see the relevance of single zImage here; device tree is supposed
> > to solve that one.

> DT is part of the deal. DT alone will solve nothing.

If DT isn't relevant I'm not sure what you're saying about single
zImage?  The only relevance I can see for that is the data and
configuration bloating the kernel, something that DT is supposed to
address - this is the main use case where DT has benefits.

> > Well, nothing's going to stop that happening if people are determined
> > enough - one could equally see that there'll be flags getting passed to
> > control the ordering of calls if things are open coded.  I would expect
> > that with a power domain style approach any data would be being passed
> > directly and bypassing the driver completely.

> situations like that would be a lot more rare in open coded case, don't
> you think ? Also a lot more local, since they will show up on a driver
> source code which is used in a small set of use cases, instead of being
> part of the pm domain implementation for the entire platform.

I don't see how open coding helps prevent people doing silly things, it
seems like it'd have at most neutral impact (and of course it does
require going round all the drivers every time someone comes up with a
new idea for doing things which is a bit tedious).

> > Essentially all the patches I'm seeing adding pinctrl are totally
> > mindless, most of them are just doing the initial setup on boot and not
> > doing any active management at runtime at all.

> have you considered that might be just a first step ? I have mentioned
> this before. We first add the bare minimum and work on PM optimizations
> later. You can be sure most likely those mindless patches you're seeing
> are probably building blocks for upcoming patches adding sleep/idle
> modes.

The sleep/idle modes are just a basic extension of the same idea, I'd
not anticipate much difference there (and indeed anything where pinmux
power saving makes a meaningful impact will I suspect need to be using
runtime PM to allow SoC wide power savings anyway).

> > A big part of my point here is that it's not at all clear to me that it
> > is the driver which knows what's going on.  For SoC-specific IPs you can
> > be confident about how the SoC integration looks but for IPs that get
> > reused widely this becomes less true.  

> I don't think so. As long as we keep the meaning of the 'default'
> pinctrl state to mean that this is the working state for the IP,
> underlying pinctrl-$arch implementation should know how to set muxing up
> properly, no ?

But then this comes round to the mindless code that ought to be factored
out :)  Only the more interesting cases that do something unusual really
register here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20121030/649eab57/attachment.sig>

  reply	other threads:[~2012-10-30 15:58 UTC|newest]

Thread overview: 69+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-22 13:13 [PATCHv2] Input: omap4-keypad: Add pinctrl support Sourav Poddar
2012-10-22 15:50 ` Dmitry Torokhov
2012-10-23  9:13   ` Linus Walleij
2012-10-23  9:35     ` Benoit Cousson
2012-10-23 10:04       ` Linus Walleij
2012-10-23 10:03         ` Felipe Balbi
2012-10-23 10:23           ` Thomas Petazzoni
2012-10-23 10:29             ` Linus Walleij
2012-10-23 10:29               ` Felipe Balbi
2012-10-23 10:45                 ` Linus Walleij
2012-10-23 10:42                   ` Felipe Balbi
2012-10-23 11:11                   ` Thomas Petazzoni
2012-10-23 17:02           ` Mitch Bradley
2012-10-23 17:20             ` Felipe Balbi
2012-10-23 17:51               ` Mitch Bradley
2012-10-23 17:51                 ` Felipe Balbi
2012-10-23  9:18   ` Benoit Cousson
2012-10-23 20:02     ` Dmitry Torokhov
2012-10-24  8:37       ` Felipe Balbi
2012-10-24 16:14         ` Dmitry Torokhov
2012-10-24 16:51           ` Linus Walleij
2012-10-24 17:28             ` Dmitry Torokhov
2012-10-24 18:58               ` Felipe Balbi
2012-10-25 20:59                 ` Mark Brown
2012-10-26  6:20                   ` Felipe Balbi
2012-10-26 16:03                     ` Mark Brown
2012-10-29 19:49                       ` Felipe Balbi
2012-10-30 11:24                         ` Mark Brown
2012-10-30 11:49                           ` Felipe Balbi
2012-10-30 14:07                             ` Mark Brown
2012-10-30 14:16                               ` Linus Walleij
2012-10-30 14:54                                 ` Mark Brown
2012-10-30 15:16                               ` Felipe Balbi
2012-10-30 15:58                                 ` Mark Brown [this message]
2012-10-30 17:25                                   ` Felipe Balbi
2012-10-30 18:20                                     ` Dmitry Torokhov
2012-10-30 18:48                                       ` Felipe Balbi
2012-10-30 18:37                                     ` Mark Brown
2012-10-30 21:51                                       ` Linus Walleij
2012-10-30 22:57                                         ` Rafael J. Wysocki
2012-11-02 18:26                                         ` Mark Brown
2012-10-30 14:11                             ` Linus Walleij
2012-10-28 20:12               ` Linus Walleij
2012-10-30 11:34                 ` Mark Brown
2012-10-30 14:02                   ` Linus Walleij
2012-10-30 14:37                     ` Mark Brown
2012-10-31 20:10                     ` Kevin Hilman
2012-11-01  8:54                       ` Linus Walleij
2012-11-01  8:56                         ` Fwd: " Linus Walleij
2012-11-01 11:42                           ` Kevin Hilman
2012-11-01 13:22                             ` Linus Walleij
2012-11-01 12:07                         ` Mark Brown
2012-11-01 14:01                           ` Linus Walleij
2012-11-01 14:19                             ` Mark Brown
2012-11-11 12:32                             ` Linus Walleij
2012-10-31 13:19                 ` Jean-Christophe PLAGNIOL-VILLARD
2012-10-24 16:52           ` Felipe Balbi
2012-10-24 17:13             ` Linus Walleij
2012-10-24 17:34             ` Dmitry Torokhov
2012-10-24 17:46           ` Benoit Cousson
2012-10-24 12:54       ` Linus Walleij
2012-10-24 16:18         ` Dmitry Torokhov
2012-10-24 16:57           ` Felipe Balbi
2012-10-24 17:18             ` Linus Walleij
2012-10-24 17:58             ` Dmitry Torokhov
2012-10-24 19:10               ` Felipe Balbi
2012-10-24 19:38                 ` Dmitry Torokhov
2012-10-24 19:51                   ` Felipe Balbi
2012-10-24 17:01           ` Linus Walleij

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=20121030155821.GU4511@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /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).