Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 25 Jul 2011 20:12:31 +0000 (UTC)
From:      Pyun YongHyeon <yongari@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r224401 - stable/8/sys/dev/gem
Message-ID:  <201107252012.p6PKCVk1075332@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yongari
Date: Mon Jul 25 20:12:31 2011
New Revision: 224401
URL: http://svn.freebsd.org/changeset/base/224401

Log:
  MFC r224157:
    Revert r222135 by allowing controller reinitialization.  Due to
    unknown reason Apple UniNorth2 gem(4) device required manual
    interface down/up operation after r222135.  Even though this is not
    correct thing and I don't like to revert it but it would be better
    than breaking gem(4) on PPC.  This should be revisited.
  
    PR:	kern/157405

Modified:
  stable/8/sys/dev/gem/if_gem.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/geom/label/   (props changed)

Modified: stable/8/sys/dev/gem/if_gem.c
==============================================================================
--- stable/8/sys/dev/gem/if_gem.c	Mon Jul 25 20:10:01 2011	(r224400)
+++ stable/8/sys/dev/gem/if_gem.c	Mon Jul 25 20:12:31 2011	(r224401)
@@ -947,8 +947,10 @@ gem_init_locked(struct gem_softc *sc)
 
 	GEM_LOCK_ASSERT(sc, MA_OWNED);
 
+#ifdef notyet
 	if ((ifp->if_drv_flags & IFF_DRV_RUNNING) != 0)
 		return;
+#endif
 
 #ifdef GEM_DEBUG
 	CTR2(KTR_GEM, "%s: %s: calling stop", device_get_name(sc->sc_dev),



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