On 2016/2/5 19:09, Mark Brown wrote: > On Fri, Feb 05, 2016 at 03:11:20PM +0800, qiujiang wrote: > >> 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. [...] > >> +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-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html