public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Oliver Neukum <oneukum@suse.de>
To: Justin Piszcz <jpiszcz@lucidpixels.com>,
	linux-usb-devel@lists.sourceforge.net
Cc: 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 12:54:51 +0200	[thread overview]
Message-ID: <200706031254.52434.oneukum@suse.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0706030634400.3574@p34.internal.lan>

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

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

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-02 22:43 Kernel 2.6.22-rc3 breaks USB: Unable to get HID descriptor (error sending control message: Operation not permitted) Justin Piszcz
2007-06-03  9:49 ` Jiri Kosina
2007-06-03 10:36   ` Justin Piszcz
2007-06-03 10:54     ` Oliver Neukum [this message]
2007-06-03 12:29       ` Justin Piszcz
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=200706031254.52434.oneukum@suse.de \
    --to=oneukum@suse.de \
    --cc=jikos@jikos.cz \
    --cc=jpiszcz@lucidpixels.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb-devel@lists.sourceforge.net \
    /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