Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

platform/surface: aggregator_registry: Add HID subsystem devices

Add HID subsystem (TC=0x15) devices. These devices need to be registered
for 7th-generation Surface models. On previous generations, these
devices are either provided as platform devices via ACPI (Surface Laptop
1 and 2) or implemented as standard USB device.

Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Link: https://lore.kernel.org/r/20210212115439.1525216-7-luzmaximilian@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>

authored by

Maximilian Luz and committed by
Hans de Goede
aebf0a11 f68aaf85

+49
+49
drivers/platform/surface/surface_aggregator_registry.c
··· 77 77 .parent = &ssam_node_root, 78 78 }; 79 79 80 + /* HID keyboard. */ 81 + static const struct software_node ssam_node_hid_main_keyboard = { 82 + .name = "ssam:01:15:02:01:00", 83 + .parent = &ssam_node_root, 84 + }; 85 + 86 + /* HID touchpad. */ 87 + static const struct software_node ssam_node_hid_main_touchpad = { 88 + .name = "ssam:01:15:02:03:00", 89 + .parent = &ssam_node_root, 90 + }; 91 + 92 + /* HID device instance 5 (unknown HID device). */ 93 + static const struct software_node ssam_node_hid_main_iid5 = { 94 + .name = "ssam:01:15:02:05:00", 95 + .parent = &ssam_node_root, 96 + }; 97 + 98 + /* HID keyboard (base hub). */ 99 + static const struct software_node ssam_node_hid_base_keyboard = { 100 + .name = "ssam:01:15:02:01:00", 101 + .parent = &ssam_node_hub_base, 102 + }; 103 + 104 + /* HID touchpad (base hub). */ 105 + static const struct software_node ssam_node_hid_base_touchpad = { 106 + .name = "ssam:01:15:02:03:00", 107 + .parent = &ssam_node_hub_base, 108 + }; 109 + 110 + /* HID device instance 5 (unknown HID device, base hub). */ 111 + static const struct software_node ssam_node_hid_base_iid5 = { 112 + .name = "ssam:01:15:02:05:00", 113 + .parent = &ssam_node_hub_base, 114 + }; 115 + 116 + /* HID device instance 6 (unknown HID device, base hub). */ 117 + static const struct software_node ssam_node_hid_base_iid6 = { 118 + .name = "ssam:01:15:02:06:00", 119 + .parent = &ssam_node_hub_base, 120 + }; 121 + 80 122 /* Devices for Surface Book 2. */ 81 123 static const struct software_node *ssam_node_group_sb2[] = { 82 124 &ssam_node_root, ··· 135 93 &ssam_node_bat_sb3base, 136 94 &ssam_node_tmp_pprof, 137 95 &ssam_node_bas_dtx, 96 + &ssam_node_hid_base_keyboard, 97 + &ssam_node_hid_base_touchpad, 98 + &ssam_node_hid_base_iid5, 99 + &ssam_node_hid_base_iid6, 138 100 NULL, 139 101 }; 140 102 ··· 162 116 &ssam_node_bat_ac, 163 117 &ssam_node_bat_main, 164 118 &ssam_node_tmp_pprof, 119 + &ssam_node_hid_main_keyboard, 120 + &ssam_node_hid_main_touchpad, 121 + &ssam_node_hid_main_iid5, 165 122 NULL, 166 123 }; 167 124