[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LNX.2.00.1003311415000.24576@pobox.suse.cz>
Date: Wed, 31 Mar 2010 14:15:53 +0200 (CEST)
From: Jiri Kosina <jkosina@...e.cz>
To: Bruno Prémont <bonbons@...ux-vserver.org>
Cc: Dmitry Torokhov <dmitry.torokhov@...il.com>,
linux-input@...r.kernel.org, linux-usb@...r.kernel.org,
linux-fbdev@...r.kernel.org, linux-kernel@...r.kernel.org,
"Rick L. Vinyard Jr." <rvinyard@...nmsu.edu>,
Nicu Pavel <npavel@...ner.com>,
Oliver Neukum <oliver@...kum.org>,
Jaya Kumar <jayakumar.lkml@...il.com>
Subject: Re: [PATCH v6 7/8, needs improvement] hid: add suspend/resume hooks
for hid drivers
On Tue, 30 Mar 2010, Bruno Prémont wrote:
> Add suspend/resume hooks for HID drivers so these can do some
> additional state adjustment when device gets suspended/resumed.
>
> This patch calls these hooks from usbhid suspend/resume functions,
> only calling suspend on plain suspend, not autosuspend.
> (it might be worth adding an autosuspend parameter to suspend
> hook and calling suspend in both cases)
>
> Signed-off-by: Bruno Prémont <bonbons@...ux-vserver.org>
> ---
>
> Note:
> this patch needs improvements as mentionned by Olivier Neukum:
> - suspend hook for both system suspend and autosuspend
> - no call of hook on USB-HID-resume failure
I agree with Oliver's comments.
We should also consider putting the hook calls into bluetooth
implementation as well (though there is currently no driver using it, but
I don't know, maybe Wacom could benefit from it as well).
Thanks,
--
Jiri Kosina
SUSE Labs, Novell Inc.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists