From owner-freebsd-usb@FreeBSD.ORG Tue Aug 12 14:53:26 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D781ED94 for ; Tue, 12 Aug 2014 14:53:26 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C01F32A29 for ; Tue, 12 Aug 2014 14:53:26 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s7CErQ7u013179 for ; Tue, 12 Aug 2014 14:53:26 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 183728] libusb20 examples filenames cause problems on windows. Date: Tue, 12 Aug 2014 14:53:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: Issue Resolved X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 14:53:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=183728 Ed Maste changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Discussion |Issue Resolved Resolution|--- |FIXED --- Comment #4 from Ed Maste --- now merged to stable/10 -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Tue Aug 12 14:53:30 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5DDCEDC6 for ; Tue, 12 Aug 2014 14:53:30 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 467C12A2E for ; Tue, 12 Aug 2014 14:53:30 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s7CErUNu013832 for ; Tue, 12 Aug 2014 14:53:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 183728] libusb20 examples filenames cause problems on windows. Date: Tue, 12 Aug 2014 14:53:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@freebsd.org X-Bugzilla-Status: Issue Resolved X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 14:53:30 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=183728 --- Comment #5 from commit-hook@freebsd.org --- A commit references this bug: Author: emaste Date: Tue Aug 12 14:53:03 UTC 2014 New revision: 269879 URL: http://svnweb.freebsd.org/changeset/base/269879 Log: MFC cleanup of libusb20 example r257779 by hselasky: - Use libusb20_strerror() function instead of custom usb_error() one. - Rename "aux.[ch]" to "util.[ch]" which is a more common name for utility functions and allows checkout on some non-FreeBSD systems where the "aux.*" namespace is reserved. - Fix some compile warnings while at it. r257796 by glebius: Finish r257779. PR: 183728 Changes: _U stable/10/ stable/10/ObsoleteFiles.inc stable/10/share/examples/Makefile stable/10/share/examples/libusb20/Makefile stable/10/share/examples/libusb20/aux.c stable/10/share/examples/libusb20/aux.h stable/10/share/examples/libusb20/bulk.c stable/10/share/examples/libusb20/control.c stable/10/share/examples/libusb20/util.c stable/10/share/examples/libusb20/util.h -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Tue Aug 12 18:48:15 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8603AB6D; Tue, 12 Aug 2014 18:48:15 +0000 (UTC) Received: from mail-oa0-x22b.google.com (mail-oa0-x22b.google.com [IPv6:2607:f8b0:4003:c02::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4766A3F85; Tue, 12 Aug 2014 18:48:15 +0000 (UTC) Received: by mail-oa0-f43.google.com with SMTP id i7so7636633oag.30 for ; Tue, 12 Aug 2014 11:48:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=C9q9hApBAXXOILqD6YApONwI3myRh7osvi/o1aH+BHE=; b=YUWAq1Tutkfwb34H1IanXwDSnWbf5mREfTO3jhf9ua/ySh94eqo4y0o5oIuolCnY4g J3c2eIZ1jwtwE5yl2MMaUEx83lNvreRv50y0VaqCOdyyOiZKtw/RtpjQV3OBbQEDdnGJ dvm9mm8pPXiC67iicKjajLPqFZrIfmoucwrBzf5sXkTVesFz6kFNSXv0cxss1m3P6XWS daOjRg1wHX32NOxuuusaMvOjcgpaxH/72vEI89kBg6g1hXCjbFMx3tbrUiOWtOdzhh5u u7EigG1Rtz3+34wAXizDc9SmaQbM3sW4PHRp+muinsqIhRFvh/RyEzOntNpKMEMBsOr7 8bNQ== MIME-Version: 1.0 X-Received: by 10.60.93.67 with SMTP id cs3mr6877218oeb.4.1407869294534; Tue, 12 Aug 2014 11:48:14 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.202.75.15 with HTTP; Tue, 12 Aug 2014 11:48:14 -0700 (PDT) Date: Tue, 12 Aug 2014 20:48:14 +0200 X-Google-Sender-Auth: gnu49SvyrU6MdUkpXdjIYm26vIU Message-ID: Subject: libusb-1.0 and freebsd libusb: libusb_handle_events_completed() missing? From: CeDeROM To: "freebsd-usb@FreeBSD.org" , hamradio@freebsd.org, bsd-ham@mailman.qth.net Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 18:48:15 -0000 Hello :-) I am working on GNURadio port for FreeBSD and try to make upstream patches :-) The libusb_handle_events_completed() function seemd to be missing in FreeBSD, while it is a parto of the LibUSB-1.0 API [1]. Are there any plans to add or wrap this function? [ 94%] Building C object gr-fcd/lib/CMakeFiles/gnuradio-fcd.dir/hid/hid-libusb.c.o /home/cederom/cederom/moje/prm/c/gnuradio/gnuradio-cederom.github/gr-fcd/lib/hid/hid-libusb.c:759:3: warning: implicit declaration of function 'libusb_handle_events_completed' is invalid in C99 [-Wimplicit-function-declaration] libusb_handle_events_completed(usb_context, &dev->cancelled); ^ 1 warning generated. Best regards, Tomek [1] http://libusb.sourceforge.net/api-1.0/group__poll.html#ga0bc99f39e4cf5ad393cd5936c36037d1 -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@FreeBSD.ORG Tue Aug 12 18:56:05 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 089F5D63; Tue, 12 Aug 2014 18:56:05 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BFAD72076; Tue, 12 Aug 2014 18:56:04 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 8DFA31FE027; Tue, 12 Aug 2014 20:56:02 +0200 (CEST) Message-ID: <53EA635B.1060003@selasky.org> Date: Tue, 12 Aug 2014 20:56:27 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: CeDeROM , "freebsd-usb@FreeBSD.org" , hamradio@freebsd.org, bsd-ham@mailman.qth.net Subject: Re: libusb-1.0 and freebsd libusb: libusb_handle_events_completed() missing? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 18:56:05 -0000 On 08/12/14 20:48, CeDeROM wrote: > Hello :-) > > I am working on GNURadio port for FreeBSD and try to make upstream > patches :-) The libusb_handle_events_completed() function seemd to be > missing in FreeBSD, while it is a parto of the LibUSB-1.0 API [1]. Are > there any plans to add or wrap this function? > > [ 94%] Building C object > gr-fcd/lib/CMakeFiles/gnuradio-fcd.dir/hid/hid-libusb.c.o > /home/cederom/cederom/moje/prm/c/gnuradio/gnuradio-cederom.github/gr-fcd/lib/hid/hid-libusb.c:759:3: > warning: implicit declaration of function > 'libusb_handle_events_completed' is invalid in > C99 [-Wimplicit-function-declaration] > libusb_handle_events_completed(usb_context, &dev->cancelled); > ^ > 1 warning generated. > > Best regards, > Tomek > > [1] http://libusb.sourceforge.net/api-1.0/group__poll.html#ga0bc99f39e4cf5ad393cd5936c36037d1 > It's there, but you maybe have to upgrade to -stable. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Aug 12 19:01:52 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 81FB5EF3 for ; Tue, 12 Aug 2014 19:01:52 +0000 (UTC) Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4C9AC215D for ; Tue, 12 Aug 2014 19:01:52 +0000 (UTC) Received: by mail-oi0-f49.google.com with SMTP id u20so6872019oif.36 for ; Tue, 12 Aug 2014 12:01:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=zmFq8QKJ0a/hbGavGupMIZG6uJDAslIFCU+5pa+9qAA=; b=i3w5kFpE53sgzPtkwQ/MRQx5N1g6wPbIzYGqODiqftvXatK7zzNORKya/uDyawUlR7 KLwz2l7nd4NPs4mZXDInRtH0pCUsLqUC7zeb/qKXQ8MhpTN/TQ20GiP2+8mY/618KOZv OBsl6fMPFMmdNz+jOWn3Da+wOjWrRXYHJupaFoNnoPEfPgG+b+dz4fr1NAQXOFrvAfiM k9hOoTimS05OLq+Dz2dHCUgEhTvsO/A2sR4WISGYBXDvedK/PopabC0QgTWpgPN0Q030 yq55O6x0Jjq4YDCTzHVJcJmB8RFRWzICWmeGjTt75SL1ormiWAHccLkf0spa3P+gpW0c gG3Q== MIME-Version: 1.0 X-Received: by 10.182.68.104 with SMTP id v8mr7084927obt.26.1407870111653; Tue, 12 Aug 2014 12:01:51 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.202.75.15 with HTTP; Tue, 12 Aug 2014 12:01:51 -0700 (PDT) In-Reply-To: <53EA635B.1060003@selasky.org> References: <53EA635B.1060003@selasky.org> Date: Tue, 12 Aug 2014 21:01:51 +0200 X-Google-Sender-Auth: b94DveAtgyW9r1T0Tl7INaqCpIc Message-ID: Subject: Re: libusb-1.0 and freebsd libusb: libusb_handle_events_completed() missing? From: CeDeROM To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Cc: bsd-ham@mailman.qth.net, "freebsd-usb@FreeBSD.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 19:01:52 -0000 On Tue, Aug 12, 2014 at 8:56 PM, Hans Petter Selasky wrote: >> I am working on GNURadio port for FreeBSD and try to make upstream >> patches :-) The libusb_handle_events_completed() function seemd to be >> missing in FreeBSD, while it is a parto of the LibUSB-1.0 API [1]. Are >> there any plans to add or wrap this function? > > It's there, but you maybe have to upgrade to -stable. > --HPS ACK! How should it be handled on previous releases? Is libusb_handle_events(NULL); instead enough? :-) Best regards, Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@FreeBSD.ORG Tue Aug 12 19:06:26 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3A6E6EC for ; Tue, 12 Aug 2014 19:06:26 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D1CC321A6 for ; Tue, 12 Aug 2014 19:06:25 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id F2B061FE027; Tue, 12 Aug 2014 21:06:23 +0200 (CEST) Message-ID: <53EA65C9.7000100@selasky.org> Date: Tue, 12 Aug 2014 21:06:49 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: CeDeROM Subject: Re: libusb-1.0 and freebsd libusb: libusb_handle_events_completed() missing? References: <53EA635B.1060003@selasky.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: bsd-ham@mailman.qth.net, "freebsd-usb@FreeBSD.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 19:06:26 -0000 On 08/12/14 21:01, CeDeROM wrote: > On Tue, Aug 12, 2014 at 8:56 PM, Hans Petter Selasky wrote: >>> I am working on GNURadio port for FreeBSD and try to make upstream >>> patches :-) The libusb_handle_events_completed() function seemd to be >>> missing in FreeBSD, while it is a parto of the LibUSB-1.0 API [1]. Are >>> there any plans to add or wrap this function? >> >> It's there, but you maybe have to upgrade to -stable. >> --HPS > > ACK! How should it be handled on previous releases? Is > libusb_handle_events(NULL); instead enough? :-) Hi, It cannot. The most simple solution is to only checkout libusb from -stable and: cd libusb make all install That's it. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Aug 12 19:24:44 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1CEAB8A1 for ; Tue, 12 Aug 2014 19:24:44 +0000 (UTC) Received: from mail-oa0-x229.google.com (mail-oa0-x229.google.com [IPv6:2607:f8b0:4003:c02::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DA7A224A9 for ; Tue, 12 Aug 2014 19:24:43 +0000 (UTC) Received: by mail-oa0-f41.google.com with SMTP id j17so7639657oag.14 for ; Tue, 12 Aug 2014 12:24:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=RhupI6x/raMJS9BStDB4mGtCw0jIQOJHHDrRxOcMTdA=; b=p95vTbAWQQjZqf9K81vDIZHkaWg7irC0IrWyHoQL3sMtRhgJgXymkGwOgHTG+4aIq/ auvxELgRRQKOApmsUPArZx9hOOHNOaZKq1hB0oBNX+g3Ebx3bvyjt66PtcWbvwwcLL2P uZm1RqAYiPCa04j39FQ0T1cFmBztL4+r6fGsx738KujY5SWNeknd44QhaKnJDnPzvx1I EvxiMzYrvdcJ7EjDdHcuOWxARUE3e6unsT7DpKjbzYTTmf0DVFsp+l1NMvoCStCe0X2h yURWx5hDStvQiIrdDb0/KRGOk7gRs91U+bfUxQ/tjJNigj4ubN40UCf0sF+cOPhQ1aNW UIjg== MIME-Version: 1.0 X-Received: by 10.60.119.98 with SMTP id kt2mr7133559oeb.13.1407871483054; Tue, 12 Aug 2014 12:24:43 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.202.75.15 with HTTP; Tue, 12 Aug 2014 12:24:43 -0700 (PDT) In-Reply-To: <53EA65C9.7000100@selasky.org> References: <53EA635B.1060003@selasky.org> <53EA65C9.7000100@selasky.org> Date: Tue, 12 Aug 2014 21:24:43 +0200 X-Google-Sender-Auth: MgfqB8CpLY534tD9CmHikm7nsqw Message-ID: Subject: Re: libusb-1.0 and freebsd libusb: libusb_handle_events_completed() missing? From: CeDeROM To: Hans Petter Selasky Content-Type: text/plain; charset=UTF-8 Cc: bsd-ham@mailman.qth.net, "freebsd-usb@FreeBSD.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 19:24:44 -0000 On Tue, Aug 12, 2014 at 9:06 PM, Hans Petter Selasky wrote: >> ACK! How should it be handled on previous releases? Is >> libusb_handle_events(NULL); instead enough? :-) > > It cannot. > The most simple solution is to only checkout libusb from -stable and: > cd libusb > make all install > That's it. > --HPS How about building this existing GURadio code on FreeBSD 10 or 9 or 8 before patch was made, that is where libusb_handle_events_completed() is still missing? Thank for hints! :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@FreeBSD.ORG Tue Aug 12 19:32:00 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CE0A9B99 for ; Tue, 12 Aug 2014 19:32:00 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8FAB62570 for ; Tue, 12 Aug 2014 19:32:00 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id A8E6A1FE027; Tue, 12 Aug 2014 21:31:58 +0200 (CEST) Message-ID: <53EA6BC8.5060601@selasky.org> Date: Tue, 12 Aug 2014 21:32:24 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: CeDeROM Subject: Re: libusb-1.0 and freebsd libusb: libusb_handle_events_completed() missing? References: <53EA635B.1060003@selasky.org> <53EA65C9.7000100@selasky.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: bsd-ham@mailman.qth.net, "freebsd-usb@FreeBSD.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 19:32:00 -0000 On 08/12/14 21:24, CeDeROM wrote: > On Tue, Aug 12, 2014 at 9:06 PM, Hans Petter Selasky wrote: >>> ACK! How should it be handled on previous releases? Is >>> libusb_handle_events(NULL); instead enough? :-) >> >> It cannot. >> The most simple solution is to only checkout libusb from -stable and: >> cd libusb >> make all install >> That's it. >> --HPS > > How about building this existing GURadio code on FreeBSD 10 or 9 or 8 > before patch was made, that is where libusb_handle_events_completed() > is still missing? > Hi, The new function that is needed by GNURadio only require changes inside libusb. It does not require anything from the kernel. --HPS From owner-freebsd-usb@FreeBSD.ORG Tue Aug 12 20:18:30 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DCD48E07; Tue, 12 Aug 2014 20:18:30 +0000 (UTC) Received: from diana.db.net (unknown [IPv6:2620:64:0:1:223:7dff:fea2:c8f2]) by mx1.freebsd.org (Postfix) with ESMTP id C50C22B1A; Tue, 12 Aug 2014 20:18:30 +0000 (UTC) Received: from night.db.net (localhost [127.0.0.1]) by diana.db.net (Postfix) with ESMTP id 8F7512AA3A2; Tue, 12 Aug 2014 14:18:26 -0600 (MDT) Received: by night.db.net (Postfix, from userid 1000) id 5F8171CC02; Tue, 12 Aug 2014 16:18:27 -0400 (EDT) Date: Tue, 12 Aug 2014 16:18:27 -0400 From: Diane Bruce To: Ham software for BSD systems Subject: Re: [BSD-Ham] libusb-1.0 and freebsd libusb: libusb_handle_events_completed() missing? Message-ID: <20140812201827.GA28877@night.db.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: hamradio@freebsd.org, "freebsd-usb@FreeBSD.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 20:18:30 -0000 On Tue, Aug 12, 2014 at 08:48:14PM +0200, CeDeROM wrote: > Hello :-) > > I am working on GNURadio port for FreeBSD and try to make upstream > patches :-) The libusb_handle_events_completed() function seemd to be > missing in FreeBSD, while it is a parto of the LibUSB-1.0 API [1]. Are > there any plans to add or wrap this function? I dealt with this already in the gnuradio port I did. It's present in later versions of libusb, but look the diffs I did to work around this for older libusb. Please.. There was no reason to spam everyone.. > > [ 94%] Building C object > gr-fcd/lib/CMakeFiles/gnuradio-fcd.dir/hid/hid-libusb.c.o > /home/cederom/cederom/moje/prm/c/gnuradio/gnuradio-cederom.github/gr-fcd/lib/hid/hid-libusb.c:759:3: > warning: implicit declaration of function > 'libusb_handle_events_completed' is invalid in > C99 [-Wimplicit-function-declaration] > libusb_handle_events_completed(usb_context, &dev->cancelled); > ^ > 1 warning generated. > > Best regards, > Tomek > > [1] http://libusb.sourceforge.net/api-1.0/group__poll.html#ga0bc99f39e4cf5ad393cd5936c36037d1 > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > ______________________________________________________________ > BSD-Ham mailing list > Home: http://mailman.qth.net/mailman/listinfo/bsd-ham > Help: http://mailman.qth.net/mmfaq.htm > Post: mailto:BSD-Ham@mailman.qth.net > > This list hosted by: http://www.qsl.net > Please help support this email list: http://www.qsl.net/donate.html -- - db@FreeBSD.org db@db.net http://www.db.net/~db From owner-freebsd-usb@FreeBSD.ORG Tue Aug 12 20:21:20 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7732F4DD for ; Tue, 12 Aug 2014 20:21:20 +0000 (UTC) Received: from diana.db.net (unknown [IPv6:2620:64:0:1:223:7dff:fea2:c8f2]) by mx1.freebsd.org (Postfix) with ESMTP id 5E20D2CB9 for ; Tue, 12 Aug 2014 20:21:20 +0000 (UTC) Received: from night.db.net (localhost [127.0.0.1]) by diana.db.net (Postfix) with ESMTP id C52112AA3A2; Tue, 12 Aug 2014 14:21:17 -0600 (MDT) Received: by night.db.net (Postfix, from userid 1000) id 056141CC16; Tue, 12 Aug 2014 16:21:19 -0400 (EDT) Date: Tue, 12 Aug 2014 16:21:19 -0400 From: Diane Bruce To: Ham software for BSD systems Subject: Re: [BSD-Ham] libusb-1.0 and freebsd libusb: libusb_handle_events_completed() missing? Message-ID: <20140812202118.GC28877@night.db.net> References: <53EA635B.1060003@selasky.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "freebsd-usb@FreeBSD.org" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 20:21:20 -0000 On Tue, Aug 12, 2014 at 09:01:51PM +0200, CeDeROM wrote: > On Tue, Aug 12, 2014 at 8:56 PM, Hans Petter Selasky wrote: > >> I am working on GNURadio port for FreeBSD and try to make upstream > >> patches :-) The libusb_handle_events_completed() function seemd to be > >> missing in FreeBSD, while it is a parto of the LibUSB-1.0 API [1]. Are > >> there any plans to add or wrap this function? > > > > It's there, but you maybe have to upgrade to -stable. > > --HPS > > ACK! How should it be handled on previous releases? Is > libusb_handle_events(NULL); instead enough? :-) I handled it already in the gnuradio port for months and months already. Please look. > > Best regards, > Tomek > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > ______________________________________________________________ > BSD-Ham mailing list > Home: http://mailman.qth.net/mailman/listinfo/bsd-ham > Help: http://mailman.qth.net/mmfaq.htm > Post: mailto:BSD-Ham@mailman.qth.net > > This list hosted by: http://www.qsl.net > Please help support this email list: http://www.qsl.net/donate.html -- - db@FreeBSD.org db@db.net http://www.db.net/~db From owner-freebsd-usb@FreeBSD.ORG Tue Aug 12 20:23:00 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0FF84619 for ; Tue, 12 Aug 2014 20:23:00 +0000 (UTC) Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com [IPv6:2607:f8b0:4003:c06::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CDEA82CD6 for ; Tue, 12 Aug 2014 20:22:59 +0000 (UTC) Received: by mail-oi0-f49.google.com with SMTP id u20so6871873oif.8 for ; Tue, 12 Aug 2014 13:22:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=SqjYg9Woc6LLU9bjhrxmzCeRvJ6yeTFHZjHgxZV4vVI=; b=helCh3t6nk5pUxLi3qx9d90ULHAVURFl2eXIRl/4gF6RNaT25tXBJ5DeNy7tT99QgI tG/0cNuiq11iEbKP05WjYlXFdkHQyf9BMUaiMqfZHqoR+d3LSvYdYlPdvNcnWPIee1er 0da4fJixRYXgXOLQ6vpGLiPd1OSUC44GhlpcAg3rNnqnCBlxZfzkmKPIU6HkuAc4V3ZI G4bcVLv9U+FZMu9/DN7DjX18JJ3E8co4xJ1T6xnOxIYm9woi5UpyH29xiGIpo02X9rzB CyeoQgDO9hfiZihQl0jKSBJyQhpu6x6oEX+3IAUFHStV5LiNY+CCKMaWpUu1AKMgj5zc iQYw== MIME-Version: 1.0 X-Received: by 10.60.44.65 with SMTP id c1mr5488209oem.83.1407874979153; Tue, 12 Aug 2014 13:22:59 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.202.75.15 with HTTP; Tue, 12 Aug 2014 13:22:59 -0700 (PDT) In-Reply-To: <20140812201827.GA28877@night.db.net> References: <20140812201827.GA28877@night.db.net> Date: Tue, 12 Aug 2014 22:22:59 +0200 X-Google-Sender-Auth: 0kF-Vsr5IWqFEzjsFQMssAn-VVM Message-ID: Subject: Re: [BSD-Ham] libusb-1.0 and freebsd libusb: libusb_handle_events_completed() missing? From: CeDeROM To: Diane Bruce Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-usb@FreeBSD.org" , Ham software for BSD systems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 20:23:00 -0000 On Tue, Aug 12, 2014 at 10:18 PM, Diane Bruce wrote: > On Tue, Aug 12, 2014 at 08:48:14PM +0200, CeDeROM wrote: >> Hello :-) >> >> I am working on GNURadio port for FreeBSD and try to make upstream >> patches :-) The libusb_handle_events_completed() function seemd to be >> missing in FreeBSD, while it is a parto of the LibUSB-1.0 API [1]. Are >> there any plans to add or wrap this function? > > I dealt with this already in the gnuradio port I did. It's present > in later versions of libusb, but look the diffs I did to work around > this for older libusb. Please.. There was no reason to spam everyone.. Hello Diane :-) I am adapting patches from local port to GNURadio upstream so it builds smoothly straight away, as we talked in direct channel. Can I use Your patches? Building the sources from the upstream seems to be still missing :-) And we found out something new about libusb on FreeBSD :-) Best regards :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@FreeBSD.ORG Tue Aug 12 22:24:55 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 42F81BCB for ; Tue, 12 Aug 2014 22:24:55 +0000 (UTC) Received: from mail-oa0-x234.google.com (mail-oa0-x234.google.com [IPv6:2607:f8b0:4003:c02::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B6582D42 for ; Tue, 12 Aug 2014 22:24:54 +0000 (UTC) Received: by mail-oa0-f52.google.com with SMTP id o6so7702790oag.25 for ; Tue, 12 Aug 2014 15:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=6V/rny58s924EJvOqdJq/I6VM0H1NV9qCjubJwPBomc=; b=GU6oJxJS6ELG7+Jlo3KdHq4bjEj4anUclO6Cxmn7kgXgdKgOL2NzfE2eLbnE58IMo/ r8KBDhSk5EZWdiYf5ICJAlIRG3Fr6Mnp4HgnbeIip7INvpgSwCkIu1I9uiOHBIDUqOEs IgjHkBAp5b419yNG0v/LbUOJta2Ir9Om4QZC79hg8nkvlPI4nZHOl9nNw0YTvseEWITX t0bnrO8nVjVnaR0M/O+VhHcd5BScmbdwhhseVaQCxXdR4AHGyDswJ9jDUHe5LEuvNWk/ NwMiK4fZj9F4Mogeazj6RCUHZlycLu5DvHJrj7O6RDPFtXPyWUUHuQtKI5Ixnna/WoFK DB8Q== MIME-Version: 1.0 X-Received: by 10.60.70.169 with SMTP id n9mr765019oeu.62.1407882294328; Tue, 12 Aug 2014 15:24:54 -0700 (PDT) Sender: tomek.cedro@gmail.com Received: by 10.202.75.15 with HTTP; Tue, 12 Aug 2014 15:24:54 -0700 (PDT) In-Reply-To: <20140812202118.GC28877@night.db.net> References: <53EA635B.1060003@selasky.org> <20140812202118.GC28877@night.db.net> Date: Wed, 13 Aug 2014 00:24:54 +0200 X-Google-Sender-Auth: p_1T2ecUUCnU5a2_xdfnQTm7nDU Message-ID: Subject: Re: [BSD-Ham] libusb-1.0 and freebsd libusb: libusb_handle_events_completed() missing? From: CeDeROM To: Diane Bruce Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-usb@FreeBSD.org" , Ham software for BSD systems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2014 22:24:55 -0000 On Tue, Aug 12, 2014 at 10:21 PM, Diane Bruce wrote: > I handled it already in the gnuradio port for months and months already. > Please look. Aahh! Tanks! Nice trick! :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@FreeBSD.ORG Fri Aug 15 23:14:26 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9543769A for ; Fri, 15 Aug 2014 23:14:26 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7CA9D29C3 for ; Fri, 15 Aug 2014 23:14:26 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s7FNEQta015091 for ; Fri, 15 Aug 2014 23:14:26 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 185747] [cam] [patch] fix support for USB key "Kingston DT 101 G2" Date: Fri, 15 Aug 2014 23:14:26 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: comet.berkeley@gmail.com X-Bugzilla-Status: In Discussion X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2014 23:14:26 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=185747 Richard changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |comet.berkeley@gmail.com --- Comment #4 from Richard --- I concur that using the "usbconfig ... UQ_MSC_NO_PREVENT_ALLOW" command fixes the problem temporarily I run FreeBSD 10.0-RELEASE-p7 To fix the problem temporarily: 1) plug in the dongle 2) Run usbconfig to find the unit (5) and address (2) of the usb ugen5.2: at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA) 3) Run usbconfig again to set the flag: usbconfig -u 5 -a 2 add_quirk UQ_MSC_NO_PREVENT_ALLOW 4) unplug and replug the dongle. -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Sat Aug 16 07:04:56 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D3D16336 for ; Sat, 16 Aug 2014 07:04:56 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BBC852697 for ; Sat, 16 Aug 2014 07:04:56 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s7G74u1m002251 for ; Sat, 16 Aug 2014 07:04:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 185747] [cam] [patch] fix support for USB key "Kingston DT 101 G2" Date: Sat, 16 Aug 2014 07:04:56 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: In Discussion X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2014 07:04:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=185747 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hselasky@FreeBSD.org --- Comment #5 from Hans Petter Selasky --- Can you verify that you need the same quirk with a 10-stable kernel? --HPS -- You are receiving this mail because: You are the assignee for the bug. From owner-freebsd-usb@FreeBSD.ORG Sat Aug 16 18:06:02 2014 Return-Path: Delivered-To: freebsd-usb@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1020EB9E for ; Sat, 16 Aug 2014 18:06:02 +0000 (UTC) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EB4812698 for ; Sat, 16 Aug 2014 18:06:01 +0000 (UTC) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.14.9/8.14.9) with ESMTP id s7GI614b044775 for ; Sat, 16 Aug 2014 18:06:01 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 192710] New: Kingston DataTraveler 112 usb stick needs a quirk Date: Sat, 16 Aug 2014 18:06:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: comet.berkeley@gmail.com X-Bugzilla-Status: Needs Triage X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Aug 2014 18:06:02 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192710 Bug ID: 192710 Summary: Kingston DataTraveler 112 usb stick needs a quirk Product: Base System Version: 10.0-RELEASE Hardware: Any OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: usb Assignee: freebsd-usb@FreeBSD.org Reporter: comet.berkeley@gmail.com FreeBSD xxxxx 10.0-RELEASE-p7 FreeBSD 10.0-RELEASE-p7 #0: Tue Jul 8 06:37:44 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 I have 5 usb sticks including 3 Kingston sticks, but one of them does not work. #usbconfig -u 5 -a 2 dump_device_desc ugen5.2: at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0000 bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0040 idVendor = 0x0930 idProduct = 0x6544 bcdDevice = 0x0100 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 <001CC0C83C18C031642E0888> bNumConfigurations = 0x0001 Aug 15 07:58:55 vixen kernel: ugen5.2: at usbus5 Aug 15 07:58:55 vixen kernel: umass1: on usbus5 Aug 15 07:58:55 vixen kernel: umass1: SCSI over Bulk-Only; quirks = 0x0100 Aug 15 07:58:55 vixen kernel: umass1:7:1:-1: Attached to scbus7 Aug 15 07:58:55 vixen kernel: da5 at umass-sim1 bus 1 scbus7 target 0 lun 0 Aug 15 07:58:55 vixen kernel: da5: Removable Direct Access SCSI-2 device Aug 15 07:58:55 vixen kernel: da5: Serial Number 001CC0C8xxxxxxxxxxxxxxxx Aug 15 07:58:55 vixen kernel: da5: 40.000MB/s transfers Aug 15 07:58:55 vixen kernel: da5: 7643MB (15654848 512 byte sectors: 255H 63S/T 974C) Aug 15 07:58:55 vixen kernel: da5: quirks=0x2 Aug 15 07:58:55 vixen kernel: (da5:umass-sim1:1:0:0): got CAM status 0x50 Aug 15 07:58:55 vixen kernel: (da5:umass-sim1:1:0:0): fatal error, failed to attach to device Aug 15 07:58:55 vixen kernel: da5 at umass-sim1 bus 1 scbus7 target 0 lun 0 Aug 15 07:58:55 vixen kernel: da5: s/n 001CC0C8xxxxxxxxxxxxxxxx detached Aug 15 07:58:55 vixen kernel: (da5:umass-sim1:1:0:0): Periph destroyed After searching for "got CAM status 0x50" and reading bug 185747, I discovered that adding a quirk makes it work: 1) plug in the dongle 2) Run usbconfig to find the unit (5) and address (2) of the usb ugen5.2: at usbus5, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA) 3) Run usbconfig again to set the flag: usbconfig -u 5 -a 2 add_quirk UQ_MSC_NO_PREVENT_ALLOW 4) unplug and replug the dongle. -- You are receiving this mail because: You are the assignee for the bug.