Thread (10 messages) 10 messages, 5 authors, 2016-02-15

Re: [RFC PATCH] SPI/ACPI: DesignWare: Add ACPI support for Designware SPI driver

From: Hanjun Guo <hidden>
Date: 2016-02-15 08:29:18
Also in: linux-spi, lkml

On 2016/2/5 19:09, Mark Brown wrote:
On Fri, Feb 05, 2016 at 03:11:20PM +0800, qiujiang wrote:
quoted
This patch added ACPI support for DesignWare SPI mmio driver. It
was based the corresponding DT driver and compatible for this two
way. This patch has been tested on Hisilicon D02 board. It relies
on the GPIO patchset.
Intel are heavy users of this driver on their systems which also use
ACPI.  Have you discussed this binding with them?  I've copied Andy and
Jarkko who've worked on the driver recently.
There is no ACPI code in this driver yet, seems "PRP0001" is used to reuse
this driver directly.

[...]
quoted
+static const struct acpi_device_id dw_spi_mmio_acpi_match[] = {
+		{"HISI0171", 0},
+		{ }
+};
+MODULE_DEVICE_TABLE(acpi, dw_spi_mmio_acpi_match);
I really do wish ACPI had some more sensible system for allocating
device IDs so the tables were a little more legible. :(
Hmm, I agree. but for now, every OEM can request ACPI or PNP ID with specific
prefixes, and they can manage it by themselves, that would flexible for OEM verdors
to develop firmware and driver.

For this driver in particular, if DesignWare provides the ACPI or PNP ID, that would
be great for all OEMs can reuse it.

Thanks
Hanjun


--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help