Skip to content

Commit fc73697

Browse files
author
Jiri Kosina
committed
Merge branch 'upstream' into for-linus
Conflicts: drivers/hid/hid-ids.h
2 parents 1c5474a + 8c8b01c commit fc73697

8 files changed

Lines changed: 276 additions & 74 deletions

File tree

‎drivers/hid/Kconfig‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@ config HID_EGALAX
148148
---help---
149149
Support for the eGalax dual-touch panel.
150150

151+
config HID_ELECOM
152+
tristate "ELECOM"
153+
depends on BT_HIDP
154+
---help---
155+
Support for the ELECOM BM084 (bluetooth mouse).
156+
151157
config HID_EZKEY
152158
tristate "Ezkey" if EMBEDDED
153159
depends on USB_HID

‎drivers/hid/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ obj-$(CONFIG_HID_CHICONY) += hid-chicony.o
3232
obj-$(CONFIG_HID_CYPRESS) += hid-cypress.o
3333
obj-$(CONFIG_HID_DRAGONRISE) += hid-drff.o
3434
obj-$(CONFIG_HID_EGALAX) += hid-egalax.o
35+
obj-$(CONFIG_HID_ELECOM) += hid-elecom.o
3536
obj-$(CONFIG_HID_EZKEY) += hid-ezkey.o
3637
obj-$(CONFIG_HID_GYRATION) += hid-gyration.o
3738
obj-$(CONFIG_HID_KENSINGTON) += hid-kensington.o

‎drivers/hid/hid-core.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,6 +1294,7 @@ static const struct hid_device_id hid_blacklist[] = {
12941294
{ HID_USB_DEVICE(USB_VENDOR_ID_CYPRESS, USB_DEVICE_ID_CYPRESS_MOUSE) },
12951295
{ HID_USB_DEVICE(USB_VENDOR_ID_DRAGONRISE, 0x0006) },
12961296
{ HID_USB_DEVICE(USB_VENDOR_ID_DWAV, USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH) },
1297+
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_ELECOM, USB_DEVICE_ID_ELECOM_BM084) },
12971298
{ HID_USB_DEVICE(USB_VENDOR_ID_EZKEY, USB_DEVICE_ID_BTC_8193) },
12981299
{ HID_USB_DEVICE(USB_VENDOR_ID_GAMERON, USB_DEVICE_ID_GAMERON_DUAL_PSX_ADAPTOR) },
12991300
{ HID_USB_DEVICE(USB_VENDOR_ID_GAMERON, USB_DEVICE_ID_GAMERON_DUAL_PCS_ADAPTOR) },

‎drivers/hid/hid-elecom.c‎

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/*
2+
* HID driver for Elecom BM084 (bluetooth mouse).
3+
* Removes a non-existing horizontal wheel from
4+
* the HID descriptor.
5+
* (This module is based on "hid-ortek".)
6+
*
7+
* Copyright (c) 2010 Richard Nauber <Richard.Nauber@gmail.com>
8+
*/
9+
10+
/*
11+
* This program is free software; you can redistribute it and/or modify it
12+
* under the terms of the GNU General Public License as published by the Free
13+
* Software Foundation; either version 2 of the License, or (at your option)
14+
* any later version.
15+
*/
16+
17+
#include <linux/device.h>
18+
#include <linux/hid.h>
19+
#include <linux/module.h>
20+
21+
#include "hid-ids.h"
22+
23+
static void elecom_report_fixup(struct hid_device *hdev, __u8 *rdesc,
24+
unsigned int rsize)
25+
{
26+
if (rsize >= 48 && rdesc[46] == 0x05 && rdesc[47] == 0x0c) {
27+
dev_info(&hdev->dev, "Fixing up Elecom BM084 "
28+
"report descriptor.\n");
29+
rdesc[47] = 0x00;
30+
}
31+
}
32+
33+
static const struct hid_device_id elecom_devices[] = {
34+
{ HID_BLUETOOTH_DEVICE(USB_VENDOR_ID_ELECOM, USB_DEVICE_ID_ELECOM_BM084)},
35+
{ }
36+
};
37+
MODULE_DEVICE_TABLE(hid, elecom_devices);
38+
39+
static struct hid_driver elecom_driver = {
40+
.name = "elecom",
41+
.id_table = elecom_devices,
42+
.report_fixup = elecom_report_fixup
43+
};
44+
45+
static int __init elecom_init(void)
46+
{
47+
return hid_register_driver(&elecom_driver);
48+
}
49+
50+
static void __exit elecom_exit(void)
51+
{
52+
hid_unregister_driver(&elecom_driver);
53+
}
54+
55+
module_init(elecom_init);
56+
module_exit(elecom_exit);
57+
MODULE_LICENSE("GPL");

