Subject: CVS commit: src/sys/dev/pci
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 12/29/2007 19:51:38
Module Name:	src
Committed By:	dyoung
Date:		Sat Dec 29 19:51:38 UTC 2007

Modified Files:
	src/sys/dev/pci: if_bnx.c

Log Message:
Get rid of bnx_suspend_resume(), it did redundant resets.

Merge bnx_if_stop() and bnx_stop().  Handle bnx_stop(, 1) by doing
a reset.

Protect the bnx_stop() call in bnx_detach() with splnet().

Thanks to joerg@ for suggesting the above.

In bnx_stop(), deactivate the PHYs with mii_down().  Return right
away if !IFF_RUNNING.

Use LIST_EMPTY().

In bnx_ifmedia_upd(), propagate all mii_mediachg() return codes to
the caller except for ENXIO, which just means that the PHY is
suspended.  In bnx_init(), propagate bnx_ifmedia_upd() return codes
to the caller.

In bnx_intr(), replace a common subexpression with a variable,
'sblk'.

In bnx_tick(), let the MII bus keep ticking after the link is up:
check link status and exit after calling mii_tick(), not before.


To generate a diff of this commit:
cvs rdiff -r1.13 -r1.14 src/sys/dev/pci/if_bnx.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.