Module Name: src Committed By: jmcneill Date: Sat Nov 12 16:54:36 UTC 2022
Modified Files: src/sys/dev/cadence: if_cemac.c Log Message: Skip the first PHY found to remove the shadow PHY that appears at the broadcast address 0. To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/dev/cadence/if_cemac.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/cadence/if_cemac.c diff -u src/sys/dev/cadence/if_cemac.c:1.25 src/sys/dev/cadence/if_cemac.c:1.26 --- src/sys/dev/cadence/if_cemac.c:1.25 Sun Sep 18 16:54:30 2022 +++ src/sys/dev/cadence/if_cemac.c Sat Nov 12 16:54:36 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: if_cemac.c,v 1.25 2022/09/18 16:54:30 thorpej Exp $ */ +/* $NetBSD: if_cemac.c,v 1.26 2022/11/12 16:54:36 jmcneill Exp $ */ /* * Copyright (c) 2015 Genetec Corporation. All rights reserved. @@ -40,7 +40,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: if_cemac.c,v 1.25 2022/09/18 16:54:30 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_cemac.c,v 1.26 2022/11/12 16:54:36 jmcneill Exp $"); #include <sys/types.h> #include <sys/param.h> @@ -579,8 +579,7 @@ cemac_init(struct cemac_softc *sc) mii->mii_statchg = cemac_statchg; ifmedia_init(&mii->mii_media, IFM_IMASK, cemac_mediachange, cemac_mediastatus); - mii_attach(sc->sc_dev, mii, 0xffffffff, MII_PHY_ANY, - MII_OFFSET_ANY, 0); + mii_attach(sc->sc_dev, mii, 0xffffffff, MII_PHY_ANY, 1, 0); ifmedia_set(&mii->mii_media, IFM_ETHER | IFM_AUTO); #if 0