summaryrefslogtreecommitdiffstats
path: root/sys/dev/gem
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2011-07-17 21:54:51 +0000
committeryongari <yongari@FreeBSD.org>2011-07-17 21:54:51 +0000
commit2eec71c4c7ef4aa478d5835c0d5b08fd50d836d4 (patch)
tree7f1e8ed33687fa795e33a2b6a30e7ad9c7f8adef /sys/dev/gem
parent83ed8794e4fd7b29c3fba10fbbac291a66ad688b (diff)
downloadFreeBSD-src-2eec71c4c7ef4aa478d5835c0d5b08fd50d836d4.zip
FreeBSD-src-2eec71c4c7ef4aa478d5835c0d5b08fd50d836d4.tar.gz
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
Diffstat (limited to 'sys/dev/gem')
-rw-r--r--sys/dev/gem/if_gem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/gem/if_gem.c b/sys/dev/gem/if_gem.c
index d75e1ab..6f53eae 100644
--- a/sys/dev/gem/if_gem.c
+++ b/sys/dev/gem/if_gem.c
@@ -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),
OpenPOWER on IntegriCloud