Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762001AbXFCM3n (ORCPT ); Sun, 3 Jun 2007 08:29:43 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759220AbXFCM3g (ORCPT ); Sun, 3 Jun 2007 08:29:36 -0400 Received: from lucidpixels.com ([75.144.35.66]:45747 "EHLO lucidpixels.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758536AbXFCM3g (ORCPT ); Sun, 3 Jun 2007 08:29:36 -0400 Date: Sun, 3 Jun 2007 08:29:35 -0400 (EDT) From: Justin Piszcz X-X-Sender: jpiszcz@p34.internal.lan To: Oliver Neukum cc: linux-usb-devel@lists.sourceforge.net, Jiri Kosina , linux-kernel@vger.kernel.org Subject: Re: Kernel 2.6.22-rc3 breaks USB: Unable to get HID descriptor (error sending control message: Operation not permitted) In-Reply-To: <200706031254.52434.oneukum@suse.de> Message-ID: References: <200706031254.52434.oneukum@suse.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1360 Lines: 43 On Sun, 3 Jun 2007, Oliver Neukum wrote: > Am Sonntag, 3. Juni 2007 12:36 schrieb Justin Piszcz: >> >> On Sun, 3 Jun 2007, Jiri Kosina wrote: >> >>> On Sat, 2 Jun 2007, Justin Piszcz wrote: > >>>> failed to claim USB device, trying 2 more time(s)... >>>> detaching kernel driver from USB device... >>> >>> Could you please provide strace outputs (or put it on the web somewhere if >>> it's too big) for the failing and succeeding claiming of the device? > > static int usbdev_ioctl(struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg) > { > struct dev_state *ps = file->private_data; > struct usb_device *dev = ps->dev; > void __user *p = (void __user *)arg; > int ret = -ENOTTY; > > if (!(file->f_mode & FMODE_WRITE)) > return -EPERM; > > That check fails as your application falls back to opening read only in > case of insufficient permissions. Did you change some udev rules? > > Regards > Oliver > Nope and just to verify that I made sure I tested this a couple times. Booted 2.6.21.3 no problems, then booted 2.6.23-rc3 w/out your patch, problem happens again. Justin. - 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/