All of lore.kernel.org
 help / color / mirror / Atom feed
From: broonie@opensource.wolfsonmicro.com (Mark Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] [RFC] pinctrl: mvebu: reset pins to an UNKNOWN state on startup
Date: Thu, 25 Oct 2012 11:27:56 +0100	[thread overview]
Message-ID: <20121025102756.GJ18814@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <CACRpkdaxUS95vPLsW0kSbPn3g0ywMg+MJhrbEJBRa4uaLvw4Fg@mail.gmail.com>

On Thu, Oct 25, 2012 at 08:46:38AM +0200, Linus Walleij wrote:

> Now I don't know which kernel senior being it was that told me
> never to screw around with the defaults from the boot loader
> if not really needed. It is better if the driver reads the hardware
> to figure out what state it's in and move on from there.

This depends on the platform quite a bit - there's two schools of
thought on what bootloaders should do, and typically platforms decide on
a per platform basis which they'll use:

 1. The bootloader does enough to load the kernel and nothing more, the
    kernel should ignore anything the bootloader did.  Some people
    prefer this as it places minimal reliance on the bootloader which
    may be of uncertain quality and minimises the need to upgrade the
    bootloader which is often highly risky.

 2. The bootloader does all the pin setup and so on.  This provides a
    place for board specific stuff and avoids the kernel having to know
    about lots of device variants.

For example AIUI OMAP tends towards the second view (partly due to
number of device variants) but for example Samsung platforms typically
use the first method (their pinmux is pretty simple).
-------------- 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/20121025/f30f4e79/attachment-0001.sig>

  reply	other threads:[~2012-10-25 10:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-24 19:18 [PATCH] [RFC] pinctrl: mvebu: reset pins to an UNKNOWN state on startup Thomas Petazzoni
2012-10-24 19:38 ` Sebastian Hesselbarth
2012-10-24 19:51   ` Thomas Petazzoni
2012-10-24 20:15 ` Andrew Lunn
2012-10-24 20:21   ` Thomas Petazzoni
2012-10-25  6:51     ` Linus Walleij
2012-10-25  6:46 ` Linus Walleij
2012-10-25 10:27   ` Mark Brown [this message]
2012-10-25 15:47 ` Stephen Warren

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=20121025102756.GJ18814@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.