Commit af828683 authored by Jie Gan's avatar Jie Gan Committed by Greg Kroah-Hartman
Browse files

coresight: tpda: fix the logic to setup the element size



[ Upstream commit 43e0a92c ]

Some TPDM devices support both CMB and DSB datasets, requiring
the system to enable the port with both corresponding element sizes.

Currently, the logic treats tpdm_read_element_size as successful if
the CMB element size is retrieved correctly, regardless of whether
the DSB element size is obtained. This behavior causes issues
when parsing data from TPDM devices that depend on both element sizes.

To address this, the function should explicitly fail if the DSB
element size cannot be read correctly.

Fixes: e6d7f525 ("coresight-tpda: Add support to configure CMB element")
Reviewed-by: default avatarJames Clark <james.clark@linaro.org>
Signed-off-by: default avatarJie Gan <jie.gan@oss.qualcomm.com>
Signed-off-by: default avatarSuzuki K Poulose <suzuki.poulose@arm.com>
Link: https://lore.kernel.org/r/20250906-fix_element_size_issue-v2-1-dbb0ac2541a9@oss.qualcomm.com


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