Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2001045rwd; Thu, 18 May 2023 22:35:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7mfRsx+59VVTyL+ZqoOXAugyNkGhlybdGB4jqfV7xqBoanyxNNvjZDJfZHIHcvKJ6xW5xF X-Received: by 2002:a05:6a20:9f92:b0:106:c9b7:c93d with SMTP id mm18-20020a056a209f9200b00106c9b7c93dmr910174pzb.19.1684474509558; Thu, 18 May 2023 22:35:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684474509; cv=none; d=google.com; s=arc-20160816; b=zi4hGBlnNEzfQtOb/8reQlrzvq+H7YMt1q3Sedf5lAfX8DRzi7u0X+BcIxCG78uP2J 2KCE/fZ26b1G4DW0bKG2WOvOFbFJzzH4umPhpjkvtjfSzkObHwG0UxBjiWRWOIPGN9Yw Pok3P93novmV5vqJgRY5tNTbFqVUss+jyjWnMkgXHuoQopsqZ3wiCSjZy/oqCT5udB2p iXMRynO9tAGcu3tRfwimnAHtk7AHqx+1eD4+hqS1zuWLnIUxM6qhYbXLa8BgkOmG1PW0 RvaZfiLOcPXN20FamhmN/9TvfU/M3FE45qekwLoSZcU3wK3WRSzHpMikh0iCsi+gF8Uk l8Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=SS8eFXdUUvA8OCPxf5Syhx2f4mz+ypgKZ9P0aUNsBxE=; b=DsLUsI+wjQpz67gKzi3IYf4FfgNj3guuab+f22lnjLrdBgmaFimN4fb7RkVHHDPXA9 bKH2Wz05mbPaclYcgDuenfklG/ZVANqci0wjMqkhJih4cvSIEcxANwuFoOPrFRoyMl/B I3xwSunZWaZqbbNi3jL0J5dE8Knka5Dv8kGocRSecQDzmVeTftO7fgoLv1oXWS/aOlXZ 3e35UbWXd7MTJeQr0+3oI/uaQMeIrgVeKs/GqMa1G+RnDcS3yWb2euYYivJkVifJ4e05 XURYDTBcUeOuVBmZhubptXZQae1ThJn0CB9yaFTKFEcKJJFr3PQ4gKlhVr8g7QLeMcmV aAMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q2-20020a632a02000000b0052ca3209fc0si3152773pgq.651.2023.05.18.22.34.43; Thu, 18 May 2023 22:35:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229566AbjESFXx (ORCPT + 99 others); Fri, 19 May 2023 01:23:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231232AbjESFXF (ORCPT ); Fri, 19 May 2023 01:23:05 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3C3C11BD5; Thu, 18 May 2023 22:22:49 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B8E031FB; Thu, 18 May 2023 22:23:33 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.71.125]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 2349C3F762; Thu, 18 May 2023 22:22:41 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, coresight@lists.linaro.org, suzuki.poulose@arm.com Cc: Anshuman Khandual , Ganapatrao Kulkarni , Steve Clevenger , Rob Herring , Frank Rowand , Russell King , Greg Kroah-Hartman , "Rafael J. Wysocki" , Len Brown , Sudeep Holla , Lorenzo Pieralisi , Mathieu Poirier , Mike Leach , Leo Yan , devicetree@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH V3 6/6] coresight: platform: acpi: Ignore the absence of graph Date: Fri, 19 May 2023 10:51:49 +0530 Message-Id: <20230519052149.1367814-7-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230519052149.1367814-1-anshuman.khandual@arm.com> References: <20230519052149.1367814-1-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Suzuki K Poulose Some components may not have graph connections for describing the trace path. e.g., ETE, where it could directly use the per CPU TRBE. Ignore the absence of graph connections Signed-off-by: Suzuki K Poulose Signed-off-by: Anshuman Khandual --- drivers/hwtracing/coresight/coresight-platform.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-platform.c b/drivers/hwtracing/coresight/coresight-platform.c index 475899714104..c4b4fbde8550 100644 --- a/drivers/hwtracing/coresight/coresight-platform.c +++ b/drivers/hwtracing/coresight/coresight-platform.c @@ -692,8 +692,12 @@ static int acpi_coresight_parse_graph(struct acpi_device *adev, pdata->nr_inport = pdata->nr_outport = 0; graph = acpi_get_coresight_graph(adev); + /* + * There are no graph connections, which is fine for some components. + * e.g., ETE + */ if (!graph) - return -ENOENT; + return 0; nlinks = graph->package.elements[2].integer.value; if (!nlinks) -- 2.25.1