From owner-freebsd-usb@freebsd.org Thu Sep 24 20:08:34 2015 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9B9E2A08EDF for ; Thu, 24 Sep 2015 20:08:34 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (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 5BC7B1AF7 for ; Thu, 24 Sep 2015 20:08:33 +0000 (UTC) (envelope-from hps@selasky.org) 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 90CC61FE023; Thu, 24 Sep 2015 22:08:30 +0200 (CEST) Subject: Re: usb_event_thread/usb_discover called when block transfer in progress [FreeBSD 6.x] To: Shrikanth Kamath , freebsd-usb@freebsd.org References: From: Hans Petter Selasky Message-ID: <5604589C.6070306@selasky.org> Date: Thu, 24 Sep 2015 22:10:04 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Sep 2015 20:08:34 -0000 On 09/10/15 00:04, Shrikanth Kamath wrote: > Basic query is it okay for usb_event_thread/usb_discover to get called > when a block transfer is in progress and there was no USB > attach/detach event? > > Is it triggered by usb controller? Hi, This event is typically triggered by a port-status change event. Are you seeing a particular problem? > > Are there any documents on the FreeBSD 6.x USB stack? Not as I'm aware about. > > USB_DEBUG logs > > usb_transfer_complete: repeat=0 new head=0 > usbd_start_next: pipe=0x82acd7d0, xfer=0 > usb_event_thread: woke up > usb_discover > usbd_transfer: xfer=0x82b7a320, flags=0, pipe=0x82acd820, running=0 > usbd_dump_queue: pipe=0x82acd820 > usb_allocmem: use frag=0x9507df00 size=31 > usb_insert_transfer: pipe=0x82acd820 running=0 timeout=65000 > usb_transfer_complete: pipe=0x82acd820 xfer=0x82b7a320 status=0 actlen=31 > --HPS