From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Aleksey Makarov <aleksey.makarov@linaro.org>,
"linux-acpi@vger.kernel.org" <linux-acpi@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
linux-arm Mailing List <linux-arm-kernel@lists.infradead.org>,
Graeme Gregory <graeme.gregory@linaro.org>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
"Rafael J . Wysocki" <rjw@rjwysocki.net>,
Shannon Zhao <shannon.zhao@linaro.org>,
Vladimir Zapolskiy <vz@mleia.com>, Len Brown <lenb@kernel.org>
Subject: Re: [PATCH v5 2/2] ACPI: amba bus probing support
Date: Mon, 11 Jan 2016 17:24:33 +0000 [thread overview]
Message-ID: <20160111172433.GV19062@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <CAHp75VfND6Gq5XW91mbgN+ZQnxh_SCm9LKNz_zNFvaVd1dgvWg@mail.gmail.com>
On Mon, Jan 11, 2016 at 06:26:00PM +0200, Andy Shevchenko wrote:
> On Mon, Jan 11, 2016 at 5:27 PM, Russell King - ARM Linux
> <linux@arm.linux.org.uk> wrote:
> > On Mon, Jan 11, 2016 at 05:13:20PM +0200, Andy Shevchenko wrote:
> >> On Mon, Jan 11, 2016 at 3:26 PM, Aleksey Makarov
> >> <aleksey.makarov@linaro.org> wrote:
> >> dev->res is 0 before this one, right? Could you use this fact instead
> >> of address_found flag?
> >
> > amba_device_alloc() zero-initialises everything. However, dev->res is
> > a struct resource, and I'd prefer _this_ method that the OT is using
> > to testing some random part of struct resource.
>
> So, you mean resource->start = 0 is not enough reliable?
I'd rather not make assumptions about what in a resource is valid
or not valid.
> >> > + default:
> >> > + dev_warn(&adev->dev, "Invalid resource\n");
> >>
> >> Why? Isn't possible to have other resources for the devices?
> >
> > AMBA primecell devices have one memory region, and a number of
> > interrupts. Other resource types don't make sense.
>
> But isn't warning on the other side too noisy?
Why would it be "too noisy" ? Isn't it saying that the ACPI is in
error to include more resource types that aren't part of specifying
the AMBA primecell device? Maybe it should be dev_err(), because
it's technically an error...
Are you expecting people to create ACPI tables with a lot of rubbish
resources attached to these devices?
> Yes, and in this case ret > 0 should be converted to an appropriate
> error code, otherwise ACPI core will consider this as a normal
> execution, right?
You are assuming that it does return a positive non-zero value in the
first place.
--
RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
next prev parent reply other threads:[~2016-01-11 17:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-11 13:26 [PATCH v5 0/2] ACPI: amba bus probing support Aleksey Makarov
2016-01-11 13:26 ` [PATCH v5 1/2] ACPI: introduce a function to find the first physical device Aleksey Makarov
2016-01-11 14:40 ` Andy Shevchenko
2016-01-11 14:45 ` Andy Shevchenko
2016-01-11 13:26 ` [PATCH v5 2/2] ACPI: amba bus probing support Aleksey Makarov
2016-01-11 15:05 ` Russell King - ARM Linux
2016-01-11 15:13 ` Andy Shevchenko
2016-01-11 15:27 ` Russell King - ARM Linux
2016-01-11 16:26 ` Andy Shevchenko
2016-01-11 17:24 ` Russell King - ARM Linux [this message]
2016-01-11 19:03 ` Andy Shevchenko
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=20160111172433.GV19062@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=aleksey.makarov@linaro.org \
--cc=andy.shevchenko@gmail.com \
--cc=graeme.gregory@linaro.org \
--cc=gregkh@linuxfoundation.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rjw@rjwysocki.net \
--cc=shannon.zhao@linaro.org \
--cc=vz@mleia.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