Date: Fri, 29 Jul 2005 15:40:12 GMT From: Hans Petter Selasky <hselasky@c2i.net> To: freebsd-usb@FreeBSD.org Subject: Re: usb/83863: Communication problem between opensc/openct via USB with e-gate smart-card. Message-ID: <200507291540.j6TFeCJY019831@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR usb/83863; it has been noted by GNATS. From: Hans Petter Selasky <hselasky@c2i.net> To: Janos Mohacsi <mohacsi@niif.hu> Cc: bug-followup@freebsd.org, janos.mohacsi@bsd.hu Subject: Re: usb/83863: Communication problem between opensc/openct via USB with e-gate smart-card. Date: Fri, 29 Jul 2005 17:32:11 +0200 On Thursday 28 July 2005 19:12, Janos Mohacsi wrote: > Here I send several debuging output. > > relevant part of /var/log/debug: > > Jul 28 19:02:02 scone ifdhandler[71277]: ifd_sysdep_usb_control: BSD: > CTRL bmRequestType 0x40 bRequest 0x80 wValue 0x0 wIndex > 0x0 wLength 0x5 > Jul 28 19:02:02 scone ifdhandler[71277]: ifd_sysdep_usb_control: BSD: > CTRL SEND data c0 a4 00 00 02 > Jul 28 19:02:02 scone ifdhandler[71277]: ifd_sysdep_usb_control: > USB_DO_REQUEST failed: -1 > Jul 28 19:02:02 scone ifdhandler[71277]: ifd_protocol_transceive: > transceive error: Communication error > Jul 28 19:02:02 scone ifdhandler[71277]: ifdhandler_unlock_all: released > excl lock 0 for slot 0 by uid=4294967294 > Jul 28 19:02:03 scone ifdhandler[71277]: eg_card_status: slot=0 ... > Jul 28 19:02:02 scone kernel: usb_schedsoftintr: polling=0 > Jul 28 19:02:02 scone kernel: usb_transfer_complete: pipe=0xc2ee7380 > xfer=0xc43ca200 status=17 actlen=5 > Jul 28 19:02:02 scone kernel: usb_freemem: frag=0xc1a81b80 > Jul 28 19:02:02 scone kernel: usb_transfer_complete: repeat=0 new head=0 > Jul 28 19:02:02 scone kernel: usbd_start_next: pipe=0xc2ee7380, xfer=0 > Jul 28 19:02:02 scone kernel: usbd_transfer: xfer=0xc43ca200, flags=2, > pipe=0xc2ee7380, running=0 > Jul 28 19:02:02 scone kernel: usbd_dump_queue: pipe=0xc2ee7380 > Jul 28 19:02:02 scone kernel: usb_allocmem: use frag=0xc1a81b80 size=2 > Jul 28 19:02:02 scone kernel: usb_insert_transfer: pipe=0xc2ee7380 > running=0 timeout=5000 What USB controller are you using: EHCI/UHCI/OHCI ? Is the device connected through a HUB? "status=17" means that the control transfer timed out. From what I can see there are two reasons for this: 1) Something went wrong with the USB controller's transfer schedule or you lost an interrupt. If you want, you can install my USB driver and see if there is any change. Post output from dmsg. Download the three files below into a new directory and type "make install" (to uninstall type "make deinstall") http://home.c2i.net/hselasky/isdn4bsd/privat/usb/Makefile http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.diff.bz2 http://home.c2i.net/hselasky/isdn4bsd/privat/usb/new_usb_1_5_4.tar.bz2 2) Your device did not respond. Maybe "ifdhandler" can repeat the transfer if it fails ? --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507291540.j6TFeCJY019831>