From owner-freebsd-usb@FreeBSD.ORG Mon Mar 30 04:54:11 2015 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 72D82D26 for ; Mon, 30 Mar 2015 04:54:11 +0000 (UTC) Received: from smtp.mei.co.jp (smtp.mei.co.jp [133.183.100.20]) by mx1.freebsd.org (Postfix) with ESMTP id 1847EE70 for ; Mon, 30 Mar 2015 04:54:10 +0000 (UTC) Received: from mail-gw.jp.panasonic.com ([157.8.1.157]) by smtp.mei.co.jp (8.12.11.20060614/3.7W/kc-maile11) with ESMTP id t2U4s2AS002518 for ; Mon, 30 Mar 2015 13:54:03 +0900 (JST) Received: from epochmail.jp.panasonic.com ([157.8.1.130]) by mail.jp.panasonic.com (8.11.6p2/3.7W/kc-maili14) with ESMTP id t2U4s3L06047 for ; Mon, 30 Mar 2015 13:54:03 +0900 Received: by epochmail.jp.panasonic.com (8.12.11.20060308/3.7W/lomi12) id t2U4s3F5011477; Mon, 30 Mar 2015 13:54:03 +0900 Received: from localhost by lomi12.jp.panasonic.com (8.12.11.20060308/3.7W) with ESMTP id t2U4s2ed011430; Mon, 30 Mar 2015 13:54:02 +0900 Date: Mon, 30 Mar 2015 13:54:02 +0900 (JST) Message-Id: <20150330.135402.19625324788487516.okuno.kohji@jp.panasonic.com> To: freebsd-usb@freebsd.org Subject: Why do we try to enter U1 mode in SuperSpeed? From: Kohji Okuno Organization: Panasonic Corporation X-Mailer: Mew version 6.6 on Emacs 24.4 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii 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 04:54:11 -0000 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 }