Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Nov 2010 21:41:45 +0000 (UTC)
From:      Marius Strobl <marius@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/mii mii.c
Message-ID:  <201011152142.oAFLg2Oq010520@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
marius      2010-11-15 21:41:45 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/mii          mii.c 
  Log:
  SVN rev 215348 on 2010-11-15 21:41:45Z by marius
  
  Return from mii_attach() after calling bus_generic_attach(9) on the device_t
  of the MAC driver in order to attach miibus(4) on the first pass instead of
  falling through to also calling it on the device_t of miibus(4). The latter
  code flow was intended to attach the PHY drivers the same way regardless of
  whether it's the first or a repeated pass, modulo the bus_generic_attach()
  call in miibus_attach() which shouldn't be there. However, it turned out
  that these variants cause miibus(4) to be attached twice under certain
  conditions when using MAC drivers as modules.
  
  Submitted by:   yongari
  MFC after:      3 days
  
  Revision  Changes    Path
  1.40      +3 -0      src/sys/dev/mii/mii.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011152142.oAFLg2Oq010520>