]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: qcom: qmi: Enumerate the service IDs of QMI
authorDaniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Mon, 9 Mar 2026 23:03:30 +0000 (00:03 +0100)
committerBjorn Andersson <andersson@kernel.org>
Mon, 16 Mar 2026 01:52:40 +0000 (20:52 -0500)
commite4ee7621d732162ea2ec714ae76dac2f70519417
tree3093a8917a36fd7359509f2142ed55f29113a297
parent6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f
soc: qcom: qmi: Enumerate the service IDs of QMI

The QMI framework proposes a set of services which are defined by an
integer identifier. The different QMI client lookup for the services
via this identifier. Moreover, the function qmi_add_lookup() and
qmi_add_server() must match the service ID but the code in different
places set the same value but with a different macro name. These
macros are spreaded across the different subsystems implementing the
protocols associated with a service. It would make more sense to
define them in the QMI header for the sake of consistency and clarity.

This change use an unified naming for the services and enumerate the
ones implemented in the Linux kernel. More services can come later and
put the service ID in this same header.

Signed-off-by: Daniel Lezcano <daniel.lezcano@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260309230346.3584252-2-daniel.lezcano@oss.qualcomm.com
[bjorn: Lower case hex constants]
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
include/linux/soc/qcom/qmi.h