]> asedeno.scripts.mit.edu Git - linux.git/commit
HISI LPC: Re-Add ACPI child enumeration support
authorJohn Garry <john.garry@huawei.com>
Tue, 8 May 2018 10:27:31 +0000 (18:27 +0800)
committerWei Xu <xuwei5@hisilicon.com>
Thu, 10 May 2018 16:35:46 +0000 (17:35 +0100)
commit99c0228d6ff1fabdd56fa78c2283b5b155fa8664
tree89295aee7e5b9067a63a8d6bf3e519edd5d521a3
parent332f632ec3d1dccdb89fadd5ce0850f02e14824d
HISI LPC: Re-Add ACPI child enumeration support

Since we no longer use the MFD APIs to enumerate the
child devices on the bus, use the platform driver APIs
directly.

In this patch we iterate of the children devices for the
host, and create a platform device directly per child.

For the iterating, we match the child ACPI HID against a
known list of supported child devices and their respective
ACPIs HID, to find the device name and any other
supplementary data.

Signed-off-by: John Garry <john.garry@huawei.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Wei Xu <xuwei5@hisilicon.com>
drivers/bus/hisi_lpc.c