* Re: 2.6.29rc1 breakes usb: hiddev device no longer available
[not found] ` <20090126182707.GI6158@vanheusden.com>
@ 2009-01-26 19:05 ` Oliver Neukum
2009-01-27 19:52 ` Folkert van Heusden
0 siblings, 1 reply; 3+ messages in thread
From: Oliver Neukum @ 2009-01-26 19:05 UTC (permalink / raw)
To: Folkert van Heusden, linux-input; +Cc: linux-kernel
Am Monday 26 January 2009 19:27:07 schrieb Folkert van Heusden:
> > Since version 2.6.29rc1 querying cleware USb devices no longer works.
> > 2.6.28 works fine. 2.6.29-rc2 also no longer works.
>
> the is the FAILURE situation (2.6.29-rc*):
> open("/dev/usb/hiddev0", O_RDWR) = 3
> ioctl(3, HIDIOCGDEVINFO, 0xbf90c0d8) = 0
> ioctl(3, HIDIOCAPPLICATION, 0) = -6291455
> ioctl(3, HIDIOCGSTRING, 0x804e2c0) = -1 ENODEV (No such device)
Please try this patch.
Regards
Oliver
--
--- linux-2.6/drivers/hid/usbhid/hiddev.c.alt 2009-01-26 20:03:10.000000000 +0100
+++ linux-2.6/drivers/hid/usbhid/hiddev.c 2009-01-26 20:03:17.000000000 +0100
@@ -656,7 +656,7 @@ static long hiddev_ioctl(struct file *fi
case HIDIOCGSTRING:
mutex_lock(&hiddev->existancelock);
- if (!hiddev->exist)
+ if (hiddev->exist)
r = hiddev_ioctl_string(hiddev, cmd, user_arg);
else
r = -ENODEV;
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.6.29rc1 breakes usb: hiddev device no longer available
2009-01-26 19:05 ` 2.6.29rc1 breakes usb: hiddev device no longer available Oliver Neukum
@ 2009-01-27 19:52 ` Folkert van Heusden
2009-02-02 12:33 ` Jiri Kosina
0 siblings, 1 reply; 3+ messages in thread
From: Folkert van Heusden @ 2009-01-27 19:52 UTC (permalink / raw)
To: Oliver Neukum; +Cc: linux-input, linux-kernel
> > > Since version 2.6.29rc1 querying cleware USb devices no longer works.
> > > 2.6.28 works fine. 2.6.29-rc2 also no longer works.
> >
>
> > the is the FAILURE situation (2.6.29-rc*):
> > open("/dev/usb/hiddev0", O_RDWR) = 3
> > ioctl(3, HIDIOCGDEVINFO, 0xbf90c0d8) = 0
> > ioctl(3, HIDIOCAPPLICATION, 0) = -6291455
> > ioctl(3, HIDIOCGSTRING, 0x804e2c0) = -1 ENODEV (No such device)
> Please try this patch.
Yes, that fixes it! Thanks!
Ack-by: folkert@vanheusden.com
> --- linux-2.6/drivers/hid/usbhid/hiddev.c.alt 2009-01-26 20:03:10.000000000 +0100
> +++ linux-2.6/drivers/hid/usbhid/hiddev.c 2009-01-26 20:03:17.000000000 +0100
> @@ -656,7 +656,7 @@ static long hiddev_ioctl(struct file *fi
>
> case HIDIOCGSTRING:
> mutex_lock(&hiddev->existancelock);
> - if (!hiddev->exist)
> + if (hiddev->exist)
> r = hiddev_ioctl_string(hiddev, cmd, user_arg);
> else
> r = -ENODEV;
Folkert van Heusden
--
MultiTail è uno flexible tool per seguire di logfiles e effettuazione
di commissioni. Feltrare, provedere da colore, merge, 'diff-view',
etc. http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 2.6.29rc1 breakes usb: hiddev device no longer available
2009-01-27 19:52 ` Folkert van Heusden
@ 2009-02-02 12:33 ` Jiri Kosina
0 siblings, 0 replies; 3+ messages in thread
From: Jiri Kosina @ 2009-02-02 12:33 UTC (permalink / raw)
To: Folkert van Heusden; +Cc: Oliver Neukum, linux-input, linux-kernel
On Tue, 27 Jan 2009, Folkert van Heusden wrote:
> > > > Since version 2.6.29rc1 querying cleware USb devices no longer works.
> > > > 2.6.28 works fine. 2.6.29-rc2 also no longer works.
> > > the is the FAILURE situation (2.6.29-rc*):
> > > open("/dev/usb/hiddev0", O_RDWR) = 3
> > > ioctl(3, HIDIOCGDEVINFO, 0xbf90c0d8) = 0
> > > ioctl(3, HIDIOCAPPLICATION, 0) = -6291455
> > > ioctl(3, HIDIOCGSTRING, 0x804e2c0) = -1 ENODEV (No such device)
> > Please try this patch.
> Yes, that fixes it! Thanks!
Fixed in Linus' tree now. Thanks,
--
Jiri Kosina
SUSE Labs
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-02 12:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20090126170130.GG6158@vanheusden.com>
[not found] ` <20090126182707.GI6158@vanheusden.com>
2009-01-26 19:05 ` 2.6.29rc1 breakes usb: hiddev device no longer available Oliver Neukum
2009-01-27 19:52 ` Folkert van Heusden
2009-02-02 12:33 ` Jiri Kosina
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).