From cf18d0685fd4f922e4bbab081145a3f313c897ed Mon Sep 17 00:00:00 2001 From: Hao Zhang Date: Thu, 9 Jun 2022 09:51:32 +0800 Subject: [PATCH] coresight: funnel: Fix the duplicate-funnel enable crash issue When enable the duplicate-funnel, it would crash due to missing the initialization of the struct csdev_access in the funnel probe. Change-Id: Iaedfdf300f35e0c7f1b2da7f7ede26aa84bae395 Signed-off-by: Hao Zhang --- drivers/hwtracing/coresight/coresight-funnel.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/hwtracing/coresight/coresight-funnel.c b/drivers/hwtracing/coresight/coresight-funnel.c index 5e61b46beadb..525535892024 100644 --- a/drivers/hwtracing/coresight/coresight-funnel.c +++ b/drivers/hwtracing/coresight/coresight-funnel.c @@ -272,6 +272,7 @@ static int funnel_probe(struct device *dev, struct resource *res) } drvdata->base = base; desc.groups = coresight_funnel_groups; + desc.access = CSDEV_ACCESS_IOMEM(base); } else if (res) { /* * Map the device base for dynamic-funnel, which has been