Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/dev/usb Pull up following revision(s) (requested by m...
details: https://anonhg.NetBSD.org/src/rev/700bcf9a699c
branches: netbsd-8
changeset: 745276:700bcf9a699c
user: martin <martin%NetBSD.org@localhost>
date: Thu Feb 27 14:32:31 2020 +0000
description:
Pull up following revision(s) (requested by manu in ticket #1508):
sys/dev/usb/usbdevs: revision 1.776
sys/dev/usb/u3g.c: revision 1.40
sys/dev/usb/umodeswitch.c: revision 1.5
Add UE version of D-Link DWM-157
-
Add support for D-Link DWM-157 3G USB modem
diffstat:
sys/dev/usb/u3g.c | 8 ++++++--
sys/dev/usb/umodeswitch.c | 15 +++++++++++++--
sys/dev/usb/usbdevs | 4 +++-
3 files changed, 22 insertions(+), 5 deletions(-)
diffs (85 lines):
diff -r 73afa56c5a57 -r 700bcf9a699c sys/dev/usb/u3g.c
--- a/sys/dev/usb/u3g.c Tue Feb 25 19:22:18 2020 +0000
+++ b/sys/dev/usb/u3g.c Thu Feb 27 14:32:31 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: u3g.c,v 1.34 2017/05/24 20:23:58 christos Exp $ */
+/* $NetBSD: u3g.c,v 1.34.2.1 2020/02/27 14:32:31 martin Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: u3g.c,v 1.34 2017/05/24 20:23:58 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: u3g.c,v 1.34.2.1 2020/02/27 14:32:31 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -258,6 +258,10 @@
/* 4G Systems */
{ USB_VENDOR_4GSYSTEMS, USB_PRODUCT_4GSYSTEMS_XSSTICK_P14 },
{ USB_VENDOR_4GSYSTEMS, USB_PRODUCT_4GSYSTEMS_XSSTICK_W14 },
+
+ /* DLink */
+ { USB_VENDOR_DLINK, USB_PRODUCT_DLINK_DWM157 },
+ { USB_VENDOR_DLINK, USB_PRODUCT_DLINK_DWM157E },
};
/*
diff -r 73afa56c5a57 -r 700bcf9a699c sys/dev/usb/umodeswitch.c
--- a/sys/dev/usb/umodeswitch.c Tue Feb 25 19:22:18 2020 +0000
+++ b/sys/dev/usb/umodeswitch.c Thu Feb 27 14:32:31 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: umodeswitch.c,v 1.1 2017/05/24 20:23:58 christos Exp $ */
+/* $NetBSD: umodeswitch.c,v 1.1.2.1 2020/02/27 14:32:31 martin Exp $ */
/*-
* Copyright (c) 2009, 2017 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: umodeswitch.c,v 1.1 2017/05/24 20:23:58 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umodeswitch.c,v 1.1.2.1 2020/02/27 14:32:31 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -428,6 +428,17 @@
return u3g_4gsystems_reinit(uaa->uaa_device);
break;
+ case USB_VENDOR_DLINK:
+ switch (uaa->uaa_product) {
+ case USB_PRODUCT_DLINK_DWM157E_CD:
+ case USB_PRODUCT_DLINK_DWM157_CD:
+ (void)u3g_bulk_ata_eject(uaa->uaa_device);
+ (void)u3g_bulk_scsi_eject(uaa->uaa_device);
+ return UMATCH_HIGHEST;
+ default:
+ break;
+ }
+
default:
break;
}
diff -r 73afa56c5a57 -r 700bcf9a699c sys/dev/usb/usbdevs
--- a/sys/dev/usb/usbdevs Tue Feb 25 19:22:18 2020 +0000
+++ b/sys/dev/usb/usbdevs Thu Feb 27 14:32:31 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: usbdevs,v 1.736.2.5 2019/08/01 13:40:54 martin Exp $
+$NetBSD: usbdevs,v 1.736.2.6 2020/02/27 14:32:31 martin Exp $
/*-
* Copyright (c) 1998-2004 The NetBSD Foundation, Inc.
@@ -1425,8 +1425,10 @@
product DLINK DSB650TX3 0x400b 10/100 ethernet adapter
product DLINK DSB650TX2 0x4102 10/100 ethernet adapter
product DLINK DSB650 0xabc1 10/100 ethernet adapter
+product DLINK DWM157E_CD 0xa407 DWM-157 CD-ROM Mode
product DLINK DWM157_CD 0xa707 DWM-157 CD-ROM Mode
product DLINK DWM157 0x7d02 DWM-157 LTE
+product DLINK DWM157E 0x7d0e DWM-157 LTE
product DLINK DWM222_CD 0xab00 DWM-222 CD-ROM Mode
product DLINK DWM222 0x7e35 DWM-222 LTE
product DLINK DWR510_CD 0xa805 DWR-510 CD-ROM Mode
Home |
Main Index |
Thread Index |
Old Index