Skip to content

Commit 5e20645

Browse files
committed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid
Pull HID updates from Jiri Kosina: - rework of generic input handling which ultimately makes the processing of tablet events more generic and reliable (Benjamin Tissoires) - fixes for handling unnumbered reports fully correctly in i2c-hid (Angela Czubak, Dmitry Torokhov) - untangling of intermingled code for sending and handling output reports in i2c-hid (Dmitry Torokhov) - Apple magic keyboard support improvements for newer models (José Expósito) - Apple T2 Macs support improvements (Aun-Ali Zaidi, Paul Pawlowski) - driver for Razer Blackwidow keyboards (Jelle van der Waa) - driver for SiGma Micro keyboards (Desmond Lim) - integration of first part of DIGImend patches in order to ultimately vastly improve Linux support of tablets (Nikolai Kondrashov, José Expósito) * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid: (55 commits) HID: intel-ish-hid: Use dma_alloc_coherent for firmware update Input: docs: add more details on the use of BTN_TOOL HID: input: accommodate priorities for slotted devices HID: input: remove the need for HID_QUIRK_INVERT HID: input: enforce Invert usage to be processed before InRange HID: core: for input reports, process the usages by priority list HID: compute an ordered list of input fields to process HID: input: move up out-of-range processing of input values HID: input: rework spaghetti code with switch statements HID: input: tag touchscreens as such if the physical is not there HID: core: split data fetching from processing in hid_input_field() HID: core: de-duplicate some code in hid_input_field() HID: core: statically allocate read buffers HID: uclogic: Support multiple frame input devices HID: uclogic: Define report IDs before their descriptors HID: uclogic: Put version first in rdesc namespace HID: uclogic: Use "frame" instead of "buttonpad" HID: uclogic: Use different constants for frame report IDs HID: uclogic: Specify total report size to buttonpad macro HID: uclogic: Switch to matching subreport bytes ...
2 parents 1464677 + b146dbb commit 5e20645

20 files changed

+1827
-741
lines changed

Documentation/input/event-codes.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ A few EV_KEY codes have special meanings:
137137
code should be set to a value of 1. When the tool is no longer interacting
138138
with the input device, the BTN_TOOL_<name> code should be reset to 0. All
139139
trackpads, tablets, and touchscreens should use at least one BTN_TOOL_<name>
140-
code when events are generated.
140+
code when events are generated. Likewise all trackpads, tablets, and
141+
touchscreens should export only one BTN_TOOL_<name> at a time. To not break
142+
existing userspace, it is recommended to not switch tool in one EV_SYN frame
143+
but first emitting the old BTN_TOOL_<name> at 0, then emit one SYN_REPORT
144+
and then set the new BTN_TOOL_<name> at 1.
141145

142146
* BTN_TOUCH:
143147

drivers/hid/Kconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ config HID_ACRUX_FF
128128
config HID_APPLE
129129
tristate "Apple {i,Power,Mac}Books"
130130
depends on HID
131+
depends on LEDS_CLASS
132+
depends on NEW_LEDS
131133
default !EXPERT
132134
help
133135
Support for some Apple devices which less or more break
@@ -929,6 +931,13 @@ config PLAYSTATION_FF
929931
Say Y here if you would like to enable force feedback support for
930932
PlayStation game controllers.
931933

934+
config HID_RAZER
935+
tristate "Razer non-fully HID-compliant devices"
936+
depends on HID
937+
help
938+
Support for Razer devices that are not fully compliant with the
939+
HID standard.
940+
932941
config HID_PRIMAX
933942
tristate "Primax non-fully HID-compliant devices"
934943
depends on HID
@@ -984,6 +993,16 @@ config HID_SEMITEK
984993
- Woo-dy
985994
- X-Bows Nature/Knight
986995

996+
config HID_SIGMAMICRO
997+
tristate "SiGma Micro-based keyboards"
998+
depends on USB_HID
999+
help
1000+
Support for keyboards that use the SiGma Micro (a.k.a SigmaChip) IC.
1001+
1002+
Supported devices:
1003+
- Landslides KR-700
1004+
- Rapoo V500
1005+
9871006
config HID_SONY
9881007
tristate "Sony PS2/3/4 accessories"
9891008
depends on USB_HID

drivers/hid/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ hid-picolcd-$(CONFIG_DEBUG_FS) += hid-picolcd_debugfs.o
9999
obj-$(CONFIG_HID_PLANTRONICS) += hid-plantronics.o
100100
obj-$(CONFIG_HID_PLAYSTATION) += hid-playstation.o
101101
obj-$(CONFIG_HID_PRIMAX) += hid-primax.o
102+
obj-$(CONFIG_HID_RAZER) += hid-razer.o
102103
obj-$(CONFIG_HID_REDRAGON) += hid-redragon.o
103104
obj-$(CONFIG_HID_RETRODE) += hid-retrode.o
104105
obj-$(CONFIG_HID_ROCCAT) += hid-roccat.o hid-roccat-common.o \
@@ -109,6 +110,7 @@ obj-$(CONFIG_HID_RMI) += hid-rmi.o
109110
obj-$(CONFIG_HID_SAITEK) += hid-saitek.o
110111
obj-$(CONFIG_HID_SAMSUNG) += hid-samsung.o
111112
obj-$(CONFIG_HID_SEMITEK) += hid-semitek.o
113+
obj-$(CONFIG_HID_SIGMAMICRO) += hid-sigmamicro.o
112114
obj-$(CONFIG_HID_SMARTJOYPLUS) += hid-sjoy.o
113115
obj-$(CONFIG_HID_SONY) += hid-sony.o
114116
obj-$(CONFIG_HID_SPEEDLINK) += hid-speedlink.o

drivers/hid/amd-sfh-hid/amd_sfh_pcie.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,8 @@ static int amd_mp2_pci_probe(struct pci_dev *pdev, const struct pci_device_id *i
301301
pci_set_master(pdev);
302302
rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
303303
if (rc) {
304-
rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
305-
if (rc) {
306-
dev_err(&pdev->dev, "failed to set DMA mask\n");
307-
return rc;
308-
}
304+
dev_err(&pdev->dev, "failed to set DMA mask\n");
305+
return rc;
309306
}
310307

311308
privdata->cl_data = devm_kzalloc(&pdev->dev, sizeof(struct amdtp_cl_data), GFP_KERNEL);

0 commit comments

Comments
 (0)