search for: acpi_bus_get_device

Displaying 9 results from an estimated 9 matches for "acpi_bus_get_device".

2013 Feb 15
1
xen/acpi: ACPI memory hotplug
..."xen/acpi: ACPI memory hotplug" from Jan 24, 2013, leads to the following Smatch complaint: drivers/xen/xen-acpi-memhotplug.c:198 acpi_memory_get_device() error: we previously assumed 'device' could be null (see line 171) drivers/xen/xen-acpi-memhotplug.c 170 171 if (!acpi_bus_get_device(handle, &device) && device) ^^^^^^ New check. Btw, checking device is unnecessary. if (acpi_bus_get_device(handle, &device) == 0) goto end; A successful "Get Device" means that "device" is non-N...
2013 Feb 15
1
xen/acpi: ACPI memory hotplug
..."xen/acpi: ACPI memory hotplug" from Jan 24, 2013, leads to the following Smatch complaint: drivers/xen/xen-acpi-memhotplug.c:198 acpi_memory_get_device() error: we previously assumed 'device' could be null (see line 171) drivers/xen/xen-acpi-memhotplug.c 170 171 if (!acpi_bus_get_device(handle, &device) && device) ^^^^^^ New check. Btw, checking device is unnecessary. if (acpi_bus_get_device(handle, &device) == 0) goto end; A successful "Get Device" means that "device" is non-N...
2020 Jul 27
0
[PATCH 1/4] drm: retrieve EDID via ACPI _DDC method
..._dod_entries; + u64 *dod_entries = NULL; + struct list_head *node, *next; + + handle = ACPI_HANDLE(&pdev->dev); + if (handle == NULL) + return NULL; + + dod_entries = get_dod_entries(handle, &num_dod_entries); + if (dod_entries == NULL || num_dod_entries == 0) + goto done; + + status = acpi_bus_get_device(handle, &device); + if (ACPI_FAILURE(status) || device == NULL) + goto done; + + list_for_each_safe(node, next, &device->children) { + struct acpi_device *child; + u64 adr; + int i; + + child = list_entry(node, struct acpi_device, node); + if (child == NULL) + continue; + + stat...
2020 Jul 27
6
[PATCH 0/4] drm: add support for retrieving EDID via ACPI _DDC
Some notebook systems provide the EDID for the internal panel via the _DDC method in ACPI, instead of or in addition to providing the EDID via DDC on LVDS/eDP. Add a DRM helper to search for an ACP _DDC method under the ACPI namespace for each VGA/3D controller, and return the first EDID successfully retrieved via _DDC. Update the i915, nouveau, and radeon DRM-KMS drivers to fall back to
2017 May 04
0
[PATCH v1] ACPI: Switch to use generic UUID API
...5, > + 0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE); > union acpi_object *obj; > struct acpi_device *adev; > acpi_handle handle; > @@ -884,7 +883,7 @@ static int i2c_hid_acpi_pdata(struct i2c_client *client, > if (!handle || acpi_bus_get_device(handle, &adev)) > return -ENODEV; > > - obj = acpi_evaluate_dsm_typed(handle, i2c_hid_guid, 1, 1, NULL, > + obj = acpi_evaluate_dsm_typed(handle, &i2c_hid_guid, 1, 1, NULL, > ACPI_TYPE_INTEGER); > if...
2017 May 04
12
[PATCH v1] ACPI: Switch to use generic UUID API
...- }; + static uuid_le i2c_hid_guid = + UUID_LE(0x3CDFF6F7, 0x4267, 0x4555, + 0xAD, 0x05, 0xB3, 0x0A, 0x3D, 0x89, 0x38, 0xDE); union acpi_object *obj; struct acpi_device *adev; acpi_handle handle; @@ -884,7 +883,7 @@ static int i2c_hid_acpi_pdata(struct i2c_client *client, if (!handle || acpi_bus_get_device(handle, &adev)) return -ENODEV; - obj = acpi_evaluate_dsm_typed(handle, i2c_hid_guid, 1, 1, NULL, + obj = acpi_evaluate_dsm_typed(handle, &i2c_hid_guid, 1, 1, NULL, ACPI_TYPE_INTEGER); if (!obj) { dev_err(&client->dev, "device _DSM execution failed\n");...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...ce, NULL, &ibm_acpi_handle, NULL) != FOUND_APCI) { - err("%s: acpi_walk_namespace failed\n", __func__); + pr_err("%s: acpi_walk_namespace failed\n", __func__); retval = -ENODEV; goto init_return; } dbg("%s: found IBM aPCI device\n", __func__); if (acpi_bus_get_device(ibm_acpi_handle, &device)) { - err("%s: acpi_bus_get_device failed\n", __func__); + pr_err("%s: acpi_bus_get_device failed\n", __func__); retval = -ENODEV; goto init_return; } @@ -458,8 +458,8 @@ static int __init ibm_acpiphp_init(void) ACPI_DEVICE_NOTIFY, ibm_...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...ce, NULL, &ibm_acpi_handle, NULL) != FOUND_APCI) { - err("%s: acpi_walk_namespace failed\n", __func__); + pr_err("%s: acpi_walk_namespace failed\n", __func__); retval = -ENODEV; goto init_return; } dbg("%s: found IBM aPCI device\n", __func__); if (acpi_bus_get_device(ibm_acpi_handle, &device)) { - err("%s: acpi_bus_get_device failed\n", __func__); + pr_err("%s: acpi_bus_get_device failed\n", __func__); retval = -ENODEV; goto init_return; } @@ -458,8 +458,8 @@ static int __init ibm_acpiphp_init(void) ACPI_DEVICE_NOTIFY, ibm_...
2011 Jun 02
0
[PATCH] pci: Use pr_<level> and pr_fmt
...ce, NULL, &ibm_acpi_handle, NULL) != FOUND_APCI) { - err("%s: acpi_walk_namespace failed\n", __func__); + pr_err("%s: acpi_walk_namespace failed\n", __func__); retval = -ENODEV; goto init_return; } dbg("%s: found IBM aPCI device\n", __func__); if (acpi_bus_get_device(ibm_acpi_handle, &device)) { - err("%s: acpi_bus_get_device failed\n", __func__); + pr_err("%s: acpi_bus_get_device failed\n", __func__); retval = -ENODEV; goto init_return; } @@ -458,8 +458,8 @@ static int __init ibm_acpiphp_init(void) ACPI_DEVICE_NOTIFY, ibm_...