linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/9] spi/pxa2xx: don't use subys initcall for driver init
Date: Fri, 26 Nov 2010 09:08:22 +0000	[thread overview]
Message-ID: <20101126090822.GC9310@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <AANLkTi=tbiYCvTKH_wDDE0QuFpoBMnw-ZjF826VupnRA@mail.gmail.com>

On Thu, Nov 25, 2010 at 06:14:49PM -0700, Grant Likely wrote:
> On Thu, Nov 25, 2010 at 4:54 PM, Russell King - ARM Linux
> <linux@arm.linux.org.uk> wrote:
> > On Wed, Nov 24, 2010 at 04:39:05PM +0100, Sebastian Andrzej Siewior wrote:
> >> Mark Brown wrote:
> >>> On Wed, Nov 24, 2010 at 03:09:25PM +0100, Sebastian Andrzej Siewior wrote:
> >>>
> >>>> I've been pointed out to this commit but I don't understand _why_.
> >>>> The part I don't get is "so it can be used with cpufreq". Is it
> >>>> refered to a driver or the subsystem as it?
> >>>
> >>> We need the regulators for the CPU rails to start before the cpufreq
> >>> driver starts so cpufreq can talk to them, and since the regulators may
> >>> be SPI attached this means we also need the SPI controller to start
> >>> before cpufreq. ?cpufreq starts at vanilla init time.
> >>
> >> After digging through the code I think I've found it. pxa_cpu_init()
> >> registers a cpufreq client. cpufreq calls init and pxa then
> >> regulator_get() to get the regulator and I guess this is the problem.
> >> So I would suggest to defer pxa_cpu_init() via late_initcall().
> >>
> >> The other way around will force you to hack the init code for various
> >> drivers to make it work.
> >
> > Why should the PXA code change when you haven't explained _why_ you want
> > to change the SPI driver to conform to your idea?
> 
> The idea is to get away from trying to resolve probe order issue by
> messing with the initcall level in spi and i2c bus drivers.  It's
> fragile, and it doesn't work with drivers as modules.  Instead, we're
> investigating making the dependencies explicit in the board support
> code.  However, hacking other initcalls to enable what I want to do on
> the spi bus drivers isn't a solution, it is just moving the problem.

I know that's what _you're_ doing, but that doesn't seem to be what
Sebastian is doing.  My question was targeted towards at Sebastian.

  reply	other threads:[~2010-11-26  9:08 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-24 11:13 SPI support for Sodaville Sebastian Andrzej Siewior
2010-11-24 11:13 ` [PATCH 1/9] spi/pxa2xx: don't use subys initcall for driver init Sebastian Andrzej Siewior
2010-11-24 13:18   ` Antonio Ospite
2010-11-24 13:54   ` Haojian Zhuang
2010-11-24 14:09     ` Sebastian Andrzej Siewior
2010-11-24 14:14       ` Haojian Zhuang
2010-11-24 14:16       ` Mark Brown
2010-11-24 15:30         ` Grant Likely
2010-11-24 15:43           ` Mark Brown
2010-11-24 15:39         ` Sebastian Andrzej Siewior
2010-11-25 23:54           ` Russell King - ARM Linux
2010-11-26  1:14             ` Grant Likely
2010-11-26  9:08               ` Russell King - ARM Linux [this message]
2010-11-26 10:50             ` [sodaville] " Sebastian Andrzej Siewior
2010-11-26 11:06               ` Russell King - ARM Linux
2010-11-26 13:29                 ` Sebastian Andrzej Siewior
2010-11-24 11:13 ` [PATCH 2/9] spi/pxa2xx: add support for shared IRQ handler Sebastian Andrzej Siewior
2010-11-24 11:13 ` [PATCH 3/9] spi/pxa2xx: Use define for SSSR_TFL_MASK instead of plain numbers Sebastian Andrzej Siewior
2010-11-24 11:13 ` [PATCH 4/9] arm/pxa2xx: reorgazine SSP and SPI header files Sebastian Andrzej Siewior
2010-11-24 14:03   ` Haojian Zhuang
2010-11-24 14:13     ` Sebastian Andrzej Siewior
2010-11-24 11:13 ` [PATCH 5/9] spi/pxa2xx: Add CE4100 support Sebastian Andrzej Siewior
2010-11-24 11:13 ` [PATCH 6/9] spi/pxa2xx: Consider CE4100's FIFO depth Sebastian Andrzej Siewior
2010-11-24 11:13 ` [PATCH 7/9] spi/pxa2xx: Add chipselect support for Sodaville Sebastian Andrzej Siewior
2010-11-24 11:13 ` [PATCH 8/9] spi/pxa2xx: Modify RX-Tresh instead of busy-loop for the remaining RX bytes Sebastian Andrzej Siewior
2010-11-24 11:13 ` [PATCH 9/9] spi/pxa2xx: pass of_node to spi device and set a parent device Sebastian Andrzej Siewior

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=20101126090822.GC9310@n2100.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --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).