Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Sep 2014 02:22:04 +0800
From:      Denny Lin <dennylin93@hs.ntnu.edu.tw>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: USB device repeatedly disconnected
Message-ID:  <20140921182204.GD3153@mail.hs.ntnu.edu.tw>
In-Reply-To: <541F052A.7000301@selasky.org>
References:  <20140921155951.GC3153@mail.hs.ntnu.edu.tw> <541F052A.7000301@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help

Hi Hans,

On Sun, Sep 21, 2014 at 07:04:42PM +0200, Hans Petter Selasky wrote:
> You can try setting:
> 
> hw.usb.no_cs_fail=1

This appears to have no effect--the device still repeatedly disconnects.

> Also run usbdump to capture the USB traffic.
> 
> usbdump -i usbus1 -f 7 -vvv -s 65536

A sample dump is available at:
http://n.ethz.ch/student/dlin/aos/usbdump.txt

Although I didn't understand the dump, I tried tracing the code.
The device is disconnected when usb_free_device() is called within
uhub_reattach_port() (the repeat part) in sys/dev/usb/usb_hub.c. I'm not
sure what triggers this though.

-- 
Denny Lin



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