usb/103167: Transcend JetFlash120 memory stick problem (with fix)
Vladimir Kushnir
vkushnir at i.kiev.ua
Mon Sep 11 15:50:19 PDT 2006
>Number: 103167
>Category: usb
>Synopsis: Transcend JetFlash120 memory stick problem (with fix)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-usb
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Mon Sep 11 22:50:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Vladimir Kushnir
>Release: 7.0-CURRENT
>Organization:
BITP
>Environment:
FreeBSD kushnir1.kiev.ua 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Mon Sep 11 19:49:33 EEST 2006 root at kushnir1.kiev.ua:/usr/obj/usr/src/sys/KUSHNIR amd64
>Description:
Transcend JetFlash120 memory stick (perhaps, others as well) isn;t detected; system just gives an IOERROR:
ehci_pcd: change=0x00
uhub_explore: status change hub=1 port=8
ehci after reset, status=0x00001005
ehci port 8 reset, status = 0x00001005
usbd_new_device bus=0xffffff0000a1b000 port=8 depth=1 speed=3
usbd_new_device: addr=2, getting first desc failed
usbd_remove_device: 0xffffff0016b47d00
ehci_device_ctrl_close: pipe=0xffffff001784a180
ehci_intr1: door bell
uhub_explore: usb_new_device failed, error=IOERROR
uhub1: device problem (IOERROR), disabling port 8
(This is -CURRENT, with USB debugging enabled and "options DIAGNOSTIC")
>How-To-Repeat:
Try to use it :-)
>Fix:
Probably, this is a hack but it works here: re-get desc; with this patch a relevant part of dmesg:
umass0: <Generic Mass Storage Device, class 0/0, rev 2.00/1.41, addr 2> on uhub1
umass0: SCSI over Bulk-Only; quirks = 0x0000
umass0: Get Max Lun not supported (STALLED)
umass0:7:0:-1: Attached to scbus7
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <JetFlash TS1GJF2A/120 8.07> Removable Direct Access SCSI-2 device
da0: 40.000MB/s transfers
da0: 980MB (2007040 512 byte sectors: 64H 32S/T 980C)
/*------------ patvh begins -----------------*/
*** dev/usb/usb_subr.c.orig Mon Sep 11 19:28:35 2006
--- dev/usb/usb_subr.c Mon Sep 11 20:05:38 2006
***************
*** 1112,1118 ****
dd = &dev->ddesc;
/* Get the first 8 bytes of the device descriptor. */
! err = usbd_get_desc(dev, UDESC_DEVICE, 0, USB_MAX_IPACKET, dd);
if (err) {
DPRINTFN(-1, ("usbd_new_device: addr=%d, getting first desc "
"failed\n", addr));
--- 1112,1123 ----
dd = &dev->ddesc;
/* Get the first 8 bytes of the device descriptor. */
! for (i = 0; i < 3; i++) {
! err = usbd_get_desc(dev, UDESC_DEVICE, 0, USB_MAX_IPACKET, dd);
! if (!err)
! break;
! usbd_delay_ms(dev, USB_SET_ADDRESS_SETTLE);
! }
if (err) {
DPRINTFN(-1, ("usbd_new_device: addr=%d, getting first desc "
"failed\n", addr));
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-usb
mailing list