linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Neukum <oliver@neukum.org>
To: Laurent Riffard <laurent.riffard@free.fr>
Cc: linux-input@vger.kernel.org,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	linux-next@vger.kernel.org, LKML <linux-kernel@vger.kernel.org>,
	USB list <linux-usb@vger.kernel.org>
Subject: Re: linux-next: USB mouse won't work after resume.
Date: Tue, 17 Feb 2009 21:42:55 +0100	[thread overview]
Message-ID: <200902172142.57302.oliver@neukum.org> (raw)
In-Reply-To: <499ABD80.9020904@free.fr>

[-- Attachment #1: Type: text/plain, Size: 514 bytes --]

Am Tuesday 17 February 2009 14:37:04 schrieb Laurent Riffard:
> Le 17.02.2009 11:35, Oliver Neukum a écrit :
> > Am Tuesday 17 February 2009 10:55:57 schrieb Laurent Riffard:
> >> My USB mouse won't work after suspend to disk and resume. I must unload and reload the ohci_hcd module to get it back.
> > 
> > Please recompile your kernel with CONFIG_USB_DEBUG and
> > send me your dmesg.
> > 
> > 	Regards
> > 		Oliver
> > 
> 
> Here is it:
> 

Please try the attached patch.

	Regards
		Oliver

[-- Attachment #2: hid_reset_resume.diff --]
[-- Type: text/x-diff, Size: 860 bytes --]

--- nexttree/drivers/hid/usbhid/hid-core.c.alt	2009-02-17 21:39:45.000000000 +0100
+++ nexttree/drivers/hid/usbhid/hid-core.c	2009-02-17 21:39:57.000000000 +0100
@@ -1333,6 +1333,15 @@ static int hid_post_reset(struct usb_int
 	return 0;
 }
 
+static int hid_reset_resume(struct usb_interface *intf)
+{
+	struct hid_device *hid = usb_get_intfdata(intf);
+	struct usbhid_device *usbhid = hid->driver_data;
+
+	clear_bit(HID_REPORTED_IDLE, &usbhid->iofl);
+	return hid_post_reset(intf);
+}
+
 int usbhid_get_power(struct hid_device *hid)
 {
 	struct usbhid_device *usbhid = hid->driver_data;
@@ -1362,7 +1371,7 @@ static struct usb_driver hid_driver = {
 #ifdef CONFIG_PM
 	.suspend =	hid_suspend,
 	.resume =	hid_resume,
-	.reset_resume =	hid_post_reset,
+	.reset_resume =	hid_reset_resume,
 #endif
 	.pre_reset =	hid_pre_reset,
 	.post_reset =	hid_post_reset,

  parent reply	other threads:[~2009-02-17 20:42 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-16  6:20 linux-next: Tree for February 16 Stephen Rothwell
2009-02-16  8:54 ` next Feb 16 build break [usb/host/fhci-*] Sachin P. Sant
     [not found]   ` <499929CB.2030004-xthvdsQ13ZrQT0dZR+AlfA@public.gmane.org>
2009-02-16 10:13     ` Stephen Rothwell
2009-02-16 13:40       ` [Patch - Next] [USB/FHCI] use dev_name() in place of bus_id Sachin P. Sant
     [not found]         ` <49996CBB.7040007-xthvdsQ13ZrQT0dZR+AlfA@public.gmane.org>
2009-02-16 13:48           ` Anton Vorontsov
2009-02-16 16:46 ` [PATCH -next] staging/phison: fix kconfig for clean build Randy Dunlap
2009-02-17  0:55 ` next-20090216: slqb Alexey Dobriyan
2009-02-17 10:27   ` Nick Piggin
2009-02-17 11:31     ` Pekka Enberg
2009-02-17 12:48       ` Peter Zijlstra
2009-02-17  9:55 ` linux-next: USB mouse won't work after resume Laurent Riffard
2009-02-17 10:35   ` Oliver Neukum
     [not found]     ` <200902171135.13329.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2009-02-17 13:37       ` Laurent Riffard
2009-02-17 15:12         ` Alan Stern
2009-02-17 20:42         ` Oliver Neukum [this message]
2009-02-17 21:05           ` Alan Stern
2009-02-18  9:51             ` Jiri Slaby
2009-02-18  0:31           ` Laurent Riffard
2009-02-18  8:47             ` Oliver Neukum
     [not found]           ` <200902172142.57302.oliver-GvhC2dPhHPQdnm+yROfE0A@public.gmane.org>
2009-02-18 16:51             ` Alan Stern
2009-02-18 17:06               ` Oliver Neukum

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=200902172142.57302.oliver@neukum.org \
    --to=oliver@neukum.org \
    --cc=laurent.riffard@free.fr \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=sfr@canb.auug.org.au \
    /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).