* [PATCH] platform: x86: intel-hid: Add missing ->thaw callback
@ 2017-04-18 13:49 Rafael J. Wysocki
2017-04-18 16:07 ` Darren Hart
0 siblings, 1 reply; 3+ messages in thread
From: Rafael J. Wysocki @ 2017-04-18 13:49 UTC (permalink / raw)
To: Darren Hart; +Cc: LKML, Linux PM, platform-driver-x86, Andy Shevchenko
From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
The intel-hid driver is missing a PM ->thaw callback allowing the
device to go back to the operational state after creating a
hibernation image or when there is an image restoration error during
resume.
The lack of the ->thaw callback basically means that all events
signaled by the device are discarded after a hibernation image has
been created which may be problematic, for example, if the image
cannot be saved (eg. due to an I/O issue with storage).
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
---
drivers/platform/x86/intel-hid.c | 1 +
1 file changed, 1 insertion(+)
Index: linux-pm/drivers/platform/x86/intel-hid.c
===================================================================
--- linux-pm.orig/drivers/platform/x86/intel-hid.c
+++ linux-pm/drivers/platform/x86/intel-hid.c
@@ -136,6 +136,7 @@ static int intel_hid_pl_resume_handler(s
static const struct dev_pm_ops intel_hid_pl_pm_ops = {
.freeze = intel_hid_pl_suspend_handler,
+ .thaw = intel_hid_pl_resume_handler,
.restore = intel_hid_pl_resume_handler,
.suspend = intel_hid_pl_suspend_handler,
.resume = intel_hid_pl_resume_handler,
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] platform: x86: intel-hid: Add missing ->thaw callback
2017-04-18 13:49 [PATCH] platform: x86: intel-hid: Add missing ->thaw callback Rafael J. Wysocki
@ 2017-04-18 16:07 ` Darren Hart
2017-04-18 17:30 ` Alex Hung
0 siblings, 1 reply; 3+ messages in thread
From: Darren Hart @ 2017-04-18 16:07 UTC (permalink / raw)
To: Rafael J. Wysocki, Alex Hung
Cc: LKML, Linux PM, platform-driver-x86, Andy Shevchenko
On Tue, Apr 18, 2017 at 03:49:06PM +0200, Rafael Wysocki wrote:
> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> The intel-hid driver is missing a PM ->thaw callback allowing the
> device to go back to the operational state after creating a
> hibernation image or when there is an image restoration error during
> resume.
>
> The lack of the ->thaw callback basically means that all events
> signaled by the device are discarded after a hibernation image has
> been created which may be problematic, for example, if the image
> cannot be saved (eg. due to an I/O issue with storage).
>
> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
+ Alex Hung <alex.hung@canonical.com>
Queued to testing, thank you Rafael.
> ---
> drivers/platform/x86/intel-hid.c | 1 +
> 1 file changed, 1 insertion(+)
>
> Index: linux-pm/drivers/platform/x86/intel-hid.c
> ===================================================================
> --- linux-pm.orig/drivers/platform/x86/intel-hid.c
> +++ linux-pm/drivers/platform/x86/intel-hid.c
> @@ -136,6 +136,7 @@ static int intel_hid_pl_resume_handler(s
>
> static const struct dev_pm_ops intel_hid_pl_pm_ops = {
> .freeze = intel_hid_pl_suspend_handler,
> + .thaw = intel_hid_pl_resume_handler,
> .restore = intel_hid_pl_resume_handler,
> .suspend = intel_hid_pl_suspend_handler,
> .resume = intel_hid_pl_resume_handler,
>
>
--
Darren Hart
VMware Open Source Technology Center
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] platform: x86: intel-hid: Add missing ->thaw callback
2017-04-18 16:07 ` Darren Hart
@ 2017-04-18 17:30 ` Alex Hung
0 siblings, 0 replies; 3+ messages in thread
From: Alex Hung @ 2017-04-18 17:30 UTC (permalink / raw)
To: Darren Hart
Cc: Rafael J. Wysocki, LKML, Linux PM, platform-driver-x86, Andy Shevchenko
On Tue, Apr 18, 2017 at 9:07 AM, Darren Hart <dvhart@infradead.org> wrote:
> On Tue, Apr 18, 2017 at 03:49:06PM +0200, Rafael Wysocki wrote:
>> From: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>>
>> The intel-hid driver is missing a PM ->thaw callback allowing the
>> device to go back to the operational state after creating a
>> hibernation image or when there is an image restoration error during
>> resume.
>>
>> The lack of the ->thaw callback basically means that all events
>> signaled by the device are discarded after a hibernation image has
>> been created which may be problematic, for example, if the image
>> cannot be saved (eg. due to an I/O issue with storage).
>>
>> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
>
> + Alex Hung <alex.hung@canonical.com>
>
> Queued to testing, thank you Rafael.
Thank you Rafael for catching this.
>
>> ---
>> drivers/platform/x86/intel-hid.c | 1 +
>> 1 file changed, 1 insertion(+)
>>
>> Index: linux-pm/drivers/platform/x86/intel-hid.c
>> ===================================================================
>> --- linux-pm.orig/drivers/platform/x86/intel-hid.c
>> +++ linux-pm/drivers/platform/x86/intel-hid.c
>> @@ -136,6 +136,7 @@ static int intel_hid_pl_resume_handler(s
>>
>> static const struct dev_pm_ops intel_hid_pl_pm_ops = {
>> .freeze = intel_hid_pl_suspend_handler,
>> + .thaw = intel_hid_pl_resume_handler,
>> .restore = intel_hid_pl_resume_handler,
>> .suspend = intel_hid_pl_suspend_handler,
>> .resume = intel_hid_pl_resume_handler,
>>
>>
>
> --
> Darren Hart
> VMware Open Source Technology Center
--
Cheers,
Alex Hung
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-04-18 17:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-18 13:49 [PATCH] platform: x86: intel-hid: Add missing ->thaw callback Rafael J. Wysocki
2017-04-18 16:07 ` Darren Hart
2017-04-18 17:30 ` Alex Hung
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).