Thread (19 messages) 19 messages, 3 authors, 2016-06-07

[PATCH V5 5/6] vfio: platform: call _RST method when using ACPI

From: Sinan Kaya <hidden>
Date: 2016-05-24 02:25:27
Also in: kvm, linux-acpi, linux-arm-msm, lkml

On 5/23/2016 11:21 AM, Eric Auger wrote:
quoted
+	acpi_ret = acpi_evaluate_integer(handle, "_RST", NULL, &val);
quoted
+	if (ACPI_FAILURE(acpi_ret))
+		return -EINVAL;
Can't you return something more explicit here? The error code will be
visible to the userspace. Difficult for him to understand the cause of
the failure in that case.
I can also add a reset failed message to both DT and ACPI reset calls.

Will that work?

-- 
Sinan Kaya
Qualcomm Technologies, Inc. on behalf of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help