Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp34935141rwd; Sun, 9 Jul 2023 23:35:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlGC5cE14twd/9nvlbkFo2gNQwXaelWf1goQNNhjS34ok2HF1LrRJEe7YigXfd8nZ2IWw7gu X-Received: by 2002:a19:e008:0:b0:4fb:8948:2b8e with SMTP id x8-20020a19e008000000b004fb89482b8emr9859663lfg.8.1688970918287; Sun, 09 Jul 2023 23:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688970918; cv=none; d=google.com; s=arc-20160816; b=ZsiagJNDYO0JMrp9h6aWfjNR1QNvA6JxbyCulozHhv/7fsPdUUgLJNMmPOl1Fjaxl3 l+1iYOEeMhCFEieLMVyR0ZaRp+5nyYiEOoptKWtpov1Szo9/GsYSugIece4LXFXjM3qK CQzEFkm0jRTyC+3a5yDUX0KJBqb9g0KYMBzewqpfngdUq4PfKT44rrxguChQKt2h3Lba DYYWaM3BnnHrdTWtXeHFhOP0E/57/OzJH9IwGFPb55CvjOvPIGGiQjBUekQjatdb2pEj NSAXIZkJEFMnToUA7cvUx9PnuEQq05P/uFm9Cb1342B/2fKenCHLS+J7PipRhr5Wphfv Q9AQ== 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=FlemL/9malbqvCT4dNO40NSxVMIysLNR28OSP2NVsmE=; fh=PY9h/cLRZw7UBGWy1EIb8bqZUZXcomX82OLAF53kzVA=; b=QmcgApchDt2K9eH6/BZQbD+Ny27EVm9HvveoK4e8rVk+505WFpD9WozjZqxOXqbFd4 lCz3LO42R7INfbj14/XeaAYxqfqzc2tjfq0T+bmojMjkm/Z8pR+d92EQDgYlqwZyagGk S4Q4G1c1uDejQIarHkM4+CMjJ1XOgas+kY5rMw/8kPWEqGX18NU4IvstClyq7ma70rMQ PQQT+54r1tjmFQCqqR3HuuaHBEwdp+N6OfCdeHwLgHNllSY1f3hqEEN0dkqd1ipJEtVg Fdo81NCOK/po9m9a53b77SY/2pOx+qkjTCKifmI2ycDbeo041TvFFPhQDcOnH889MIkH g6yA== 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 v24-20020aa7cd58000000b0051e230ba0a8si7698111edw.452.2023.07.09.23.34.52; Sun, 09 Jul 2023 23:35:18 -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 S230467AbjGJG0Z (ORCPT + 99 others); Mon, 10 Jul 2023 02:26:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231299AbjGJGZ6 (ORCPT ); Mon, 10 Jul 2023 02:25:58 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 51C65E78; Sun, 9 Jul 2023 23:25:50 -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 10BD9D75; Sun, 9 Jul 2023 23:26:32 -0700 (PDT) Received: from a077893.blr.arm.com (a077893.blr.arm.com [10.162.40.20]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id E14BB3F67D; Sun, 9 Jul 2023 23:25:43 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org, coresight@lists.linaro.org, suzuki.poulose@arm.com, gregkh@linuxfoundation.org, rafael@kernel.org Cc: Anshuman Khandual , Ganapatrao Kulkarni , Steve Clevenger , Rob Herring , Frank Rowand , Russell King , 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 V6 5/6] coresight: platform: acpi: Ignore the absence of graph Date: Mon, 10 Jul 2023 11:54:59 +0530 Message-Id: <20230710062500.45147-6-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230710062500.45147-1-anshuman.khandual@arm.com> References: <20230710062500.45147-1-anshuman.khandual@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 3e2e135cb8f6..c8940314cceb 100644 --- a/drivers/hwtracing/coresight/coresight-platform.c +++ b/drivers/hwtracing/coresight/coresight-platform.c @@ -669,8 +669,12 @@ static int acpi_coresight_parse_graph(struct device *dev, struct coresight_connection *new_conn; 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