From: Alexey Kardashevskiy <aik@ozlabs.ru>
To: David Gibson <david@gibson.dropbear.id.au>
Cc: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, Greg Kurz <groug@kaod.org>
Subject: Re: [PATCH qemu v22] spapr: Implement Open Firmware client interface
Date: Thu, 8 Jul 2021 16:38:18 +1000 [thread overview]
Message-ID: <3d90be86-0a75-de06-0c54-9c246f5035e7@ozlabs.ru> (raw)
In-Reply-To: <YOZlnOiCeeF4mwJO@yekko>
On 08/07/2021 12:40, David Gibson wrote:
> [snip]
>> +static uint32_t vof_getprop(const void *fdt, uint32_t nodeph, uint32_t pname,
>> + uint32_t valaddr, uint32_t vallen)
>> +{
>> + char propname[OF_PROPNAME_LEN_MAX + 1];
>> + uint32_t ret = 0;
>> + int proplen = 0;
>> + const void *prop;
>> + char trval[64] = "";
>> + int nodeoff = fdt_node_offset_by_phandle(fdt, nodeph);
>> + bool write0;
>> +
>> + if (nodeoff < 0) {
>> + return -1;
>
> Shouldn't many of these explicit -1s be PROM_ERR, since you defined it?
It is defined in the firmware only and I forgot why :)
pc-bios/vof/ci.c|72 col 16| return PROM_ERROR;
pc-bios/vof/vof.h|13 col 9| #define PROM_ERROR (-1u)
I'll just ditch it, does not seem helping with anything.
--
Alexey
next prev parent reply other threads:[~2021-07-08 6:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-25 5:51 [PATCH qemu v22] spapr: Implement Open Firmware client interface Alexey Kardashevskiy
2021-06-27 16:38 ` BALATON Zoltan
2021-06-28 5:20 ` Alexey Kardashevskiy
2021-07-08 2:40 ` David Gibson
2021-07-08 3:15 ` Alexey Kardashevskiy
2021-07-08 4:07 ` David Gibson
2021-07-08 6:38 ` Alexey Kardashevskiy [this message]
2021-07-08 22:22 ` BALATON Zoltan
2021-07-09 0:57 ` David Gibson
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=3d90be86-0a75-de06-0c54-9c246f5035e7@ozlabs.ru \
--to=aik@ozlabs.ru \
--cc=david@gibson.dropbear.id.au \
--cc=groug@kaod.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.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).