Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 2008 18:04:00 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        Stefan Ehmann <shoesoft@gmx.net>
Cc:        freebsd-current@freebsd.org
Subject:   Re: usb2: scanner no longer working
Message-ID:  <200811131804.01754.hselasky@c2i.net>
In-Reply-To: <200811131735.31998.shoesoft@gmx.net>
References:  <200811071134.42761.shoesoft@gmx.net> <200811131657.56355.hselasky@c2i.net> <200811131735.31998.shoesoft@gmx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 13 November 2008, Stefan Ehmann wrote:
> On Thursday 13 November 2008 16:57:55 Hans Petter Selasky wrote:
> > On Thursday 13 November 2008, Stefan Ehmann wrote:
> > > On Friday 07 November 2008 19:35:17 Hans Petter Selasky wrote:
> > > > On Friday 07 November 2008, Stefan Ehmann wrote:
> > > > > On Friday 07 November 2008 18:42:49 Hans Petter Selasky wrote:
> > > > > > On Friday 07 November 2008, Hans Petter Selasky wrote:

You could also try:

sysctl hw.usb2.dev.debug=15

I have a patch which you can try. Apply to libusb20.c the following diff:

==== src/lib/libusb20/libusb20.c#9 - src/lib/libusb20/libusb20.c ====
@@ -886,7 +886,7 @@
 void
 libusb20_dev_wait_process(struct libusb20_device *pdev, int timeout)
 {
-       struct pollfd pfd[2];
+       struct pollfd pfd[1];
 
        if (!pdev->is_opened) {
                return;
@@ -894,11 +894,8 @@
        pfd[0].fd = pdev->file;
        pfd[0].events = (POLLIN | POLLOUT | POLLRDNORM | POLLWRNORM);
        pfd[0].revents = 0;
-       pfd[1].fd = 0;                  /* standard input */
-       pfd[1].events = (POLLIN | POLLRDNORM);
-       pfd[1].revents = 0;
 
-       if (poll(pfd, 2, timeout)) {
+       if (poll(pfd, 1, timeout)) {
                /* ignore any error */
        }
        return;


--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811131804.01754.hselasky>