Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2758028rwd; Sun, 28 May 2023 23:50:27 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4FRML3tleaU3UzohLO7paGhXV3/NPX5akPmJaQXfDA1Z27/pORFcF46Ry6gVsKor1V01Wf X-Received: by 2002:a17:902:c409:b0:1ab:2034:26da with SMTP id k9-20020a170902c40900b001ab203426damr10697716plk.51.1685343026946; Sun, 28 May 2023 23:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685343026; cv=none; d=google.com; s=arc-20160816; b=mlIVlbBccEVgVIi/+U/k6TIIoqOvzzDFL/KPhDBtnj9FX5nYaYSoem4eSMXSA/6VIK 4CAcAS1CpPK7WdvJRLvFw7pa+eIFXrA1Umflziip2C3LEZiVf3VjvJmTvYIa208FtICR ecutEBjlreviCReePErbj+cRa+TPvNmfnfWUB+5mhMNXf9Y3JDogVoeK50NfdMgk7/uf tKK1O1MpqtlWVicHaokllR/pJjwYOI+ywMQsvXXBG3Q/rhG4Fqa6FupIhIYa+jqClD23 Kmzr7aCqyEaRZH5FTtyttyLNQpPHejS5fr570X8IgZVNOVwtDr/Tth2HpVm1DIY4sEju jWcQ== 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=PPGdtCEsxte4+miHiKbCLQKzKgK5qUWGk53USkPp51QbT10JYX4RNcH30mLw1LfOlB RLRqXRha6T0SFHmyVdHDGikbdcJBPcNEV9j4jfuYJ5C4xVI/j8eS9FKwsxKou0xhIq+L DrFHR4JXsZeHy13LgaO8iwHPcIVzpsOM1xUyJlsoFY3ZqJ/0MMCaaKehDOJ+YzYhlTqT 0Ip11gP/JqInj8pSFYSQ1e7/FWzqavafBXMOu3ZYKEi7oxwag1xdj3pT8YFk/bRt+QLp U2PORmQ23dK/l5VT7tUwojAcyNNGXByu0yF6FzFuz2u6U/9k03bQBt9p+Wk5gZ+5JgyC OeMw== 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 q23-20020a170902bd9700b001ab13c7505asi6346771pls.125.2023.05.28.23.50.13; Sun, 28 May 2023 23:50:26 -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 S231732AbjE2G2Y (ORCPT + 99 others); Mon, 29 May 2023 02:28:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231723AbjE2G15 (ORCPT ); Mon, 29 May 2023 02:27:57 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0918F138; Sun, 28 May 2023 23:27:26 -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 290EA153B; Sun, 28 May 2023 23:26:46 -0700 (PDT) Received: from a077893.blr.arm.com (a077893.blr.arm.com [10.162.40.17]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id F1D9A3F6C4; Sun, 28 May 2023 23:25:54 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, suzuki.poulose@arm.com Cc: scclevenger@os.amperecomputing.com, Anshuman Khandual , Ganapatrao Kulkarni , 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, linux-kernel@vger.kernel.org Subject: [PATCH V5 5/6] coresight: platform: acpi: Ignore the absence of graph Date: Mon, 29 May 2023 11:55:10 +0530 Message-Id: <20230529062511.52016-6-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230529062511.52016-1-anshuman.khandual@arm.com> References: <20230529062511.52016-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