public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: t.figa@samsung.com (Tomasz Figa)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] pinctrl: samsung: Allow pin value to be initialized using pinfunc.
Date: Thu, 05 Dec 2013 18:03:02 +0100	[thread overview]
Message-ID: <1475204.PCyxT0KMui@amdc1227> (raw)
In-Reply-To: <52A0AEB4.7090909@bracey.fi>

On Thursday 05 of December 2013 18:49:56 Kevin Bracey wrote:
> On 05/12/2013 17:11, Tomasz Figa wrote:
> > On Thursday 05 of December 2013 15:07:47 Mark Brown wrote:
> >> On Tue, Dec 03, 2013 at 10:29:42AM +0100, Linus Walleij wrote:
> >>
> >>> So a suggested patch to support weak hogs would be interesting
> >>> to look at. Can you provide details on how you think this would
> >>> work?
> >> Or should we be going and applying the default state to all devices on
> >> init without worrying about a driver appearing?
> > If a device isn't used, then it's often better to configure the pins for
> > a different function, such as GPIO, to minimize leakage current.
> >
> 
> And there can also be mutually-exclusive drivers choosing different 
> default states for the same pin. I think you do need a separate "safe" 
> indicator.

That's not quite true, as on a single board you should rather have
a single device node with "okay" status referencing given set of pins.
Still, I think that a separate safe state is the way to go.

> 
> My current thought is that  a late-init "make safe all unclaimed pins" 
> pass would make sense - you can't really mess with pins in an automated 
> fashion on init, as it can mess up bootloader->driver handover.   There 
> already exist late-init "turn off all unclaimed clocks" (at least on 
> shmobile)

That's a feature of Common Clock Framework.

> and "turn off all unclaimed regulators", and it would fit that 
> model.

Maybe that's the way to do it. I need to think a bit more on this,
especially considering our (Samsung's) use cases.

Best regards,
Tomasz

  reply	other threads:[~2013-12-05 17:03 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-19 17:15 [PATCH] pinctrl: samsung: Allow pin value to be initialized using pinfunc Tomasz Figa
2013-11-19 18:46 ` Stephen Warren
2013-11-19 18:59   ` Doug Anderson
2013-11-19 19:16     ` Stephen Warren
2013-11-20  0:02       ` Kyungmin Park
2013-11-20  0:07         ` Stephen Warren
2013-11-20 12:51           ` Mark Brown
2013-11-25 14:34         ` Linus Walleij
2013-11-25 20:01           ` Kevin Bracey
2013-11-26  0:30             ` Tomasz Figa
2013-12-03  9:31               ` Linus Walleij
2013-12-03  9:33                 ` Tomasz Figa
2013-12-03  9:29             ` Linus Walleij
2013-12-05 15:07               ` Mark Brown
2013-12-05 15:11                 ` Tomasz Figa
2013-12-05 16:49                   ` Kevin Bracey
2013-12-05 17:03                     ` Tomasz Figa [this message]
2013-12-05 18:00                   ` Mark Brown
2013-12-09 10:22                 ` Linus Walleij
2013-12-09 17:04                   ` Mark Brown
2013-12-05 23:54               ` Stephen Warren
2013-12-09 12:57                 ` Linus Walleij
2013-11-20 14:57     ` Tomasz Figa
2013-11-20 13:38   ` Tomasz Figa

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=1475204.PCyxT0KMui@amdc1227 \
    --to=t.figa@samsung.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