Commit 603df700 authored by Alexander Wilhelm's avatar Alexander Wilhelm Committed by Greg Kroah-Hartman
Browse files

soc: qcom: QMI encoding/decoding for big endian



[ Upstream commit 3ced38da ]

The QMI_DATA_LEN type may have different sizes. Taking the element's
address of that type and interpret it as a smaller sized ones works fine
for little endian platforms but not for big endian ones. Instead use
temporary variables of smaller sized types and cast them correctly to
support big endian platforms.

Signed-off-by: default avatarAlexander Wilhelm <alexander.wilhelm@westermo.com>
Fixes: 9b8a11e8 ("soc: qcom: Introduce QMI encoder/decoder")
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250522143530.3623809-2-alexander.wilhelm@westermo.com


Signed-off-by: default avatarBjorn Andersson <andersson@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 41917d9c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment