All of lore.kernel.org
 help / color / mirror / Atom feed
From: Baolin Wang <baolin.wang@linaro.org>
To: Mark Brown <broonie@kernel.org>
Cc: Baolin Wang <baolin.wang@spreadtrum.com>,
	Rob Herring <robh+dt@kernel.org>,
	Mark Rutland <mark.rutland@arm.com>,
	linux-spi@vger.kernel.org, devicetree@vger.kernel.org,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 2/2] spi: Add ADI driver for Spreadtrum platform
Date: Thu, 7 Sep 2017 19:21:10 +0800	[thread overview]
Message-ID: <CAMz4ku+HVwEv0PsWivn5a-zOSZ9WF6ejcxzzU+LYHcqCqb=K5A@mail.gmail.com> (raw)
In-Reply-To: <20170907101017.mcxfnm3u4osda7xr@sirena.co.uk>

On 7 September 2017 at 18:10, Mark Brown <broonie@kernel.org> wrote:
> On Thu, Sep 07, 2017 at 11:13:00AM +0800, Baolin Wang wrote:
>
>> >> +static int __init sprd_adi_init(void)
>> >> +{
>> >> +     return platform_driver_register(&sprd_adi_driver);
>> >> +}
>> >> +subsys_initcall(sprd_adi_init);
>
>> > Why is this subsys_initcall() and not module_platform_driver()?
>
>> Since ADI is one very fundamental driver for our SoC, many drivers
>> such as regulator need depend on ADI, and regulator need to regulate
>> core voltage as earlier as possible.
>
> That applies to huge numbers of systems - you should still just use
> regular init ordering in mainline, there are efforts to make things
> better there (look at Viresh's dependency stuff) so hopefully things
> will improve in the future and in the meantime the cost of probe
> deferral isn't *that* great and it's less fiddly than tweaking ordering.
> Practically speaking init ordering stuff can always be added in vendor
> kernels in the meantime.

Make sense. So I change back to module_platform_driver().

-- 
Baolin.wang
Best Regards

  reply	other threads:[~2017-09-07 11:21 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-06  6:10 [PATCH 1/2] dt-bindings: spi: Add Spreadtrum ADI controller documentation Baolin Wang
2017-09-06  6:10 ` Baolin Wang
2017-09-06  6:10 ` Baolin Wang
2017-09-06  6:10 ` [PATCH 2/2] spi: Add ADI driver for Spreadtrum platform Baolin Wang
2017-09-06  6:10   ` Baolin Wang
2017-09-06 15:04   ` Mark Brown
2017-09-06 15:04     ` Mark Brown
2017-09-07  3:13     ` Baolin Wang
2017-09-07  3:13       ` Baolin Wang
2017-09-07 10:10       ` Mark Brown
2017-09-07 10:10         ` Mark Brown
2017-09-07 11:21         ` Baolin Wang [this message]
2017-09-06 14:59 ` [PATCH 1/2] dt-bindings: spi: Add Spreadtrum ADI controller documentation Mark Brown
2017-09-06 14:59   ` Mark Brown
2017-09-07  3:29   ` Baolin Wang
2017-09-07  3:29     ` Baolin Wang
2017-09-07  9:54     ` Mark Brown
2017-09-07 11:03       ` Baolin Wang
2017-09-07 11:44         ` Mark Brown
2017-09-08  1:57           ` Baolin Wang
2017-09-08  1:57             ` Baolin Wang

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='CAMz4ku+HVwEv0PsWivn5a-zOSZ9WF6ejcxzzU+LYHcqCqb=K5A@mail.gmail.com' \
    --to=baolin.wang@linaro.org \
    --cc=baolin.wang@spreadtrum.com \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=robh+dt@kernel.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.