From owner-freebsd-arch@FreeBSD.ORG Thu Jan 26 16:27:07 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0C26B106566C for ; Thu, 26 Jan 2012 16:27:07 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe01.c2i.net [212.247.154.2]) by mx1.freebsd.org (Postfix) with ESMTP id 87A8F8FC13 for ; Thu, 26 Jan 2012 16:27:06 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.2) with ESMTPA id 234572763; Thu, 26 Jan 2012 17:27:04 +0100 From: Hans Petter Selasky To: freebsd-arch@freebsd.org Date: Thu, 26 Jan 2012 17:25:02 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <47ABA638-7E08-4350-A03C-3D4A23BF2D7E@lassitu.de> <20120125221753.GA17821@alchemy.franken.de> <9E6A719D-A616-4D1E-9DD2-BAA399FFD3AC@lassitu.de> In-Reply-To: <9E6A719D-A616-4D1E-9DD2-BAA399FFD3AC@lassitu.de> X-Face: 'mmZ:T{)),Oru^0c+/}w'`gU1$ubmG?lp!=R4Wy\ELYo2)@'UZ24N@d2+AyewRX}mAm; Yp |U[@, _z/([?1bCfM{_"B<.J>mICJCHAzzGHI{y7{%JVz%R~yJHIji`y>Y}k1C4TfysrsUI -%GU9V5]iUZF&nRn9mJ'?&>O MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201201261725.02980.hselasky@c2i.net> Cc: Stefan Bethke , Marius Strobl Subject: Re: Extending sys/dev/mii X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jan 2012 16:27:07 -0000 On Thursday 26 January 2012 17:25:09 Stefan Bethke wrote: > Am 25.01.2012 um 23:17 schrieb Marius Strobl: > > On Sat, Jan 21, 2012 at 12:08:34AM +0100, Stefan Bethke wrote: > >> - miibus has a funny way of attaching to it's parent. Making the parent > >> a bus that automatically attaches matching children does not lead to > >> good results. > > > > That's the idea behind auto-probing, which all FreeBSD bus drivers > > implement as far as the physical bus supports it. > > Sorry, I should have been more specific. I had problems when the device > that miibus attaches to implements autoprobing and auto-attaches miibus > directly, instead of through mii_attach(). > Hi, While staying at the topic. All unneccesary panic() statements should be removed from mii() drivers. Sometimes, when you unplug a USB network device, a mii read can fail and that should not crash the system! --HPS