‎drivers/hid/hid-ids.h‎

Lines changed: 42 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#define USB_DEVICE_ID_ACECAD_FLAIR 0x0004
3535
#define USB_DEVICE_ID_ACECAD_302 0x0008
3636

37-
#define USB_VENDOR_ID_ADS_TECH 0x06e1
37+
#define USB_VENDOR_ID_ADS_TECH 0x06e1
3838
#define USB_DEVICE_ID_ADS_TECH_RADIO_SI470X 0xa155
3939

4040
#define USB_VENDOR_ID_AFATECH 0x15a4
@@ -81,12 +81,12 @@
8181
#define USB_DEVICE_ID_APPLE_WELLSPRING_ANSI 0x0223
8282
#define USB_DEVICE_ID_APPLE_WELLSPRING_ISO 0x0224
8383
#define USB_DEVICE_ID_APPLE_WELLSPRING_JIS 0x0225
84-
#define USB_DEVICE_ID_APPLE_GEYSER4_HF_ANSI 0x0229
85-
#define USB_DEVICE_ID_APPLE_GEYSER4_HF_ISO 0x022a
86-
#define USB_DEVICE_ID_APPLE_GEYSER4_HF_JIS 0x022b
87-
#define USB_DEVICE_ID_APPLE_ALU_WIRELESS_ANSI 0x022c
88-
#define USB_DEVICE_ID_APPLE_ALU_WIRELESS_ISO 0x022d
89-
#define USB_DEVICE_ID_APPLE_ALU_WIRELESS_JIS 0x022e
84+
#define USB_DEVICE_ID_APPLE_GEYSER4_HF_ANSI 0x0229
85+
#define USB_DEVICE_ID_APPLE_GEYSER4_HF_ISO 0x022a
86+
#define USB_DEVICE_ID_APPLE_GEYSER4_HF_JIS 0x022b
87+
#define USB_DEVICE_ID_APPLE_ALU_WIRELESS_ANSI 0x022c
88+
#define USB_DEVICE_ID_APPLE_ALU_WIRELESS_ISO 0x022d
89+
#define USB_DEVICE_ID_APPLE_ALU_WIRELESS_JIS 0x022e
9090
#define USB_DEVICE_ID_APPLE_WELLSPRING2_ANSI 0x0230
9191
#define USB_DEVICE_ID_APPLE_WELLSPRING2_ISO 0x0231
9292
#define USB_DEVICE_ID_APPLE_WELLSPRING2_JIS 0x0232
@@ -118,8 +118,8 @@
118118
#define USB_VENDOR_ID_AVERMEDIA 0x07ca
119119
#define USB_DEVICE_ID_AVER_FM_MR800 0xb800
120120

121-
#define USB_VENDOR_ID_BELKIN 0x050d
122-
#define USB_DEVICE_ID_FLIP_KVM 0x3201
121+
#define USB_VENDOR_ID_BELKIN 0x050d
122+
#define USB_DEVICE_ID_FLIP_KVM 0x3201
123123

124124
#define USB_VENDOR_ID_BERKSHIRE 0x0c98
125125
#define USB_DEVICE_ID_BERKSHIRE_PCWD 0x1140
@@ -128,7 +128,7 @@
128128
#define USB_DEVICE_ID_BTC_EMPREX_REMOTE 0x5578
129129

130130
#define USB_VENDOR_ID_CANDO 0x2087
131-
#define USB_DEVICE_ID_CANDO_MULTI_TOUCH 0x0a01
131+
#define USB_DEVICE_ID_CANDO_MULTI_TOUCH 0x0a01
132132
#define USB_DEVICE_ID_CANDO_MULTI_TOUCH_11_6 0x0b03
133133

134134
#define USB_VENDOR_ID_CH 0x068e
@@ -175,7 +175,7 @@
175175
#define USB_DEVICE_ID_DEALEXTREAME_RADIO_SI4701 0x819a
176176

177177
#define USB_VENDOR_ID_DELORME 0x1163
178-
#define USB_DEVICE_ID_DELORME_EARTHMATE 0x0100
178+
#define USB_DEVICE_ID_DELORME_EARTHMATE 0x0100
179179
#define USB_DEVICE_ID_DELORME_EM_LT20 0x0200
180180

181181
#define USB_VENDOR_ID_DMI 0x0c0b
@@ -187,19 +187,22 @@
187187
#define USB_DEVICE_ID_EGALAX_TOUCHCONTROLLER 0x0001
188188
#define USB_DEVICE_ID_DWAV_EGALAX_MULTITOUCH 0x480d
189189

