mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Justin Piszcz <jpiszcz@lucidpixels.com>
To: Oliver Neukum <oneukum@suse.de>
Cc: linux-usb-devel@lists.sourceforge.net,
	Jiri Kosina <jikos@jikos.cz>,
	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)
Date: Sun, 3 Jun 2007 08:29:35 -0400 (EDT)	[thread overview]
Message-ID: <Pine.LNX.4.64.0706030828460.3790@p34.internal.lan> (raw)
In-Reply-To: <200706031254.52434.oneukum@suse.de>



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.

  reply	other threads:[~2007-06-03 12:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-02 22:43 Justin Piszcz
2007-06-03  9:49 ` Jiri Kosina
2007-06-03 10:36   ` Justin Piszcz
2007-06-03 10:54     ` Oliver Neukum
2007-06-03 12:29       ` Justin Piszcz [this message]
2007-06-03 11:00     ` Jiri Kosina
2007-06-03 11:16       ` Justin Piszcz
2007-06-03 11:22         ` Jiri Kosina
2007-06-03 11:52           ` Justin Piszcz
2007-06-03 12:35             ` Kay Sievers
2007-06-03 12:40               ` Justin Piszcz
2007-06-03 12:44                 ` Justin Piszcz
2007-06-03 16:51                 ` Kay Sievers
2007-06-03  9:55 ` Jiri Kosina
2007-06-03 10:48   ` [linux-usb-devel] " 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=Pine.LNX.4.64.0706030828460.3790@p34.internal.lan \
    --to=jpiszcz@lucidpixels.com \
    --cc=jikos@jikos.cz \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    --cc=oneukum@suse.de \
    /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®