Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Do wm_reset_mdicnfg_82580() on 82580 only.
details: https://anonhg.NetBSD.org/src/rev/d584f0c96c2c
branches: trunk
changeset: 359909:d584f0c96c2c
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Mar 01 03:32:33 2018 +0000
description:
Do wm_reset_mdicnfg_82580() on 82580 only.
diffstat:
sys/dev/pci/if_wm.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 2c7d6d2c2249 -r d584f0c96c2c sys/dev/pci/if_wm.c
--- a/sys/dev/pci/if_wm.c Thu Mar 01 03:30:12 2018 +0000
+++ b/sys/dev/pci/if_wm.c Thu Mar 01 03:32:33 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_wm.c,v 1.565 2018/03/01 03:30:12 msaitoh Exp $ */
+/* $NetBSD: if_wm.c,v 1.566 2018/03/01 03:32:33 msaitoh Exp $ */
/*
* Copyright (c) 2001, 2002, 2003, 2004 Wasabi Systems, Inc.
@@ -83,7 +83,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.565 2018/03/01 03:30:12 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_wm.c,v 1.566 2018/03/01 03:32:33 msaitoh Exp $");
#ifdef _KERNEL_OPT
#include "opt_net_mpsafe.h"
@@ -14309,6 +14309,8 @@
uint16_t nvmword;
int rv;
+ if (sc->sc_type != WM_T_82580)
+ return;
if ((sc->sc_flags & WM_F_SGMII) == 0)
return;
Home |
Main Index |
Thread Index |
Old Index