Module Name: src
Committed By: pgoyette
Date: Sun May 14 22:30:13 UTC 2023
Modified Files:
src/sys/dev/usb: usb_quirks.c usbdevs
Log Message:
Add a Lenovo mouse so we can set the ALWAYS_ON quirk.
To generate a diff of this commit:
cvs rdiff -u -r1.105 -r1.106 src/sys/dev/usb/usb_quirks.c
cvs rdiff -u -r1.807 -r1.808 src/sys/dev/usb/usbdevs
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/usb_quirks.c
diff -u src/sys/dev/usb/usb_quirks.c:1.105 src/sys/dev/usb/usb_quirks.c:1.106
--- src/sys/dev/usb/usb_quirks.c:1.105 Sun Mar 6 23:36:50 2022
+++ src/sys/dev/usb/usb_quirks.c Sun May 14 22:30:13 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: usb_quirks.c,v 1.105 2022/03/06 23:36:50 andvar Exp $ */
+/* $NetBSD: usb_quirks.c,v 1.106 2023/05/14 22:30:13 pgoyette Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_quirks.c,v 1.30 2003/01/02 04:15:55 imp Exp $ */
/*
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb_quirks.c,v 1.105 2022/03/06 23:36:50 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb_quirks.c,v 1.106 2023/05/14 22:30:13 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -401,6 +401,7 @@ Static const struct usbd_quirk_entry {
{ UQ_ALWAYS_ON, NULL }},
{ USB_VENDOR_LOGITECH, USB_PRODUCT_LOGITECH_B100, ANY,
{ UQ_ALWAYS_ON, NULL }},
+ { USB_VENDOR_LENOVO, USB_PRODUCT_LENOVO_OPTUSBMOUSE, ANY, { UQ_ALQAYS_ON, NULL }},
/*
* The HAILUCK USB Keyboard has a built-in touchpad, which
* needs to be active for the keyboard to function properly.
Index: src/sys/dev/usb/usbdevs
diff -u src/sys/dev/usb/usbdevs:1.807 src/sys/dev/usb/usbdevs:1.808
--- src/sys/dev/usb/usbdevs:1.807 Sat Feb 11 22:41:15 2023
+++ src/sys/dev/usb/usbdevs Sun May 14 22:30:13 2023
@@ -1,4 +1,4 @@
-$NetBSD: usbdevs,v 1.807 2023/02/11 22:41:15 nia Exp $
+$NetBSD: usbdevs,v 1.808 2023/05/14 22:30:13 pgoyette Exp $
/*-
* Copyright (c) 1998-2004 The NetBSD Foundation, Inc.
@@ -2729,6 +2729,7 @@ product PINNACLE PCTV73E 0x0237 Pinnacle
/* PixArt */
product PIXART RPIMOUSE 0x2510 Raspberry Pi Mouse
+product LENOVO OPTUSBMOUSE 0x600e Lenovo USB Optical Mouse
/* Planex Communications products */
product PLANEX GW_US11H 0x14ea GW-US11H WLAN