Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1280478 > unrolled thread
| Started by | "Rafael J. Wysocki" <rjw@rjwysocki.net> |
|---|---|
| First post | 2015-12-01 02:50 +0100 |
| Last post | 2015-12-01 13:20 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 2/3] ACPI: scan add call to probe amba devices "Rafael J. Wysocki" <rjw@rjwysocki.net> - 2015-12-01 02:50 +0100
Re: [PATCH 2/3] ACPI: scan add call to probe amba devices Graeme Gregory <gg@slimlogic.co.uk> - 2015-12-01 13:20 +0100
| From | "Rafael J. Wysocki" <rjw@rjwysocki.net> |
|---|---|
| Date | 2015-12-01 02:50 +0100 |
| Subject | Re: [PATCH 2/3] ACPI: scan add call to probe amba devices |
| Message-ID | <qAIeR-32d-9@gated-at.bofh.it> |
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.
> acpi_create_platform_device(device);
> + }
> }
>
> static const struct acpi_device_id generic_device_ids[] = {
>
Thanks,
Rafael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Graeme Gregory <gg@slimlogic.co.uk> |
|---|---|
| Date | 2015-12-01 13:20 +0100 |
| Message-ID | <qAS4y-145-5@gated-at.bofh.it> |
| In reply to | #1280478 |
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web