Module Name: src Committed By: martin Date: Fri Aug 4 19:51:03 UTC 2023
Modified Files: src/sys/dev/usb [netbsd-9]: umodeswitch.c Log Message: Pull up following revision(s) (requested by manu in ticket #1709): sys/dev/usb/umodeswitch.c: revision 1.6 Add support for D-Link DWM-222 4G LTS USB adapter Oddly, the fake umass device does not detach after umodeswitch does its duty, but functionality is there, thanks to five u3g devices that attach. u3g devices 0, 3 and 4 does not seem to accept AT commands. u3g devices 1 and 2 are fine to be used as modems. To generate a diff of this commit: cvs rdiff -u -r1.4.6.1 -r1.4.6.2 src/sys/dev/usb/umodeswitch.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/umodeswitch.c diff -u src/sys/dev/usb/umodeswitch.c:1.4.6.1 src/sys/dev/usb/umodeswitch.c:1.4.6.2 --- src/sys/dev/usb/umodeswitch.c:1.4.6.1 Thu Feb 27 17:22:56 2020 +++ src/sys/dev/usb/umodeswitch.c Fri Aug 4 19:51:03 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: umodeswitch.c,v 1.4.6.1 2020/02/27 17:22:56 martin Exp $ */ +/* $NetBSD: umodeswitch.c,v 1.4.6.2 2023/08/04 19:51:03 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.4.6.1 2020/02/27 17:22:56 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: umodeswitch.c,v 1.4.6.2 2023/08/04 19:51:03 martin Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -440,6 +440,7 @@ umodeswitch_match(device_t parent, cfdat switch (uaa->uaa_product) { case USB_PRODUCT_DLINK_DWM157E_CD: case USB_PRODUCT_DLINK_DWM157_CD: + case USB_PRODUCT_DLINK_DWM222_CD: (void)u3g_bulk_ata_eject(uaa->uaa_device); (void)u3g_bulk_scsi_eject(uaa->uaa_device); return UMATCH_HIGHEST;