[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160331172935.GL2350@sirena.org.uk>
Date: Thu, 31 Mar 2016 10:29:35 -0700
From: Mark Brown <broonie@...nel.org>
To: Octavian Purdila <octavian.purdila@...el.com>
Cc: "Rafael J. Wysocki" <rjw@...ysocki.net>,
Len Brown <lenb@...nel.org>,
Matt Fleming <matt@...eblueprint.co.uk>,
Wolfram Sang <wsa@...-dreams.de>,
Joel Becker <jlbec@...lplan.org>,
Christoph Hellwig <hch@....de>, linux-acpi@...r.kernel.org,
linux-efi@...r.kernel.org, linux-i2c@...r.kernel.org,
linux-spi@...r.kernel.org, linux-kernel@...r.kernel.org,
irina.tirdea@...el.com
Subject: Re: [RFC PATCH 06/10] spi: add support for ACPI reconfigure
notifications
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.
Download attachment "signature.asc" of type "application/pgp-signature" (474 bytes)
Powered by blists - more mailing lists