Module Name: src
Committed By: khorben
Date: Sat Aug 5 12:38:08 UTC 2017
Modified Files:
src/sys/dev/usb: umodeswitch.c
Log Message:
Automatically eject RALINK RT73 devices
This lets the MW-P54SS USB Wireless Broadband Router from Synet attach
as rum(4).
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 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.2 src/sys/dev/usb/umodeswitch.c:1.3
--- src/sys/dev/usb/umodeswitch.c:1.2 Sat Aug 5 12:29:38 2017
+++ src/sys/dev/usb/umodeswitch.c Sat Aug 5 12:38:08 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: umodeswitch.c,v 1.2 2017/08/05 12:29:38 khorben Exp $ */
+/* $NetBSD: umodeswitch.c,v 1.3 2017/08/05 12:38:08 khorben 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.2 2017/08/05 12:29:38 khorben Exp $");
+__KERNEL_RCSID(0, "$NetBSD: umodeswitch.c,v 1.3 2017/08/05 12:38:08 khorben Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -406,6 +406,14 @@ umodeswitch_match(device_t parent, cfdat
return u3g_bulk_scsi_eject(uaa->uaa_device);
break;
+ case USB_VENDOR_RALINK:
+ switch (uaa->uaa_product){
+ case USB_PRODUCT_RALINK_RT73:
+ return u3g_bulk_scsi_eject(uaa->uaa_device);
+ break;
+ }
+ break;
+
case USB_VENDOR_SIERRA:
if (uaa->uaa_product == USB_PRODUCT_SIERRA_INSTALLER)
return u3g_sierra_reinit(uaa->uaa_device);