Add some delay() on asserting MEC_MAC_CORE_RESET.
This commit is contained in:
parent
9be1dc8d96
commit
27ec859c0e
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_mec.c,v 1.7 2005/12/10 07:05:10 tsutsui Exp $ */
|
||||
/* $NetBSD: if_mec.c,v 1.8 2006/04/02 11:20:46 tsutsui Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2004 Izumi Tsutsui.
|
||||
@ -64,7 +64,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_mec.c,v 1.7 2005/12/10 07:05:10 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_mec.c,v 1.8 2006/04/02 11:20:46 tsutsui Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "bpfilter.h"
|
||||
@ -762,6 +762,7 @@ mec_reset(struct mec_softc *sc)
|
||||
|
||||
/* reset chip */
|
||||
bus_space_write_8(st, sh, MEC_MAC_CONTROL, MEC_MAC_CORE_RESET);
|
||||
delay(1000);
|
||||
bus_space_write_8(st, sh, MEC_MAC_CONTROL, 0);
|
||||
delay(1000);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user