mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-24 11:25:43 +00:00
coresight: etm4x: Set skip_power_up in etm4_init_arch_data function
[ Upstream commit1bbe0a247e
] skip_power_up is used in etm4_init_arch_data when set lpoverride. So need to set the value of it before calling using it. Fixes:5214b56358
("coresight: etm4x: Add support for sysreg only devices") Signed-off-by: Mao Jinlong <quic_jinlmao@quicinc.com> Signed-off-by: Suzuki K Poulose <suzuki.poulose@arm.com> Link: https://lore.kernel.org/r/20240131105423.9519-1-quic_jinlmao@quicinc.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
368225919b
commit
8f252c20be
1 changed files with 5 additions and 5 deletions
|
@ -1200,6 +1200,7 @@ static void etm4_init_arch_data(void *info)
|
|||
struct etm4_init_arg *init_arg = info;
|
||||
struct etmv4_drvdata *drvdata;
|
||||
struct csdev_access *csa;
|
||||
struct device *dev = init_arg->dev;
|
||||
int i;
|
||||
|
||||
drvdata = dev_get_drvdata(init_arg->dev);
|
||||
|
@ -1213,6 +1214,10 @@ static void etm4_init_arch_data(void *info)
|
|||
if (!etm4_init_csdev_access(drvdata, csa))
|
||||
return;
|
||||
|
||||
if (!csa->io_mem ||
|
||||
fwnode_property_present(dev_fwnode(dev), "qcom,skip-power-up"))
|
||||
drvdata->skip_power_up = true;
|
||||
|
||||
/* Detect the support for OS Lock before we actually use it */
|
||||
etm_detect_os_lock(drvdata, csa);
|
||||
|
||||
|
@ -2040,11 +2045,6 @@ static int etm4_add_coresight_dev(struct etm4_init_arg *init_arg)
|
|||
if (!drvdata->arch)
|
||||
return -EINVAL;
|
||||
|
||||
/* TRCPDCR is not accessible with system instructions. */
|
||||
if (!desc.access.io_mem ||
|
||||
fwnode_property_present(dev_fwnode(dev), "qcom,skip-power-up"))
|
||||
drvdata->skip_power_up = true;
|
||||
|
||||
major = ETM_ARCH_MAJOR_VERSION(drvdata->arch);
|
||||
minor = ETM_ARCH_MINOR_VERSION(drvdata->arch);
|
||||
|
||||
|
|
Loading…
Reference in a new issue