From: Grygorii Strashko <grygorii.strashko@ti.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: Santosh Shilimkar <ssantosh@kernel.org>,
Tero Kristo <t-kristo@ti.com>, Rob Herring <robh+dt@kernel.org>,
Lokesh Vutla <lokeshvutla@ti.com>,
DTML <devicetree@vger.kernel.org>,
Dave Gerlach <d-gerlach@ti.com>, Sekhar Nori <nsekhar@ti.com>,
Linux ARM <linux-arm-kernel@lists.infradead.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Nishanth Menon <nm@ti.com>
Subject: Re: [PATCH v3 2/2] soc: ti: add k3 platforms chipid module driver
Date: Mon, 11 May 2020 23:02:30 +0300 [thread overview]
Message-ID: <71c11d42-9645-7b93-9cf3-3139d35befc9@ti.com> (raw)
In-Reply-To: <CAK8P3a19RC1hPZkLiGCEHFuHDNxNLiAg34RdbBZ=gxDhRg4RpA@mail.gmail.com>
Hi Arnd,
On 11/05/2020 15:43, Arnd Bergmann wrote:
> On Mon, May 11, 2020 at 1:11 PM Grygorii Strashko
> <grygorii.strashko@ti.com> wrote:
>>
>> Hi Arnd,
>>
>> On 09/05/2020 01:17, Arnd Bergmann wrote:
>>> On Fri, May 8, 2020 at 12:01 PM Grygorii Strashko
>>> <grygorii.strashko@ti.com> wrote:
>>>
>>>> +static int __init k3_chipinfo_init(void)
>>>> +{
>>>> + struct soc_device_attribute *soc_dev_attr;
>>>> + struct soc_device *soc_dev;
>>>> + struct device_node *node;
>>>> + struct regmap *regmap;
>>>> + u32 partno_id;
>>>> + u32 variant;
>>>> + u32 jtag_id;
>>>> + u32 mfg;
>>>> + int ret;
>>>> +
>>>> + node = of_find_compatible_node(NULL, NULL, "ti,am654-chipid");
>>>> + if (!node)
>>>> + return -ENODEV;
>>>
>>> This will fail the initcall and print a warning when the kernel runs on any
>>> other SoC. Would it be possible to just make this a platform_driver?
>>>
>>> If not, I think you should silently return success when the device
>>> node is absent.
>>
>> Thank you for your report.
>> Can' make it platform drv., as the SoC info need to be accessible by divers early.
>
> Which drivers in particular? In most cases you should be able to still do this
> right by relying on initcall ordering as long as this one can only be built-in
> (or possibly only a module for compile-testing).
Thanks for you review.
As I'm aware of right now, it's going to be: ringacc, dma, net drv and mmc.
So, It seems should work with platform_driver and subsys_initcall.
I'll try it.
--
Best regards,
grygorii
prev parent reply other threads:[~2020-05-11 20:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-08 10:00 [PATCH v3 0/2] " Grygorii Strashko
2020-05-08 10:00 ` [PATCH v3 1/2] dt-bindings: soc: ti: add binding for k3 platforms chipid module Grygorii Strashko
2020-05-08 10:01 ` [PATCH v3 2/2] soc: ti: add k3 platforms chipid module driver Grygorii Strashko
2020-05-08 22:17 ` Arnd Bergmann
2020-05-11 11:11 ` Grygorii Strashko
2020-05-11 12:43 ` Arnd Bergmann
2020-05-11 20:02 ` Grygorii Strashko [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=71c11d42-9645-7b93-9cf3-3139d35befc9@ti.com \
--to=grygorii.strashko@ti.com \
--cc=arnd@arndb.de \
--cc=d-gerlach@ti.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lokeshvutla@ti.com \
--cc=nm@ti.com \
--cc=nsekhar@ti.com \
--cc=robh+dt@kernel.org \
--cc=ssantosh@kernel.org \
--cc=t-kristo@ti.com \
/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
all inboxes | Powered by JetHome®