Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754239AbZAZTFX (ORCPT ); Mon, 26 Jan 2009 14:05:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753666AbZAZTEj (ORCPT ); Mon, 26 Jan 2009 14:04:39 -0500 Received: from smtp-out003.kontent.com ([81.88.40.217]:47990 "EHLO smtp-out003.kontent.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753584AbZAZTEi (ORCPT ); Mon, 26 Jan 2009 14:04:38 -0500 From: Oliver Neukum Organization: Novell To: Folkert van Heusden , linux-input@vger.kernel.org Subject: Re: 2.6.29rc1 breakes usb: hiddev device no longer available Date: Mon, 26 Jan 2009 20:05:07 +0100 User-Agent: KMail/1.9.10 Cc: linux-kernel@vger.kernel.org References: <20090126170130.GG6158@vanheusden.com> <20090126182707.GI6158@vanheusden.com> In-Reply-To: <20090126182707.GI6158@vanheusden.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901262005.08168.oliver@neukum.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1158 Lines: 34 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; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/