All of lore.kernel.org
 help / color / mirror / Atom feed
From: robherring2@gmail.com (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: moving gpio driver to drivers/gpio, how to initialize?
Date: Wed, 11 May 2011 11:07:22 -0500	[thread overview]
Message-ID: <4DCAB43A.8090003@gmail.com> (raw)
In-Reply-To: <20110511142016.GG3188@pulham.picochip.com>

On 05/11/2011 09:20 AM, Jamie Iles wrote:
> On Wed, May 11, 2011 at 04:11:53PM +0200, Sascha Hauer wrote:
>> I think we mostly agree on moving the gpio drivers from arch/arm to
>> drivers/gpio.  A question we have to answer is how we want to initialize
>> these drivers. On nomadik these are platform drivers, but on i.MX and
>> others platform drivers initialize too late, since the gpio functions
>> are already used at init_machine time. PXA uses sysdev for their gpios,
>> but is this the correct answer?
>
> The omap gpio driver registers the platform_driver as a
> postcore_initcall so that it can use GPIO in the machine init for this
> reason.  A platform_device/driver feels like the right way to do this
> IMHO.
>
An early_platform_device may be a better approach to avoid init level 
tweaking. This would be needed for timers if the SH timer approach is 
adopted.

Rob

      parent reply	other threads:[~2011-05-11 16:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-11 14:11 moving gpio driver to drivers/gpio, how to initialize? Sascha Hauer
2011-05-11 14:20 ` Jamie Iles
2011-05-11 14:42   ` Sascha Hauer
2011-05-11 16:07   ` Rob Herring [this message]

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=4DCAB43A.8090003@gmail.com \
    --to=robherring2@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 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.