]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
soc: qcom: preserve CPU endianness for QMI_DATA_LEN
authorAlexander Wilhelm <alexander.wilhelm@westermo.com>
Wed, 19 Nov 2025 10:40:07 +0000 (11:40 +0100)
committerBjorn Andersson <andersson@kernel.org>
Fri, 16 Jan 2026 14:19:46 +0000 (08:19 -0600)
commitfe099c387e06b566840449ac21008db1b25ad1f4
tree364e09aad736c3f86638479ec4484a405d72f506
parentd9c83903be080a6bc25ccabaafe5487836a7e1a7
soc: qcom: preserve CPU endianness for QMI_DATA_LEN

To ensure correct handling of endianness in the QMI subsystem, the
QMI_DATA_LEN field used in host-side drivers remains in CPU-native byte
order. Remove unnecessary endianness conversions, considering that
QMI_DATA_LEN is always of type `u32` on the host. On the QMI wire
interface, however, its representation is variable and may use either 1 or
2 bytes.

Signed-off-by: Alexander Wilhelm <alexander.wilhelm@westermo.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251119104008.3505152-4-alexander.wilhelm@westermo.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
drivers/soc/qcom/qmi_encdec.c