From c41536fb3f5abf7afb20ccee603c9ddb05df0982 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Wed, 14 Jun 2006 13:30:35 +0000 Subject: [PATCH] Call pcn_reset() in pcn_shutdown() so that my 7248 (prep) firmware can netboot even after reboot without powercycle. --- sys/dev/pci/if_pcn.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/pci/if_pcn.c b/sys/dev/pci/if_pcn.c index e33c335e479b..1341bddca142 100644 --- a/sys/dev/pci/if_pcn.c +++ b/sys/dev/pci/if_pcn.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_pcn.c,v 1.29 2006/02/22 02:57:26 garbled Exp $ */ +/* $NetBSD: if_pcn.c,v 1.30 2006/06/14 13:30:35 tsutsui Exp $ */ /* * Copyright (c) 2001 Wasabi Systems, Inc. @@ -67,7 +67,7 @@ #include "opt_pcn.h" #include -__KERNEL_RCSID(0, "$NetBSD: if_pcn.c,v 1.29 2006/02/22 02:57:26 garbled Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_pcn.c,v 1.30 2006/06/14 13:30:35 tsutsui Exp $"); #include "bpfilter.h" #include "rnd.h" @@ -887,6 +887,8 @@ pcn_shutdown(void *arg) struct pcn_softc *sc = arg; pcn_stop(&sc->sc_ethercom.ec_if, 1); + /* explicitly reset the chip for some onboard one with lazy firmware */ + pcn_reset(sc); } /*