From owner-freebsd-usb@FreeBSD.ORG Mon Mar 30 08:53:36 2015 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3797F59C for ; Mon, 30 Mar 2015 08:53:36 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EAF0CC47 for ; Mon, 30 Mar 2015 08:53:35 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 136A11FE023; Mon, 30 Mar 2015 10:53:33 +0200 (CEST) Message-ID: <55190F3C.4070901@selasky.org> Date: Mon, 30 Mar 2015 10:54:20 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Kohji Okuno , freebsd-usb@freebsd.org Subject: Re: Why do we try to enter U1 mode in SuperSpeed? References: <20150330.135402.19625324788487516.okuno.kohji@jp.panasonic.com> In-Reply-To: <20150330.135402.19625324788487516.okuno.kohji@jp.panasonic.com> Content-Type: text/plain; charset=windows-1252; 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: Mon, 30 Mar 2015 08:53:36 -0000 On 03/30/15 06:54, Kohji Okuno wrote: > Hi HPS > > I have a question. > Why do we try to enter U1 mode in SuperSpeed? > This is the following codes(***) > > In our proprietary environmen(This has a xHCI controller), when a > device accept U1, the device may be strange status. Acutually, when I > tried to connect "Western Digital My Passport Essential 320GB > (P/N:WDBACY3200ABK-00)", this HDD was not recognized correctly. > But, in PC environment, this HDD was recognized correctly. > > Regards, > Kohji Okuno > > (***) > usb_hub.c: > 793 if (speed == USB_SPEED_SUPER) { > 794 err = usbd_req_set_hub_u1_timeout(udev, NULL, > 795 portno, 128 - (2 * udev->depth)); > 796 if (err) { > 797 DPRINTFN(0, "port %d U1 timeout " > 798 "failed, error=%s\n", > 799 portno, usbd_errstr(err)); > 800 } > 801 err = usbd_req_set_hub_u2_timeout(udev, NULL, > 802 portno, 128 - (2 * udev->depth)); > 803 if (err) { > 804 DPRINTFN(0, "port %d U2 timeout " > 805 "failed, error=%s\n", > 806 portno, usbd_errstr(err)); > 807 } > 808 } Hi, We are not trying to enter U1 mode, we only setup the U1 and U2 timeouts. Is there a flag in the USB descriptors that say this is not supported and that we need to set some other value? I thought all superspeed devices had to support these features and that switching in and out of the sleep modes was done by the XHCI hardware. --HPS