From: Daniel Palmer <daniel@0x0f.com>
To: Russell King - ARM Linux admin <linux@armlinux.org.uk>
Cc: DTML <devicetree@vger.kernel.org>, SoC Team <soc@kernel.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
olof@lixom.net, Arnd Bergmann <arnd@arndb.de>,
Rob Herring <robh@kernel.org>, Willy Tarreau <w@1wt.eu>
Subject: Re: [PATCH v2 10/10] ARM: mstar: SMP support
Date: Wed, 2 Dec 2020 18:10:43 +0900 [thread overview]
Message-ID: <CAFr9PXnME5UCyOdkRGFO2+=gv27grcq35Adrtio3ex4hq0CWEQ@mail.gmail.com> (raw)
In-Reply-To: <20201201150425.GC1551@shell.armlinux.org.uk>
Hi Russell,
On Wed, 2 Dec 2020 at 00:04, Russell King - ARM Linux admin
<linux@armlinux.org.uk> wrote:
>
> On Tue, Dec 01, 2020 at 10:43:30PM +0900, Daniel Palmer wrote:
> > + np = of_find_compatible_node(NULL, NULL, "mstar,smpctrl");
> > + smpctrl = of_iomap(np, 0);
> > +
> > + if (!smpctrl)
> > + return -ENODEV;
>
> Wouldn't -ENOMEM be more appropriate here?
There seems to be examples of both -ENOMEM and -ENODEV in other ARM platforms.
arch/arm/mach-aspeed/platsmp.c uses -ENODEV for example.
I went with -ENODEV there as the source of the error is most likely
the node not being in the device tree.
I didn't check the result of of_find_compatible_node() because for the
memory barrier code in the same file I was told it wasn't necessary.
Thanks,
Daniel
prev parent reply other threads:[~2020-12-02 9:12 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-01 13:43 [PATCH v2 00/10] ARM: mstar: Add basic support for i2m and SMP Daniel Palmer
2020-12-01 13:43 ` [PATCH v2 01/10] dt-bindings: mstar: Add binding details for mstar,smpctrl Daniel Palmer
2020-12-09 16:35 ` Rob Herring
2020-12-10 10:33 ` Daniel Palmer
[not found] ` <CAK8P3a0D+XQREm7Gw5-7-byiz7eufYGT_r-XC3H6_whdOB0a1w@mail.gmail.com>
2020-12-10 10:43 ` Daniel Palmer
2020-12-01 13:43 ` [PATCH v2 02/10] dt-bindings: vendor-prefixes: Add honestar vendor prefix Daniel Palmer
2020-12-09 16:34 ` Rob Herring
2020-12-10 10:39 ` Daniel Palmer
2020-12-01 13:43 ` [PATCH v2 03/10] dt-bindings: mstar: Add Honestar SSD201_HT_V2 to mstar boards Daniel Palmer
2020-12-09 16:36 ` Rob Herring
2020-12-01 13:43 ` [PATCH v2 04/10] ARM: mstar: Add infinity2m support Daniel Palmer
2020-12-01 13:43 ` [PATCH v2 05/10] ARM: mstar: Add common dtsi for SSD201/SSD202D Daniel Palmer
2020-12-01 13:43 ` [PATCH v2 06/10] ARM: mstar: Add chip level dtsi for SSD202D Daniel Palmer
2020-12-01 13:43 ` [PATCH v2 07/10] ARM: mstar: Add dts for Honestar ssd201htv2 Daniel Palmer
2020-12-01 13:43 ` [PATCH v2 08/10] ARM: mstar: Add smp ctrl registers to infinity2m dtsi Daniel Palmer
2020-12-01 13:43 ` [PATCH v2 09/10] ARM: mstar: Wire up smpctrl for SSD201/SSD202D Daniel Palmer
2020-12-01 13:43 ` [PATCH v2 10/10] ARM: mstar: SMP support Daniel Palmer
2020-12-01 15:04 ` Russell King - ARM Linux admin
2020-12-02 9:10 ` Daniel Palmer [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='CAFr9PXnME5UCyOdkRGFO2+=gv27grcq35Adrtio3ex4hq0CWEQ@mail.gmail.com' \
--to=daniel@0x0f.com \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=olof@lixom.net \
--cc=robh@kernel.org \
--cc=soc@kernel.org \
--cc=w@1wt.eu \
/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).