Skip to contentSkip to conversation

hid-input.c && vendor defined usage pages

DISCUSSION Aseda Aboagye 2 participants 4 messages Sep 25, 2024 – Oct 15, 2024 HID

lore
Share & tools
lore
#0 lore raw

Perhaps this is a naive question, but why does hidinput_configure_usage() in hid-input.c configure vendor defined usage pages? In actuality, it seems like it's mainly handling some HP specific usage pages. Why aren't those in some hid-hp.c file that's selected by a kernel config?

Curiously,

--
Aseda Aboagye

#1 lore raw

Hi Aseda,

Quoted 4 lines · Aseda Aboagye

Perhaps this is a naive question, but why does hidinput_configure_usage() in hid-input.c configure vendor defined usage pages? In actuality, it seems like it's mainly handling some HP specific usage pages. Why aren't those in some hid-hp.c file that's selected by a kernel config?

It is simply a historic artefact. These usages were mapped way before we had HID sub-drivers and accompanying infrastructure.

Thanks.

Signature · 1 line
Dmitry
#2 lore raw
Quoted 10 lines · Dmitry Torokhov

Hi Aseda,

Quoted 4 lines · Aseda Aboagye

Perhaps this is a naive question, but why does hidinput_configure_usage() in hid-input.c configure vendor defined usage pages? In actuality, it seems like it's mainly handling some HP specific usage pages. Why aren't those in some hid-hp.c file that's selected by a kernel config?

It is simply a historic artefact. These usages were mapped way before we had HID sub-drivers and accompanying infrastructure.

Do you reckon that we're stuck with this behaviour now since migrating them out, will likely break users who don't have the appropriate sub-drivers selected in their kernel config?

Thanks,

Signature · 1 line
Aseda Aboagye
#3 lore raw
Quoted 9 lines · Aseda Aboagye
Quoted 8 lines · Dmitry Torokhov

Hi Aseda,

Quoted 4 lines · Aseda Aboagye

Perhaps this is a naive question, but why does hidinput_configure_usage() in hid-input.c configure vendor defined usage pages? In actuality, it seems like it's mainly handling some HP specific usage pages. Why aren't those in some hid-hp.c file that's selected by a kernel config?

Quoted 6 lines
Quoted 2 lines

It is simply a historic artefact. These usages were mapped way before we had HID sub-drivers and accompanying infrastructure.

Do you reckon that we're stuck with this behaviour now since migrating them out, will likely break users who don't have the appropriate sub-drivers selected in their kernel config?

We typically do not commit to keeping forward or backward compatibility for the kernel config options, it is distribution's task to configure the kernel properly, so I think it can be changed if desired.

Thanks.

Signature · 1 line
Dmitry