Module Name: src
Committed By: bad
Date: Wed Oct 16 13:02:51 UTC 2019
Modified Files:
src/sys/dev/usb: if_ure.c
Log Message:
read mac address of ure version 4c10 from URE_PLA_IDR, save as 4c00.
from ganbold@freebsd r346052.
XXX pullup-9
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/usb/if_ure.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/usb/if_ure.c
diff -u src/sys/dev/usb/if_ure.c:1.31 src/sys/dev/usb/if_ure.c:1.32
--- src/sys/dev/usb/if_ure.c:1.31 Fri Aug 23 04:32:57 2019
+++ src/sys/dev/usb/if_ure.c Wed Oct 16 13:02:51 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ure.c,v 1.31 2019/08/23 04:32:57 mrg Exp $ */
+/* $NetBSD: if_ure.c,v 1.32 2019/10/16 13:02:51 bad Exp $ */
/* $OpenBSD: if_ure.c,v 1.10 2018/11/02 21:32:30 jcs Exp $ */
/*-
@@ -30,7 +30,7 @@
/* RealTek RTL8152/RTL8153 10/100/Gigabit USB Ethernet device */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ure.c,v 1.31 2019/08/23 04:32:57 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ure.c,v 1.32 2019/10/16 13:02:51 bad Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -941,7 +941,8 @@ ure_attach(device_t parent, device_t sel
else
ure_rtl8153_init(un);
- if (un->un_flags & URE_FLAG_VER_4C00)
+ if ((un->un_flags & URE_FLAG_VER_4C00) ||
+ (un->un_flags & URE_FLAG_VER_4C10))
ure_read_mem(un, URE_PLA_IDR, URE_MCU_TYPE_PLA, eaddr,
sizeof(eaddr));
else