From owner-freebsd-arch@FreeBSD.ORG Sun Jan 29 19:00:27 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 E6EBF1065675; Sun, 29 Jan 2012 19:00:27 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 66D188FC0A; Sun, 29 Jan 2012 19:00:23 +0000 (UTC) Received: by vcmm1 with SMTP id m1so3624036vcm.13 for ; Sun, 29 Jan 2012 11:00:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=S+16ggzHz2I9dV8lc5XXjT/wxLTJd8WnLPIbAgQx6NM=; b=nQwbq6s1P0vfu2yKG9gxhK4U6G5xnzDS/rRt91+IqRA7FuH0ArJXxTJf7eqOy64gpH Q8DnF/y8gRJ2IG6AOGKM9YOFiu3bicIqG+FMQ8sOTQlZKJcBWysRT9+I+rnPG2kdhg9p zzfjB12QUTk1RPlio628QMmGlh/xSsjBjJvAE= MIME-Version: 1.0 Received: by 10.220.156.199 with SMTP id y7mr4940381vcw.2.1327863622709; Sun, 29 Jan 2012 11:00:22 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.52.172.37 with HTTP; Sun, 29 Jan 2012 11:00:22 -0800 (PST) In-Reply-To: <20120129153159.GA44362@alchemy.franken.de> References: <20120120221319.ca8b631f.ray@freebsd.org> <30A45A1E-CA13-4AC8-86FB-F8E06301D1F6@lassitu.de> <20120122195130.360261ce.ray@freebsd.org> <0E31FEC4-963D-4AC8-9AB7-EE6D6D7F86EE@lassitu.de> <20120129001251.7e4cfe83.ray@ddteam.net> <81B88904-6894-4AC3-80F3-2866216E494B@lassitu.de> <20120129153159.GA44362@alchemy.franken.de> Date: Sun, 29 Jan 2012 11:00:22 -0800 X-Google-Sender-Auth: -AkCx4Pg7npYgNDM18SU2ksap2M Message-ID: From: Adrian Chadd To: Marius Strobl Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: FreeBSD Net , Aleksandr Rybalko , Stefan Bethke , FreeBSD-arch Subject: Re: Ethernet Switch Framework 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: Sun, 29 Jan 2012 19:00:28 -0000 I think for switches, that doesn't necessarily hold. ie, mii_attach() for single-PHY devices may work that way, but the weird and wonderful world of embedded switch SoC's doesn't. You're lucky in most instances since the bootloader does give you a mostly-working switch config. But I doubt that's a guarantee on all platforms. So for those (ethernet) devices, splitting out the mii/mdio stuff and _not_ necessarily presenting a working PHY may be acceptable. For now it's going to be a subset, to having it export an MDIO bus and doing late MII attachment may not be as architecturally "no-no" as I interpret your post. Adrian