Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/cadence Skip the first PHY found to remove the shado...
details: https://anonhg.NetBSD.org/src/rev/df4107b887fe
branches: trunk
changeset: 372313:df4107b887fe
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Nov 12 16:54:36 2022 +0000
description:
Skip the first PHY found to remove the shadow PHY that appears at
the broadcast address 0.
diffstat:
sys/dev/cadence/if_cemac.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r f334239fb9a2 -r df4107b887fe sys/dev/cadence/if_cemac.c
--- a/sys/dev/cadence/if_cemac.c Sat Nov 12 11:14:44 2022 +0000
+++ b/sys/dev/cadence/if_cemac.c Sat Nov 12 16:54:36 2022 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index