190+
#define USB_VENDOR_ID_ELECOM 0x056e
191+
#define USB_DEVICE_ID_ELECOM_BM084 0x0061
192+
190193
#define USB_VENDOR_ID_ELO 0x04E7
191194
#define USB_DEVICE_ID_ELO_TS2700 0x0020
192195

193196
#define USB_VENDOR_ID_ESSENTIAL_REALITY 0x0d7f
194197
#define USB_DEVICE_ID_ESSENTIAL_REALITY_P5 0x0100
195198

196-
#define USB_VENDOR_ID_ETURBOTOUCH 0x22b9
197-
#define USB_DEVICE_ID_ETURBOTOUCH 0x0006
198-
199199
#define USB_VENDOR_ID_ETT 0x0664
200200
#define USB_DEVICE_ID_TC5UH 0x0309
201201

202-
#define USB_VENDOR_ID_EZKEY 0x0518
202+
#define USB_VENDOR_ID_ETURBOTOUCH 0x22b9
203+
#define USB_DEVICE_ID_ETURBOTOUCH 0x0006
204+
205+
#define USB_VENDOR_ID_EZKEY 0x0518
203206
#define USB_DEVICE_ID_BTC_8193 0x0002
204207

205208
#define USB_VENDOR_ID_GAMERON 0x0810
@@ -296,9 +299,16 @@
296299
#define USB_VENDOR_ID_KBGEAR 0x084e
297300
#define USB_DEVICE_ID_KBGEAR_JAMSTUDIO 0x1001
298301

302+
#define USB_VENDOR_ID_KENSINGTON 0x047d
303+
#define USB_DEVICE_ID_KS_SLIMBLADE 0x2041
304+
299305
#define USB_VENDOR_ID_KWORLD 0x1b80
300306
#define USB_DEVICE_ID_KWORLD_RADIO_FM700 0xd700
301307

308+
#define USB_VENDOR_ID_KYE 0x0458
309+
#define USB_DEVICE_ID_KYE_ERGO_525V 0x0087
310+
#define USB_DEVICE_ID_KYE_GPEN_560 0x5003
311+
302312
#define USB_VENDOR_ID_LABTEC 0x1020
303313
#define USB_DEVICE_ID_LABTEC_WIRELESS_KEYBOARD 0x0006
304314

@@ -318,9 +328,6 @@
318328
#define USB_DEVICE_ID_LD_POWERCONTROL 0x2030
319329
#define USB_DEVICE_ID_LD_MACHINETEST 0x2040
320330

321-
#define USB_VENDOR_ID_KENSINGTON 0x047d
322-
#define USB_DEVICE_ID_KS_SLIMBLADE 0x2041
323-
324331
#define USB_VENDOR_ID_LOGITECH 0x046d
325332
#define USB_DEVICE_ID_LOGITECH_RECEIVER 0xc101
326333
#define USB_DEVICE_ID_LOGITECH_HARMONY_FIRST 0xc110
@@ -376,23 +383,23 @@
376383
#define USB_VENDOR_ID_MONTEREY 0x0566
377384
#define USB_DEVICE_ID_GENIUS_KB29E 0x3004
378385

386+
#define USB_VENDOR_ID_NATIONAL_SEMICONDUCTOR 0x0400
387+
#define USB_DEVICE_ID_N_S_HARMONY 0xc359
388+
389+
#define USB_VENDOR_ID_NATSU 0x08b7
390+
#define USB_DEVICE_ID_NATSU_GAMEPAD 0x0001
391+
379392
#define USB_VENDOR_ID_NCR 0x0404
380393
#define USB_DEVICE_ID_NCR_FIRST 0x0300
381394
#define USB_DEVICE_ID_NCR_LAST 0x03ff
382395

383-
#define USB_VENDOR_ID_NATIONAL_SEMICONDUCTOR 0x0400
384-
#define USB_DEVICE_ID_N_S_HARMONY 0xc359
385-
386-
#define USB_VENDOR_ID_NATSU 0x08b7
387-
#define USB_DEVICE_ID_NATSU_GAMEPAD 0x0001
388-
389396
#define USB_VENDOR_ID_NEC 0x073e
390397
#define USB_DEVICE_ID_NEC_USB_GAME_PAD 0x0301
391398

392399
#define USB_VENDOR_ID_NEXTWINDOW 0x1926
393400
#define USB_DEVICE_ID_NEXTWINDOW_TOUCHSCREEN 0x0003
394401

