From owner-freebsd-usb@FreeBSD.ORG Thu Feb 12 03:57:58 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 9EB08106564A for ; Thu, 12 Feb 2009 03:57:58 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from pele.citylink.co.nz (pele.citylink.co.nz [202.8.44.226]) by mx1.freebsd.org (Postfix) with ESMTP id 3AF308FC1B for ; Thu, 12 Feb 2009 03:57:58 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by pele.citylink.co.nz (Postfix) with ESMTP id 1D4E3FF35; Thu, 12 Feb 2009 16:57:57 +1300 (NZDT) X-Virus-Scanned: Debian amavisd-new at citylink.co.nz Received: from pele.citylink.co.nz ([127.0.0.1]) by localhost (pele.citylink.co.nz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P7J7MBjeH8ea; Thu, 12 Feb 2009 16:57:53 +1300 (NZDT) Received: from citylink.fud.org.nz (unknown [202.8.44.45]) by pele.citylink.co.nz (Postfix) with ESMTP; Thu, 12 Feb 2009 16:57:53 +1300 (NZDT) Received: by citylink.fud.org.nz (Postfix, from userid 1001) id D10D31142F; Thu, 12 Feb 2009 16:57:52 +1300 (NZDT) Date: Wed, 11 Feb 2009 19:57:52 -0800 From: Andrew Thompson To: Pyun YongHyeon Message-ID: <20090212035752.GC74077@citylink.fud.org.nz> References: <200902110954.37659.hselasky@c2i.net> <200902111657.38129.hselasky@c2i.net> <20090212023723.GA6313@michelle.cdnetworks.co.kr> <20090212034251.GB6313@michelle.cdnetworks.co.kr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090212034251.GB6313@michelle.cdnetworks.co.kr> User-Agent: Mutt/1.5.17 (2007-11-01) 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 List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2009 03:57:59 -0000 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? Andrew