Re: [PATCH v4 RESEND 3/3] soc: qcom: preserve CPU endianness for QMI_DATA_LEN
From: Dmitry Baryshkov
Date: Wed Nov 19 2025 - 04:06:46 EST
On Tue, Nov 18, 2025 at 07:53:41AM +0100, Alexander Wilhelm wrote:
> 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@xxxxxxxxxxxx>
> ---
> drivers/soc/qcom/qmi_encdec.c | 11 ++++-------
> 1 file changed, 4 insertions(+), 7 deletions(-)
>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@xxxxxxxxxxxxxxxx>
--
With best wishes
Dmitry