From owner-svn-src-head@FreeBSD.ORG Wed Nov 7 22:43:10 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2842876B; Wed, 7 Nov 2012 22:43:10 +0000 (UTC) (envelope-from ray@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 0ADB18FC0C; Wed, 7 Nov 2012 22:43:10 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.5/8.14.5) with ESMTP id qA7Mh9w7021564; Wed, 7 Nov 2012 22:43:09 GMT (envelope-from ray@svn.freebsd.org) Received: (from ray@localhost) by svn.freebsd.org (8.14.5/8.14.5/Submit) id qA7Mh9QR021562; Wed, 7 Nov 2012 22:43:09 GMT (envelope-from ray@svn.freebsd.org) Message-Id: <201211072243.qA7Mh9QR021562@svn.freebsd.org> From: Aleksandr Rybalko Date: Wed, 7 Nov 2012 22:43:09 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r242716 - head/sys/dev/etherswitch/arswitch X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2012 22:43:10 -0000 Author: ray Date: Wed Nov 7 22:43:09 2012 New Revision: 242716 URL: http://svnweb.freebsd.org/changeset/base/242716 Log: Disable automatic attachment of arswitch. It can't be auto-detected (like PHYs do) and cause a problems trying to attach another instance to child mdio. Submitted by: Luiz Otavio O Souza Approved by: adrian (menthor) Modified: head/sys/dev/etherswitch/arswitch/arswitch.c Modified: head/sys/dev/etherswitch/arswitch/arswitch.c ============================================================================== --- head/sys/dev/etherswitch/arswitch/arswitch.c Wed Nov 7 22:15:28 2012 (r242715) +++ head/sys/dev/etherswitch/arswitch/arswitch.c Wed Nov 7 22:43:09 2012 (r242716) @@ -77,16 +77,6 @@ static void arswitch_tick(void *arg); static int arswitch_ifmedia_upd(struct ifnet *); static void arswitch_ifmedia_sts(struct ifnet *, struct ifmediareq *); -static void -arswitch_identify(driver_t *driver, device_t parent) -{ - device_t child; - - if (device_find_child(parent, driver->name, -1) == NULL) { - child = BUS_ADD_CHILD(parent, 0, driver->name, -1); - } -} - static int arswitch_probe(device_t dev) { @@ -557,7 +547,6 @@ arswitch_ifmedia_sts(struct ifnet *ifp, static device_method_t arswitch_methods[] = { /* Device interface */ - DEVMETHOD(device_identify, arswitch_identify), DEVMETHOD(device_probe, arswitch_probe), DEVMETHOD(device_attach, arswitch_attach), DEVMETHOD(device_detach, arswitch_detach),