From owner-freebsd-usb@FreeBSD.ORG Thu Feb 12 04:31:18 2009 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A21391065670; Thu, 12 Feb 2009 04:31:18 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id 3F4968FC13; Thu, 12 Feb 2009 04:31:18 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: by yw-out-2324.google.com with SMTP id 2so339600ywt.13 for ; Wed, 11 Feb 2009 20:31:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=RdZsHcdaed5QTW1UNIk6Mn0F0C1+dxqtHJu6xyxDiAk=; b=liSjpez8dCkIlwuRE8mDCuHSjbx85+eDsivi3PaSg8+s7EiJ/9wBKYmcA5y1sqLEqf meKq4saijjfstpHa1/uV5O8Y6fFXfhglLm8Tq2KUkzPFFstNf/YSD5e3woK7zJQkNYpi /nOkLPRY2UskI1SOC6pW4s9HOgMbJng2hsl/U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=jv/6M4WWvEvntD/zYQk6QUFeMZJVrCkSZBME/W6rGXe0efK+lsjI9i4dVfIQ4n0lgv urP1NqY8zH84rq0hz+rjR1FsTEZ+zVVA3eXsa+VrPEjfo21eQsyyDGGsQa2Mb5BVcya2 XA2dCHw5KKZfo3ichN3eOcP+QcwiPZZMVAUY8= Received: by 10.150.178.9 with SMTP id a9mr594815ybf.52.1234413077675; Wed, 11 Feb 2009 20:31:17 -0800 (PST) Received: from michelle.cdnetworks.co.kr ([114.111.62.249]) by mx.google.com with ESMTPS id u25sm23523176ele.16.2009.02.11.20.31.13 (version=SSLv3 cipher=RC4-MD5); Wed, 11 Feb 2009 20:31:17 -0800 (PST) Received: by michelle.cdnetworks.co.kr (sSMTP sendmail emulation); Thu, 12 Feb 2009 13:33:51 +0900 From: Pyun YongHyeon Date: Thu, 12 Feb 2009 13:33:51 +0900 To: Andrew Thompson Message-ID: <20090212043351.GD6313@michelle.cdnetworks.co.kr> References: <200902110954.37659.hselasky@c2i.net> <200902111657.38129.hselasky@c2i.net> <20090212023723.GA6313@michelle.cdnetworks.co.kr> <20090212034251.GB6313@michelle.cdnetworks.co.kr> <20090212035752.GC74077@citylink.fud.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090212035752.GC74077@citylink.fud.org.nz> User-Agent: Mutt/1.4.2.3i Cc: freebsd-usb@freebsd.org Subject: Re: USB2: [was: umass not detected correctly, axe not transmitting] AXE problems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2009 04:31:18 -0000 On Wed, Feb 11, 2009 at 07:57:52PM -0800, Andrew Thompson wrote: > On Thu, Feb 12, 2009 at 12:42:51PM +0900, Pyun YongHyeon wrote: > > > > > > I have the same USB controller and latest CURRENT works. > > > > > > axe0: on usbus1 > > > axe0: PHYADDR 0xe0:0x18 > > > miibus2: on axe0 > > > ciphy0: PHY 24 on miibus2 > > > ciphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto > > > ue0: on axe0 > > > ue0: Ethernet address: 00:90:cc:ef:b9:f6 > > > ue0: link state changed to DOWN > > > > > > I manually loaded necessary kernel modules as my kernel does not > > > have any USB device entries. The only regression since I tried USB2 > > > axe(4) was failure of symbol resolving of link_elf in > > > usb2_ethernet.ko module. Attached simple patch seems to fix that. > > > > > > To Hans, > > > I think MODULE_DEPEND should come first before any reference to > > > the module in usb2_ethernet.c. Since mii_phy_probe live in > > > miibus(4) I added it too. > > > > > > > Hans, I managed to track down Hiroharu's issue in axe(4). It seems > > Andrew removed link handling code that ensures correct state of > > established link in r188412. > > I believe we have to revert changes made in axe_cfg_mii_statchg() > > and axe_tick(). I have no idea what was happend in P4, you > > checked in the link handling code I submitted. > > Thanks for finding this Pyun, an unintentional breakage due to the code > reshuffle. Have you committed the fix, I dont see it? > Not yet. I've posted possible fix for axe(4) so let's see how it goes first.