mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Bruno Prémont" <bonbons@linux-vserver.org>
To: Jiri Kosina <jkosina@suse.cz>
Cc: Oliver Neukum <oneukum@suse.de>,
	linux-pm@lists.linux-foundation.org,
	list <linux-usb@vger.kernel.org>,
	Kernel development list <linux-kernel@vger.kernel.org>,
	Alan Stern <stern@rowland.harvard.edu>
Subject: Re: [linux-pm] s2ram slow (radeon) / failing (usb)
Date: Wed, 5 May 2010 21:17:42 +0200	[thread overview]
Message-ID: <20100505211742.1cb4e448@neptune.home> (raw)
In-Reply-To: <alpine.LNX.2.00.1005051457460.9849@pobox.suse.cz>

On Wed, 05 May 2010 Jiri Kosina <jkosina@suse.cz> wrote:

> On Tue, 4 May 2010, Bruno Prémont wrote:
> 
> > > Bruno, could you, for testing purposes, check, whether the patch below 
> > > changes the behavior you are seeing (and also check what the actual return 
> > > value from device_add() was, see the added printk()).
> > 
> > Well, it's said to return 0:
> > 
> > [  286.872739] generic-usb 0003:058F:9462.0003: input: USB HID v1.10 Keyboard [Multimedia USB Keyboard Multimedia USB Keyboard] on usb-0000:00:13.0-2.1/input0
> > [  286.890136] HID: device_add() returned 0
> > 
> > [  286.919698] generic-usb: probe of 0003:058F:9462.0004 failed with error -22
> > [  286.929363] HID: device_add() returned 0
> > 
> > or with debug=1 for HID:
> > [  559.982958] /usr/src/linux-2.6-git/drivers/hid/usbhid/hid-core.c: HID probe called for ifnum 1
> > [  560.011698] /usr/src/linux-2.6-git/drivers/hid/hid-core.c: usage index exceeded
> > [  560.011704] /usr/src/linux-2.6-git/drivers/hid/hid-core.c: hid_add_usage failed
> > [  560.011710] /usr/src/linux-2.6-git/drivers/hid/hid-core.c: item 0 2 2 2 parsing failed
> > [  560.011732] /usr/src/linux-2.6-git/drivers/hid/usbhid/hid-core.c: parsing report descriptor failed
> > [  560.011747] generic-usb: probe of 0003:058F:9462.0006 failed with error -22
> > [  560.021718] HID: device_add() returned 0
> 
> Could you please verify with this patch? Thanks.

No difference, the second interface remains registered with HID bus
and I don't spot any difference in kernel log.

Going to have a look at what probe exactly it's that returns -EINVAL
and then attempt to unroll it up to device_add() ...
Hopefully I will find the function that does not hand back the failure.

Thanks,
Bruno

>  drivers/hid/hid-core.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/hid/hid-core.c b/drivers/hid/hid-core.c
> index 2e2aa75..8df19d3 100644
> --- a/drivers/hid/hid-core.c
> +++ b/drivers/hid/hid-core.c
> @@ -1486,8 +1486,10 @@ static int hid_device_probe(struct device *dev)
>  			if (!ret)
>  				ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
>  		}
> -		if (ret)
> +		if (ret) {
>  			hdev->driver = NULL;
> +			ret = -ENODEV;
> +		}
>  	}
>  	return ret;
>  }
> 

  reply	other threads:[~2010-05-05 19:18 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-02 13:56 Bruno Prémont
2010-05-02 15:07 ` Alan Stern
2010-05-02 20:06   ` Bruno Prémont
2010-05-02 20:16     ` Rafael J. Wysocki
2010-05-02 20:56       ` Bruno Prémont
2010-05-02 22:04       ` Alan Stern
2010-05-02 21:59     ` Alan Stern
2010-05-03  6:34       ` Bruno Prémont
2010-05-03 13:57         ` Alan Stern
2010-05-03 14:48           ` Bruno Prémont
2010-05-03 15:04             ` Alan Stern
2010-05-03 19:23               ` Bruno Prémont
2010-05-03 19:39                 ` Alan Stern
2010-05-03 19:46           ` Bruno Prémont
2010-05-03 20:11             ` Alan Stern
2010-05-03 20:57               ` Bruno Prémont
2010-05-03 21:11                 ` Bruno Prémont
2010-05-04  6:42                   ` [linux-pm] " Oliver Neukum
2010-05-04  8:37                     ` Jiri Kosina
2010-05-04 21:04                       ` Bruno Prémont
2010-05-05 12:58                         ` Jiri Kosina
2010-05-05 19:17                           ` Bruno Prémont [this message]
2010-05-05 20:30                       ` Bruno Prémont
2010-05-05 20:53                         ` Bruno Prémont
2010-05-05 20:55                           ` Jiri Kosina
2010-05-05 21:35                             ` Alan Stern
2010-05-06 17:47                               ` Bruno Prémont
2010-05-06 18:40                                 ` Alan Stern
2010-05-06 20:59                                   ` Bruno Prémont
2010-05-07  8:29                                   ` Jiri Kosina
2010-05-07 21:18 ` s2ram slow resume - radeon versus no_console_suspend? Bruno Prémont

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=20100505211742.1cb4e448@neptune.home \
    --to=bonbons@linux-vserver.org \
    --cc=jkosina@suse.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@lists.linux-foundation.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=oneukum@suse.de \
    --cc=stern@rowland.harvard.edu \
    /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

all inboxes | Powered by JetHome®