Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb Automatically eject RALINK RT73 devices



details:   https://anonhg.NetBSD.org/src/rev/65b407ff7815
branches:  trunk
changeset: 825902:65b407ff7815
user:      khorben <khorben%NetBSD.org@localhost>
date:      Sat Aug 05 12:38:08 2017 +0000

description:
Automatically eject RALINK RT73 devices

This lets the MW-P54SS USB Wireless Broadband Router from Synet attach
as rum(4).

diffstat:

 sys/dev/usb/umodeswitch.c |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r 7f999748f6c3 -r 65b407ff7815 sys/dev/usb/umodeswitch.c
--- a/sys/dev/usb/umodeswitch.c Sat Aug 05 12:29:38 2017 +0000
+++ b/sys/dev/usb/umodeswitch.c Sat Aug 05 12:38:08 2017 +0000
@@ -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 @@
                        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);



Home | Main Index | Thread Index | Old Index