Re: [PATCH] interconnect: qcom: fix endian annotations of BCM aux data

From: Konrad Dybcio

Date: Wed Sep 23 2026 - 05:17:13 EST


On 9/22/26 8:27 PM, Rosen Penev wrote:
> struct qcom_icc_bcm::aux_data stores the values parsed from the command
> db, converted to native byte order, but is typed as the raw little-endian
> struct bcm_db. Sparse therefore complains when the converted values are
> assigned to the __le32/__le16 fields and when those restricted fields
> are used in bandwidth calculations.

This should be fixed by using cpu_to_leXX()/leXX_to_cpu() when
accessing these fields instead

Konrad