From: Graeme Gregory <gg@slimlogic.co.uk>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: Graeme Gregory <graeme.gregory@linaro.org>,
linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-serial@vger.kernel.org, shannon.zhao@linaro.org,
Len Brown <lenb@kernel.org>,
Russell King <linux@arm.linux.org.uk>
Subject: Re: [PATCH 2/3] ACPI: scan add call to probe amba devices
Date: Tue, 1 Dec 2015 12:16:51 +0000 [thread overview]
Message-ID: <20151201121627.GA4036@xora-haswell.xora.org.uk> (raw)
In-Reply-To: <8504062.kEYB5C4QA7@vostro.rjw.lan>
On Tue, Dec 01, 2015 at 03:16:53AM +0100, Rafael J. Wysocki wrote:
> On Wednesday, September 30, 2015 11:38:49 AM Graeme Gregory wrote:
> > Call the amba device creation function in the default enumeration path,
> > this is the same location platform devices are probed.
>
> First, I'm sorry for the glacially slow response here.
>
> > Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
> > Cc: Len Brown <lenb@kernel.org>
> > Cc: Russell King <linux@arm.linux.org.uk>
> > Signed-off-by: Graeme Gregory <graeme.gregory@linaro.org>
> > ---
> > drivers/acpi/scan.c | 4 +++-
> > 1 file changed, 3 insertions(+), 1 deletion(-)
> >
> > diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c
> > index f834b8c..aa3184e 100644
> > --- a/drivers/acpi/scan.c
> > +++ b/drivers/acpi/scan.c
> > @@ -1633,8 +1633,10 @@ static void acpi_default_enumeration(struct acpi_device *device)
> > acpi_dev_get_resources(device, &resource_list, acpi_check_spi_i2c_slave,
> > &is_spi_i2c_slave);
> > acpi_dev_free_resource_list(&resource_list);
> > - if (!is_spi_i2c_slave)
> > + if (!is_spi_i2c_slave) {
> > + acpi_create_amba_device(device);
>
> Do you really have to add this here?
>
> It would be much cleaner to use a new scan handler instead.
>
I can certainly look into doing that, I cannot from a quick scan see any
reason not too. I just didn't think of it.
Graeme
next prev parent reply other threads:[~2015-12-01 12:16 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-30 10:38 [PATCH 0/3] Add AMBA bus probing support to ACPI Graeme Gregory
2015-09-30 10:38 ` [PATCH 1/3] ACPI: amba bus probing support Graeme Gregory
2015-09-30 10:38 ` [PATCH 2/3] ACPI: scan add call to probe amba devices Graeme Gregory
2015-12-01 2:16 ` Rafael J. Wysocki
2015-12-01 12:16 ` Graeme Gregory [this message]
2015-09-30 10:38 ` [PATCH 3/3] serial: amba-pl011: add ACPI support to AMBA probe Graeme Gregory
2015-12-01 2:21 ` Rafael J. Wysocki
2015-12-01 12:21 ` Graeme Gregory
2015-12-02 1:25 ` Rafael J. Wysocki
2015-12-03 20:06 ` Timur Tabi
2015-10-21 16:41 ` [PATCH 0/3] Add AMBA bus probing support to ACPI Al Stone
2015-10-21 22:29 ` Rafael J. Wysocki
2015-10-22 17:04 ` Al Stone
2015-10-29 14:47 ` Shannon Zhao
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=20151201121627.GA4036@xora-haswell.xora.org.uk \
--to=gg@slimlogic.co.uk \
--cc=graeme.gregory@linaro.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=rjw@rjwysocki.net \
--cc=shannon.zhao@linaro.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
all inboxes | Powered by JetHome®