linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: dmitry.torokhov@gmail.com (Dmitry Torokhov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCHv2] Input: omap4-keypad: Add pinctrl support
Date: Wed, 24 Oct 2012 10:28:46 -0700	[thread overview]
Message-ID: <4099134.xWUIfbbahk@dtor-d630.eng.vmware.com> (raw)
In-Reply-To: <CACRpkdai3NocZQnW6YRF+k6GXUSx3P_Ge=F-tkuivrFm6tBbLg@mail.gmail.com>

On Wednesday, October 24, 2012 06:51:47 PM Linus Walleij wrote:
> On Wed, Oct 24, 2012 at 6:14 PM, Dmitry Torokhov
> 
> <dmitry.torokhov@gmail.com> wrote:
> > On Wed, Oct 24, 2012 at 11:37:04AM +0300, Felipe Balbi wrote:
> >> - we ask another layer to allocate memory for us
> >> - we ask another layer to call our ISR once the IRQ line is asserted
> >> - we ask another layer to handle the input events we just received
> >> - we ask another layer to transfer data through DMA for us
> >> - we ask another layer to turn regulators on and off.
> > 
> > But we are _directly_ _using_ all of these. You allocate memory and you
> > (the driver) stuff data into that memory. You ask for DMA and you take
> > the DMAed data and work with it. Not so with pinctrl in omap keypad and
> > other drivers I have seen so far.
> 
> Consult:
> drivers/tty/serial/amba-pl011.c

OK.

> drivers/spi/spi-pl022.c

Default/sleep transitions could be moved into bus code.

> drivers/i2c/busses/i2c-nomadik.c

Don't see pinctrl in linux-next.

 
> for more complex pinctrl use cases. These are my dogfood drivers ...
> Most of these will request more than one state and switch the driver
> between these different states at runtime, in these examples for power
> saving there are states named "default", "sleep" and in the I2C driver
> also "idle".
> 
> These examples are more typical to how the ux500 platform will
> look, also the SKE input driver will move the devise to sleep/default
> states but we need to merge PM code before we can do that.

I do not say that no drivers should ever touch pinctrl, just that most
of them do not have to if you have other layers to the right thing for
them.

Thanks.

-- 
Dmitry

  reply	other threads:[~2012-10-24 17:28 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 [this message]
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
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=4099134.xWUIfbbahk@dtor-d630.eng.vmware.com \
    --to=dmitry.torokhov@gmail.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).