Re: usb/185454: libusb lacks libusb_handle_events_completed()

2014-02-04 Thread tijl
Synopsis: libusb lacks libusb_handle_events_completed()

State-Changed-From-To: open-closed
State-Changed-By: tijl
State-Changed-When: Tue Feb 4 17:48:25 CET 2014
State-Changed-Why: 
MFCed down to stable/8.

http://www.freebsd.org/cgi/query-pr.cgi?pr=185454
___
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


usb/185454: libusb lacks libusb_handle_events_completed()

2014-01-03 Thread Tijl Coosemans

Number: 185454
Category:   usb
Synopsis:   libusb lacks libusb_handle_events_completed()
Confidential:   no
Severity:   non-critical
Priority:   low
Responsible:freebsd-usb
State:  open
Quarter:
Keywords:   
Date-Required:
Class:  change-request
Submitter-Id:   current-users
Arrival-Date:   Fri Jan 03 19:50:00 UTC 2014
Closed-Date:
Last-Modified:
Originator: Tijl Coosemans
Release:FreeBSD 11.0-CURRENT i386
Organization:
Environment:
Description:
The FreeBSD implementation of the libusb 1.0 API lacks these two functions:
int libusb_handle_events_completed(libusb_context *ctx, int *completed)
int libusb_handle_events_timeout_completed(libusb_context *ctx,
struct timeval *tv, int *completed)
How-To-Repeat:
Fix:

Release-Note:
Audit-Trail:
Unformatted:
___
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/107243: [usb67] [cam] [quirk] [patch] Apacer USB Flash Drive quirk

2010-07-28 Thread tijl
Synopsis: [usb67] [cam] [quirk] [patch] Apacer USB Flash Drive quirk

State-Changed-From-To: open-patched
State-Changed-By: tijl
State-Changed-When: Wed Jul 28 18:56:48 UTC 2010
State-Changed-Why: 
Modified patch committed to HEAD.


Responsible-Changed-From-To: freebsd-usb-tijl
Responsible-Changed-By: tijl
Responsible-Changed-When: Wed Jul 28 18:56:48 UTC 2010
Responsible-Changed-Why: 
Take my own PR.

http://www.freebsd.org/cgi/query-pr.cgi?pr=107243
___
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/107243: [usb67] [cam] [quirk] [patch] Apacer USB Flash Drive quirk

2009-08-27 Thread Tijl Coosemans
On Tuesday 25 August 2009 14:53:58 ga...@freebsd.org wrote:
 Old Synopsis: [cam] [patch] Apacer USB Flash Drive quirk
 New Synopsis: [usb67] [cam] [quirk] [patch] Apacer USB Flash Drive quirk
 
 State-Changed-From-To: open-feedback
 State-Changed-By: gavin
 State-Changed-When: Tue Aug 25 12:52:05 UTC 2009
 State-Changed-Why: 
 To submitter:  Do you know if this issue has ever been resolved?  Also, do
 you know if this is still an issue with the new USB stack found in FreeBSD 8?
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=107243

It's still an issue on today's 7-stable.
I currently don't have time to upgrade to 8 so I don't know about that.

I've attached an updated patch for 7-stable, because the old one
doesn't apply anymore.

And here's dmesg output (btw, vendor id isn't recognised either):

umass0: vendor 0x1005 USB FLASH DRIVE, class 0/0, rev 2.00/0.50, addr 2 on 
uhub3
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI Status: Check Condition
(probe0:umass-sim0:0:0:0): UNIT ATTENTION asc:28,0
(probe0:umass-sim0:0:0:0): Not ready to ready change, medium may have changed
(probe0:umass-sim0:0:0:0): Retrying Command (per Sense Data)
da0 at umass-sim0 bus 0 target 0 lun 0
da0:  USB FLASH DRIVE 1.01 Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 124MB (253952 512 byte sectors: 64H 32S/T 124C)

Without the patch I then get these messages repeatedly:

umass0: Phase Error, residue = 0
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 
0x0
--- sys/cam/scsi/scsi_da.c.orig 2008-09-30 17:24:40.0 +0200
+++ sys/cam/scsi/scsi_da.c  2008-09-30 17:26:42.0 +0200
@@ -546,6 +546,13 @@
{
{T_DIRECT, SIP_MEDIA_REMOVABLE, Netac, OnlyDisk*,
 2000}, /*quirks*/ DA_Q_NO_SYNC_CACHE
+   },
+   {
+   /*
+* Apacer Handy Steno
+*/
+   {T_DIRECT, SIP_MEDIA_REMOVABLE, , USB FLASH DRIVE,
+*}, /*quirks*/ DA_Q_NO_SYNC_CACHE
}
 };
 
___
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


usb/107243: [patch] Apacer USB Flash Drive quirk

2006-12-27 Thread Tijl Coosemans

Number: 107243
Category:   usb
Synopsis:   [patch] Apacer USB Flash Drive quirk
Confidential:   no
Severity:   non-critical
Priority:   low
Responsible:freebsd-usb
State:  open
Quarter:
Keywords:   
Date-Required:
Class:  change-request
Submitter-Id:   current-users
Arrival-Date:   Wed Dec 27 15:10:12 GMT 2006
Closed-Date:
Last-Modified:
Originator: Tijl Coosemans
Release:FreeBSD 7.0-CURRENT i386
Organization:
Environment:
Description:
The Apacer Handy Steno USB Flash Drive is identified as:

umass0: vendor 0x1005 USB FLASH DRIVE, class 0/0, rev 2.00/0.50, addr 2 on 
uhub3
(probe0:umass-sim0:0:0:0): Uninitialized Transport 5:8000?
da0 at umass-sim0 bus 0 target 0 lun 0
da0:  USB FLASH DRIVE 1.01 Removable Direct Access SCSI-0 device
da0: 40.000MB/s transfers
da0: 124MB (253952 512 byte sectors: 64H 32S/T 124C)

The device works properly, but every few seconds the following
message appears:

umass0: Phase Error, residue = 0
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 
0x0
How-To-Repeat:
Fix:
--- apacer-usb.patch begins here ---
--- sys/cam/scsi/scsi_da.c.orig Wed Dec 27 14:48:27 2006
+++ sys/cam/scsi/scsi_da.c  Wed Dec 27 14:48:35 2006
@@ -466,6 +466,13 @@
{T_DIRECT, SIP_MEDIA_REMOVABLE, X-Micro, Flash Disk,
*}, /*quirks*/ DA_Q_NO_SYNC_CACHE
},
+   {
+   /*
+* Apacer Handy Steno
+*/
+   {T_DIRECT, SIP_MEDIA_REMOVABLE, , USB FLASH DRIVE,
+   *}, /*quirks*/ DA_Q_NO_SYNC_CACHE
+   },
 };
 
 static disk_strategy_t dastrategy;
--- apacer-usb.patch ends here ---

Release-Note:
Audit-Trail:
Unformatted:
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to [EMAIL PROTECTED]