login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
openbsd-tech
»
2010
»
December
»
14
Re: bugfixes for dc(4)
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
[view in full thread]
From: Mark Kettenis
Subject:
Re: bugfixes for dc(4)
Date: Tuesday, December 14, 2010 - 1:56 am
> Date: Mon, 13 Dec 2010 23:24:52 -0500 (EST)
quoted text
> From:
loganaden@devio.us
(Loganaden Velvindron) > > Hi, I separated the mclgeti part from the bugfixes for PNIC. Give it a try.
What does this actually fix?
quoted text
> Index: src/sys/dev/ic/dc.c > =================================================================== > RCS file: /cvs/src/sys/dev/ic/dc.c,v > retrieving revision 1.121 > diff -u -p -r1.121 dc.c > --- src/sys/dev/ic/dc.c 7 Sep 2010 16:21:42 -0000 1.121 > +++ src/sys/dev/ic/dc.c 14 Dec 2010 04:18:50 -0000 > @@ -1224,7 +1224,7 @@ dc_setcfg(struct dc_softc *sc, int media > } > > if (i == DC_TIMEOUT) { > - if (!(isr & DC_ISR_TX_IDLE) && !DC_IS_ASIX(sc)) > + if (!(isr & DC_ISR_TX_IDLE) && !DC_IS_ASIX(sc) && !DC_IS_PNIC(sc)) > printf("%s: failed to force tx to idle state\n", > sc->sc_dev.dv_xname); > if (!((isr & DC_ISR_RX_STATE) == DC_RXSTATE_STOPPED || > @@ -1792,9 +1792,11 @@ hasmac: > ifmedia_add(&sc->sc_mii.mii_media, IFM_ETHER|IFM_NONE, 0, NULL); > ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|IFM_NONE); > printf("%s: MII without any PHY!\n", sc->sc_dev.dv_xname); > - } else if (sc->dc_type == DC_TYPE_21145) { > + } else if (sc->dc_type == DC_TYPE_21145) > ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|IFM_10_T); > - } else > + else if (sc->dc_type == DC_TYPE_PNIC) > + ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|IFM_10_T); > + else > ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|IFM_AUTO); > > if (DC_IS_DAVICOM(sc) && sc->dc_revision >= DC_REVISION_DM9102A)
Previous message: [
thread
] [
date
] [
author
]
Next message: [thread] [
date
] [
author
]
Messages in current thread:
bugfixes for dc(4)
, Loganaden Velvindron
, (Mon Dec 13, 9:24 pm)
Re: bugfixes for dc(4)
, Mark Kettenis
, (Tue Dec 14, 1:56 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 041/196] kobject: add kobject_init_and_add function
Lukas Hejtmanek
Re: Another libata error related to OCZ SSD
Greg Kroah-Hartman
[PATCH 023/196] MCP_UCB1200: Convert from class_device to device
Florian Fainelli
Re: System clock runs too fast after 2.6.27 -> 2.6.28.1 upgrade
Christoph Lameter
[patch 1/4] mmu_notifier: Core code
git
:
Johannes Schindelin
Re: [PATCH 1/2] Add strbuf_initf()
John Bito
[EGIT] Push to GitHub caused corruption
Jakub Narebski
Re: [PATCH 0/2] gitweb: patch view
Junio C Hamano
Re: [PATCH] When a remote is added but not fetched, tell the user.
Andy Parkins
Re: [RFC] Submodules in GIT
git-commits-head
:
Linux Kernel Mailing List
ahci: Workaround HW bug for SB600/700 SATA controller PMP support
Linux Kernel Mailing List
V4L/DVB (11086): au0828: rename macro for currently non-function VBI support
Linux Kernel Mailing List
ceph: client types
Linux Kernel Mailing List
ceph: on-wire types
Linux Kernel Mailing List
crypto: chainiv - Use kcrypto_wq instead of keventd_wq
linux-netdev
:
Andrew Morton
Re: [Bugme-new] [Bug 14969] New: b44: WOL does not work in suspended state
Giuseppe CAVALLARO
Re: [PATCH 03/13] stmmac: add the new Header file for stmmac platform data
Taku Izumi
[PATCH 3/3] ixgbe: add registers etc. printout code just before resetting adapters
Eric Dumazet
rps: some comments
Thomas Gleixner
Re: [RFC PATCH 02/12] On Tue, 23 Sep 2008, David Miller wrote:
openbsd-misc
:
Stephan Andreas
problems with login after xlock in OpenBSD release 4.7
pmc
Make A Change. Alcoholism and Drug Addiction Treatment
ropers
Re: what exactly is enc0?
Fuad NAHDI
Re: What does your environment look like?
Matthew Szudzik
Typo on OpenBSD 4.4 CD Set
Colocation donated by:
Syndicate