aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/hvc
diff options
context:
space:
mode:
authorMaximilian Luz <luzmaximilian@gmail.com>2019-09-24 18:22:26 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-10 14:29:44 +0200
commit33364d63c75d6182fa369cea80315cf1bb0ee38e (patch)
treeb674c5ea94b652f7ef5e4874684158040a41251b /drivers/tty/hvc
parentserial: sirf: make register info static (diff)
downloadlinux-dev-33364d63c75d6182fa369cea80315cf1bb0ee38e.tar.xz
linux-dev-33364d63c75d6182fa369cea80315cf1bb0ee38e.zip
serdev: Add ACPI devices by ResourceSource field
When registering a serdev controller, ACPI needs to be checked for devices attached to it. Currently, all immediate children of the ACPI node of the controller are assumed to be UART client devices for this controller. Furthermore, these devices are not searched elsewhere. This is incorrect: Similar to SPI and I2C devices, the UART client device definition (via UARTSerialBusV2) can reside anywhere in the ACPI namespace as resource definition inside the _CRS method and points to the controller via its ResourceSource field. This field may either contain a fully qualified or relative path, indicating the controller device. To address this, we need to walk over the whole ACPI namespace, looking at each resource definition, and match the client device to the controller via this field. This patch is based on the existing acpi serial bus implementations in drivers/i2c/i2c-core-acpi.c and drivers/spi/spi.c, specifically commit 4c3c59544f33e97cf8557f27e05a9904ead16363 ("spi/acpi: enumerate all SPI slaves in the namespace"). Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com> Reviewed-by: Hans de Goede <hdegoede@redhat.com> Tested-by: Hans de Goede <hdegoede@redhat.com> Link: https://lore.kernel.org/r/20190924162226.1493407-1-luzmaximilian@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/hvc')
0 files changed, 0 insertions, 0 deletions