Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1369197
| From | Octavian Purdila <octavian.purdila@intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH 06/10] spi: add support for ACPI reconfigure notifications |
| Date | 2016-04-01 13:00 +0200 |
| Message-ID | <rj4Y2-35K-27@gated-at.bofh.it> (permalink) |
| References | <riHf4-2VE-13@gated-at.bofh.it> <riHf5-2VE-41@gated-at.bofh.it> <riOJA-8tH-35@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Mar 31, 2016 at 8:29 PM, Mark Brown <broonie@kernel.org> wrote:
> On Thu, Mar 31, 2016 at 12:37:02PM +0300, Octavian Purdila wrote:
>
>> +#if IS_ENABLED(CONFIG_ACPI)
>> +static int acpi_spi_table_load(struct device *dev, const void *data)
>> +{
>> + struct spi_master *master = container_of(dev, struct spi_master, dev);
>> +
>> + acpi_register_spi_devices(master);
>> + return 0;
>> +}
>
> Why do we have a separate code path for this coompared to the initial
> startup? The handling appears to be identical so it seems we should
> drive this from the ACPI code so we don't have to add this to every
> single bus with ACPI bindings.
Hi Mark,
I probably don't fully understand your question, but I don't see a way
of how we can create a new SPI device from generic ACPI code. For
example, in acpi_spi_add_device() we need the spi_master node so that
we can allocate the spi device.
The handling is identical because we don't have yet have a way to
identify what where the new nodes added when a new ACPI table /
overlay has been loaded, so we have to rescan the ACPI namespace under
each controller.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC PATCH 06/10] spi: add support for ACPI reconfigure notifications Octavian Purdila <octavian.purdila@intel.com> - 2016-03-31 11:40 +0200
Re: [RFC PATCH 06/10] spi: add support for ACPI reconfigure notifications Mark Brown <broonie@kernel.org> - 2016-03-31 19:40 +0200
Re: [RFC PATCH 06/10] spi: add support for ACPI reconfigure notifications Octavian Purdila <octavian.purdila@intel.com> - 2016-04-01 13:00 +0200
Re: [RFC PATCH 06/10] spi: add support for ACPI reconfigure notifications Mark Brown <broonie@kernel.org> - 2016-04-01 16:10 +0200
Re: [RFC PATCH 06/10] spi: add support for ACPI reconfigure notifications "Rafael J. Wysocki" <rafael@kernel.org> - 2016-04-01 21:30 +0200
Re: [RFC PATCH 06/10] spi: add support for ACPI reconfigure notifications Mark Brown <broonie@kernel.org> - 2016-04-02 18:30 +0200
csiph-web