395-
#define USB_VENDOR_ID_NTRIG 0x1b96
402+
#define USB_VENDOR_ID_NTRIG 0x1b96
396403
#define USB_DEVICE_ID_NTRIG_TOUCH_SCREEN 0x0001
397404
#define USB_DEVICE_ID_NTRIG_TOUCH_SCREEN_1 0x0003
398405
#define USB_DEVICE_ID_NTRIG_TOUCH_SCREEN_2 0x0004
@@ -427,7 +434,7 @@
427434
#define USB_VENDOR_ID_PETALYNX 0x18b1
428435
#define USB_DEVICE_ID_PETALYNX_MAXTER_REMOTE 0x0037
429436

430-
#define USB_VENDOR_ID_PHILIPS 0x0471
437+
#define USB_VENDOR_ID_PHILIPS 0x0471
431438
#define USB_DEVICE_ID_PHILIPS_IEEE802154_DONGLE 0x0617
432439

433440
#define USB_VENDOR_ID_PLAYDOTCOM 0x0b43
@@ -439,16 +446,16 @@
439446
#define USB_VENDOR_ID_PRODIGE 0x05af
440447
#define USB_DEVICE_ID_PRODIGE_CORDLESS 0x3062
441448

449+
#define USB_VENDOR_ID_QUANTA 0x0408
450+
#define USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH 0x3000
451+
#define USB_DEVICE_ID_PIXART_IMAGING_INC_OPTICAL_TOUCH_SCREEN 0x3001
452+
442453
#define USB_VENDOR_ID_ROCCAT 0x1e7d
443454
#define USB_DEVICE_ID_ROCCAT_KONE 0x2ced
444455

445456
#define USB_VENDOR_ID_SAITEK 0x06a3
446457
#define USB_DEVICE_ID_SAITEK_RUMBLEPAD 0xff17
447458

448-
#define USB_VENDOR_ID_QUANTA 0x0408
449-
#define USB_DEVICE_ID_QUANTA_OPTICAL_TOUCH 0x3000
450-
#define USB_DEVICE_ID_PIXART_IMAGING_INC_OPTICAL_TOUCH_SCREEN 0x3001
451-
452459
#define USB_VENDOR_ID_SAMSUNG 0x0419
453460
#define USB_DEVICE_ID_SAMSUNG_IR_REMOTE 0x0001
454461
#define USB_DEVICE_ID_SAMSUNG_WIRELESS_KBD_MOUSE 0x0600
@@ -472,20 +479,20 @@
472479

473480
#define USB_VENDOR_ID_THRUSTMASTER 0x044f
474481

475-
#define USB_VENDOR_ID_TOUCHPACK 0x1bfd
476-
#define USB_DEVICE_ID_TOUCHPACK_RTS 0x1688
477-
478482
#define USB_VENDOR_ID_TOPMAX 0x0663
479483
#define USB_DEVICE_ID_TOPMAX_COBRAPAD 0x0103
480484

481485
#define USB_VENDOR_ID_TOPSEED 0x0766
482486
#define USB_DEVICE_ID_TOPSEED_CYBERLINK 0x0204
483487

488+
#define USB_VENDOR_ID_TOUCHPACK 0x1bfd
489+
#define USB_DEVICE_ID_TOUCHPACK_RTS 0x1688
490+
484491
#define USB_VENDOR_ID_TURBOX 0x062a
485492
#define USB_DEVICE_ID_TURBOX_KEYBOARD 0x0201
486493

487-
#define USB_VENDOR_ID_TWINHAN 0x6253
488-
#define USB_DEVICE_ID_TWINHAN_IR_REMOTE 0x0100
494+
#define USB_VENDOR_ID_TWINHAN 0x6253
495+
#define USB_DEVICE_ID_TWINHAN_IR_REMOTE 0x0100
489496

490497
#define USB_VENDOR_ID_UCLOGIC 0x5543
491498
#define USB_DEVICE_ID_UCLOGIC_TABLET_PF1209 0x0042
@@ -522,9 +529,5 @@
522529
#define USB_VENDOR_ID_ZYDACRON 0x13EC
523530
#define USB_DEVICE_ID_ZYDACRON_REMOTE_CONTROL 0x0006
524531

525-
#define USB_VENDOR_ID_KYE 0x0458
526-
#define USB_DEVICE_ID_KYE_ERGO_525V 0x0087
527-
#define USB_DEVICE_ID_KYE_GPEN_560 0x5003
528-
529532

530533
#endif

‎drivers/hid/hid-input.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,9 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel
301301

302302
case HID_UP_DIGITIZER:
303303
switch (usage->hid & 0xff) {
304+
case 0x00: /* Undefined */
305+
goto ignore;
306+
304307
case 0x30: /* TipPressure */
305308
if (!test_bit(BTN_TOUCH, input->keybit)) {
306309
device->quirks |= HID_QUIRK_NOTOUCH;

0 commit comments

Comments
 (0)