linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] coresight: tmc-etr: Don't fail probe when non-secure access is disabled
@ 2023-08-25 23:39 Yabin Cui
  2023-08-27 21:37 ` Suzuki K Poulose
  0 siblings, 1 reply; 8+ messages in thread
From: Yabin Cui @ 2023-08-25 23:39 UTC (permalink / raw)
  To: Suzuki K Poulose, Mike Leach, James Clark, Leo Yan
  Cc: Alexander Shishkin, coresight, linux-arm-kernel, linux-kernel, Yabin Cui

Because the non-secure access can be enabled later on some devices.

Signed-off-by: Yabin Cui <yabinc@google.com>
---
 drivers/hwtracing/coresight/coresight-tmc-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwtracing/coresight/coresight-tmc-core.c b/drivers/hwtracing/coresight/coresight-tmc-core.c
index c106d142e632..5ebfd12b627b 100644
--- a/drivers/hwtracing/coresight/coresight-tmc-core.c
+++ b/drivers/hwtracing/coresight/coresight-tmc-core.c
@@ -370,7 +370,7 @@ static int tmc_etr_setup_caps(struct device *parent, u32 devid, void *dev_caps)
 	struct tmc_drvdata *drvdata = dev_get_drvdata(parent);
 
 	if (!tmc_etr_has_non_secure_access(drvdata))
-		return -EACCES;
+		dev_warn(parent, "TMC ETR doesn't have non-secure access\n");
 
 	/* Set the unadvertised capabilities */
 	tmc_etr_init_caps(drvdata, (u32)(unsigned long)dev_caps);
-- 
2.42.0.rc1.204.g551eb34607-goog


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-09-01 11:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-25 23:39 [PATCH] coresight: tmc-etr: Don't fail probe when non-secure access is disabled Yabin Cui
2023-08-27 21:37 ` Suzuki K Poulose
2023-08-29 21:16   ` Yabin Cui
2023-08-30  8:52     ` Suzuki K Poulose
2023-08-30 17:49       ` Yabin Cui
2023-08-31 10:05         ` Robin Murphy
2023-08-31 21:36           ` Yabin Cui
2023-09-01 11:13             ` Robin Murphy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).