Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Sep 2012 08:20:13 GMT
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@FreeBSD.org
Subject:   Re: usb/171197: ADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1-RC1
Message-ID:  <201209020820.q828KDbf067795@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR usb/171197; it has been noted by GNATS.

From: Hans Petter Selasky <hselasky@c2i.net>
To: freebsd-usb@freebsd.org
Cc: Bartek Krawczyk <bbartlomiej@gmail.com>,
 freebsd-gnats-submit@freebsd.org
Subject: Re: usb/171197: ADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1-RC1
Date: Sun, 2 Sep 2012 10:14:51 +0200

 --Boundary-00=_7VxQQeQoI4cp+Di
 Content-Type: Text/Plain;
   charset="iso-8859-15"
 Content-Transfer-Encoding: 7bit
 
 On Friday 31 August 2012 10:22:22 Bartek Krawczyk wrote:
 > >Number:         171197
 > >Category:       usb
 > >Synopsis:       ADATA Classic CH11 USB HDD doesn't work in FreeBSD 9.1-RC1
 > >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:   Fri Aug 31 08:30:08 UTC 2012
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Bartek Krawczyk
 > >Release:        9.1-RC1
 > >Organization:
 > 
 > >Environment:
 > FreeBSD xbmc 9.1-RC1 FreeBSD 9.1-RC1 #0: Tue Aug 14 04:25:06 UTC 2012    
 > root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
 > 
 > >Description:
 > Hi, I recently bought a 1TB ADATA Classic CH11 USB HDD and it doesn't seem
 > to be recognized by FreeBSD 9.1-RC1 (it works in Windows and Linux
 > though). I can provide more debugging information if you tell me how to do
 > it. This is what I get in messages:
 > 
 > Aug 31 10:04:12 xbmc kernel: usb_alloc_device: set address 2 failed
 > (USB_ERR_STALLED, ignored) Aug 31 10:04:12 xbmc kernel:
 > usbd_setup_device_desc: getting device descriptor at addr 2 failed,
 > USB_ERR_STALLED Aug 31 10:04:12 xbmc kernel: usbd_req_re_enumerate:
 > addr=2, set address failed! (USB_ERR_STALLED, ignored) Aug 31 10:04:12
 > xbmc kernel: usbd_setup_device_desc: getting device descriptor at addr 2
 > failed, USB_ERR_STALLED Aug 31 10:04:13 xbmc kernel:
 > usbd_req_re_enumerate: addr=2, set address failed! (USB_ERR_STALLED,
 > ignored) Aug 31 10:04:13 xbmc kernel: usbd_setup_device_desc: getting
 > device descriptor at addr 2 failed, USB_ERR_STALLED Aug 31 10:04:13 xbmc
 > kernel: ugen1.2: <Unknown> at usbus1 (disconnected) Aug 31 10:04:13 xbmc
 > kernel: uhub_reattach_port: could not allocate new device
 > 
 > And this is from usbconfig:
 > ugen4.2: <product 0x3323 vendor 0x13d3> at usbus4, cfg=0 md=HOST spd=HIGH
 > (480Mbps) pwr=ON
 > 
 
 Hi,
 
 Could you send the device to me for debugging?
 
 Have you tried using an external HUB in between?
 
 Is the device properly powered?
 
 Can you try the attached patch?
 
 --HPS
 
 --Boundary-00=_7VxQQeQoI4cp+Di
 Content-Type: text/x-patch;
   charset="iso-8859-15";
   name="add_set_address_delay.diff"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline;
 	filename="add_set_address_delay.diff"
 
 === usb_request.c
 ==================================================================
 --- usb_request.c	(revision 239913)
 +++ usb_request.c	(local)
 @@ -1547,6 +1547,10 @@
  
  	DPRINTFN(6, "setting device address=%d\n", addr);
  
 +        /* allow device time to set new address */
 +        usb_pause_mtx(mtx,
 +            USB_MS_TO_TICKS(USB_SET_ADDRESS_SETTLE));
 +
  	req.bmRequestType = UT_WRITE_DEVICE;
  	req.bRequest = UR_SET_ADDRESS;
  	USETW(req.wValue, addr);
 
 --Boundary-00=_7VxQQeQoI4cp+Di--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209020820.q828KDbf067795>