Re: [panic] Race in IEEE802.11 layer towards device drivers
On Tuesday 13 July 2010 03:54:08 PseudoCylon wrote: Should the debugging code, usb_pause_mtx(), be left in the code for testing? If the drivers don't panic to begin with, we won't know the patch really fixed the issue. No, I think it is safe to remove it. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: read(2) always returns 0 when reading from /dev/usb/n.m.k bulk IN endpoint
Hi, FYI: just tried using the short xfer ioctl, but the behavior didn't change. in = open (argv[0], O_RDONLY); ioctl(in, USB_SET_RX_SHORT_XFER, 1); n = read(in, buf, NBUF); now trying libusb for this. -- Peer On Mon, Jul 12, 2010 at 10:41 PM, Peer Stritzinger pee...@gmail.com wrote: Hi, On Mon, Jul 12, 2010 at 8:20 PM, Hans Petter Selasky hsela...@freebsd.org wrote: On Monday 12 July 2010 19:22:28 Peer Stritzinger wrote: However the read always returns 0. Tried different buffer sizes etc. Hi, Maybe you are missing to set the short transfer OK flag. Else I recommend using LibUSB. --HPS Did'nt set this flag (not doing any ioctls on the ugen device at all). However I did try matching either the max packetlen, or the read buffer size with the actual bytes sent, so I thought it shouldn't matter. I'll move on to libusb and not waste any more time with the raw interfaces. Thanks -- Peer ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: usb/146693: [rum] Edimax EW#8208; 7318USG not found in usbdevs or if_rum.c
Synopsis: [rum] Edimax EW#8208;7318USG not found in usbdevs or if_rum.c Responsible-Changed-From-To: freebsd-usb-thompsa Responsible-Changed-By: remko Responsible-Changed-When: Tue Jul 13 19:53:07 UTC 2010 Responsible-Changed-Why: Assign to Andrew, Andrew I tried to see what it takes to properly merge this, and anotate gives me that this might be revision 203134, which is the addition of run(4), but seems to include additional changes. http://www.freebsd.org/cgi/query-pr.cgi?pr=146693 ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: usb/148189: [usbdevs] [usb8] [patch] provide descriptive string for NEC EHCI 7-port USB hub
Synopsis: [usbdevs] [usb8] [patch] provide descriptive string for NEC EHCI 7-port USB hub Responsible-Changed-From-To: freebsd-usb-remko Responsible-Changed-By: remko Responsible-Changed-When: Tue Jul 13 20:09:26 UTC 2010 Responsible-Changed-Why: I'll take it. http://www.freebsd.org/cgi/query-pr.cgi?pr=148189 ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
libusb10: libusb_bulk_transfer returns LIBUSB_ERROR_OTHER caused by USB_FS_OPEN ioctl in ugen20_tr_open
Hi, with the setup from my post of yesterday I'm trying IN transfers with libusb 1.0 and now I'm a bit stuck. In essence I'm doing: cnt = libusb_get_device_list(NULL, list); ... find device - now in found if (found) { libusb_device_handle *handle; ... rv = libusb_open(found, handle); trans_len = 0; rv = libusb_bulk_transfer(handle, ep, buf, NBUF, trans_len, 0); What I get is rv - LIBUSB_ERROR_OTHER to get closer to re reason for this I debugged the last call into libusb The error return is caused in ugen20_tr_open(): ioctl(xfer-pdev-file, USB_FS_OPEN, temp) returns != 0, errno - EINVAL Params to this ioctl are: (gdb) p temp $1 = {max_bufsize = 16384, max_frames = 1, max_packet_length = 0, dev_index = 0 '\0', ep_index = 24 '\030', ep_no = 6 '\006'} (gdb) p *xfer $2 = {pdev = 0x282033c0, callback = 0x28094190 libusb10_bulk_intr_proxy, priv_sc0 = 0x282033c0, priv_sc1 = 0x28221060, ppBuffer = 0x2822208c, pLength = 0x28222088, maxTotalLength = 0, maxFrames = 1, nFrames = 0, aFrames = 0, timeout = 0, timeComplete = 0, trIndex = 24, maxPacketLen = 0, flags = 0 '\0', status = 0 '\0', is_opened = 0 '\0', is_pending = 0 '\0', is_cancel = 0 '\0', is_draining = 0 '\0', is_restart = 0 '\0'} (gdb) p *xfer-pdev $3 = {ddesc = {LIBUSB20_DEVICE_DESC_FORMAT = 0x2809abd4, bLength = 18 '\022', bDescriptorType = 1 '\001', bcdUSB = 512, bDeviceClass = 0 '\0', bDeviceSubClass = 0 '\0', bDeviceProtocol = 0 '\0', bMaxPacketSize0 = 64 '@', idVendor = 1133, idProduct = 49177, bcdDevice = 0, iManufacturer = 1 '\001', iProduct = 2 '\002', iSerialNumber = 0 '\0', bNumConfigurations = 1 '\001'}, session_data = { session_data = 1731721030, tv = {tv_sec = 1731721030, tv_nsec = 0}, plugtime = 1731721030}, dev_entry = {tqe_next = 0x0, tqe_prev = 0x28202030}, methods = 0x2809aac0, beMethods = 0x2809aa80, pTransfer = 0x28209c00, privBeData = 0x28215300, privLuData = 0x28207100, claimed_interface = 0 '\0', file = 12, file_ctrl = 11, debug = 0, nTransfer = 64, bus_number = 3 '\003', device_address = 2 '\002', usb_mode = 0 '\0', usb_speed = 3 '\003', is_opened = 1 '\001', usb_desc = ugen3.2: CY7C68001 Cypress at usbus3, '\0' repeats 57 times} BTW usb_desc is showing the right device. Any suggestions? Kind regards, Peer Stritzinger ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org