From: "Fu, Zhonghui" <zhonghui.fu@linux.intel.com>
To: jkosina@suse.com
Cc: linux-input@vger.kernel.org,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] hid: enable hid device to suspend/resume asynchronously
Date: Mon, 24 Aug 2015 23:15:56 +0800 [thread overview]
Message-ID: <55DB352B.3050701@linux.intel.com> (raw)
In-Reply-To: <55D20409.4060801@linux.intel.com>
Hi,
Any comments are welcome.
Thanks,
Zhonghui
On 2015/8/17 23:55, Fu, Zhonghui wrote:
> Enable hid device to suspend/resume asynchronously. This can improve
> system suspend/resume speed.
>
> Signed-off-by: Zhonghui Fu <zhonghui.fu@linux.intel.com>
> ---
> drivers/hid/hid-core.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
> index e6fce23..27ac160 100644
> --- a/drivers/hid/hid-core.c
> +++ b/drivers/hid/hid-core.c
> @@ -2627,6 +2627,7 @@ struct hid_device *hid_allocate_device(void)
> device_initialize(&hdev->dev);
> hdev->dev.release = hid_device_release;
> hdev->dev.bus = &hid_bus_type;
> + device_enable_async_suspend(&hdev->dev);
>
> hid_close_report(hdev);
>
> -- 1.7.1
>
next prev parent reply other threads:[~2015-08-24 15:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-17 15:55 [PATCH] hid: enable hid device to suspend/resume asynchronously Fu, Zhonghui
2015-08-24 15:15 ` Fu, Zhonghui [this message]
2015-09-04 13:10 ` Jiri Kosina
2015-09-24 6:07 ` Fu, Zhonghui
2015-09-25 12:05 ` Jiri Kosina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55DB352B.3050701@linux.intel.com \
--to=zhonghui.fu@linux.intel.com \
--cc=jkosina@suse.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).