Module Name: src
Committed By: msaitoh
Date: Fri Apr 26 04:58:40 UTC 2019
Modified Files:
src/sys/dev/pci: if_sip.c
Log Message:
Fix a bug that read value of MII_EXTSR register on TBI mode always fails.
This bug was added in rev. 1.169.
To generate a diff of this commit:
cvs rdiff -u -r1.169 -r1.170 src/sys/dev/pci/if_sip.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/pci/if_sip.c
diff -u src/sys/dev/pci/if_sip.c:1.169 src/sys/dev/pci/if_sip.c:1.170
--- src/sys/dev/pci/if_sip.c:1.169 Tue Jan 22 03:42:27 2019
+++ src/sys/dev/pci/if_sip.c Fri Apr 26 04:58:40 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: if_sip.c,v 1.169 2019/01/22 03:42:27 msaitoh Exp $ */
+/* $NetBSD: if_sip.c,v 1.170 2019/04/26 04:58:40 msaitoh Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.169 2019/01/22 03:42:27 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.170 2019/04/26 04:58:40 msaitoh Exp $");
@@ -3295,7 +3295,8 @@ sipcom_dp83820_mii_readreg(device_t self
* register itself seems read back 0 on some
* boards. Just hard-code the result.
*/
- return (EXTSR_1000XFDX|EXTSR_1000XHDX);
+ *val = (EXTSR_1000XFDX | EXTSR_1000XHDX);
+ return 0;
default:
return (0);