From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6910C433ED for ; Wed, 5 May 2021 16:34:37 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6A2C26162F for ; Wed, 5 May 2021 16:34:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6A2C26162F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=W6dv+Js8MnoG9XLb7hxUDxFTrHboqIGx2+mYQ4vagCM=; b=QFqPWJnfbvBJZml+6roTeQ/Od 3YbRhLRDn0qSFGDEeWFVOu097174C4bFTaba0Gc9PNOYTTEem6Gm0yyAFYbfpIYlIuFAPEQTvEOkf ovnCG03ZCvWL/XXWv0mXyBqyo3GLA6xwWEXdPKF8HuALplRhmM0x5ghwTCb/S69Kqe5WK5JGdVtTw GhQspY5cmGI4aPKCBbUOopSp6yXh9kH+SI5VpZdrOIa7z646EmjD9Kc+Mf4hsydtHbTTglWQOeCNg N+kREBCDVdmJ6/Ki3quemlt4qrwdoXf2590rAjuXhPJLCk264Ih3KExLlkm/ID8YgPtoQtNTIDKzp zArRpoFnw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1leKSF-001eYh-UX; Wed, 05 May 2021 16:32:56 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leKRs-001eTm-Tx for linux-arm-kernel@desiato.infradead.org; Wed, 05 May 2021 16:32:32 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=JWrNySf9rUTwhVaHUj0w9u47JeX5ZBUB68S6JDWi50M=; b=uoZMec6V0QQfngYpnONvsd8Qtk ImxH4UTebLMFrk/XhDCTIgYC1TUOMvblkxMWZxi0F7PKn3YP0vsux8OT+WbQKdXGdpVUezLbHiPU4 6fYYkNMYYz2up04rC8YUPCeVO5MPWRe4EI79Xo0AvhYsM5pWlqGY6hq1rTv7h0ifbiJqkoP4TPgYq hL7JUkrb+jx9KV7SWtKf54H8Hm3OCFCbYjQNtRqd9T5InGbgnhbrPeocT8kjjgigEJVAPfpPKGvCV acWlPPp6xQflbXvaXkDRqM/oDyNtqjyVx5n782V5liEjrxBR6xBkrh66nblLeHehCgDoGaJ27xzpd oQzD5hhg==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1leKRq-004wLU-Be for linux-arm-kernel@lists.infradead.org; Wed, 05 May 2021 16:32:31 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id E1A456141A; Wed, 5 May 2021 16:32:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1620232350; bh=b3RxAnqZyvSpqfjl9rUegzuE+IJ21GBgWwQc2A7a/zk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=e2R/TtMnNqLsxcUG0uj+BbS1eYu8wyhz5MZc9bji+96xoU/zQAL+kc+rTXt+68HR6 F9sIAcBbkx5xdOVC5iUMZhwiFw+Z8rudmMhxrHnph7S9m0CoLtx6w86AZAtXe1H/Vr FMdDuyh3yzc0CCEXHnNsOR0Y387KRSS1aXWhq+aXta7sZB6h7V3hJGbdBeMu7BJuAx M+wPM6ffT5amPXn1+S94FrXrxC1jemts2kv+u46MunOUj8QEPqKZxR+3PVF8LRtbD9 o2RsERycGen9dJSXYG9aB0fSGrCzKKSWLs0BNhzr5yfCrR++uPmXIQTDu6suQ5EnBf mZWQENnJ3JsPw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Suzuki K Poulose , Mike Leach , Leo Yan , Mathieu Poirier , Sasha Levin , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH AUTOSEL 5.12 047/116] coresight: Do not scan for graph if none is present Date: Wed, 5 May 2021 12:30:15 -0400 Message-Id: <20210505163125.3460440-47-sashal@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210505163125.3460440-1-sashal@kernel.org> References: <20210505163125.3460440-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210505_093230_443880_1A211D91 X-CRM114-Status: GOOD ( 12.60 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Suzuki K Poulose [ Upstream commit 2b921b671a8d29c2adb255a86409aad1e3267309 ] If a graph node is not found for a given node, of_get_next_endpoint() will emit the following error message : OF: graph: no port node found in / If the given component doesn't have any explicit connections (e.g, ETE) we could simply ignore the graph parsing. As for any legacy component where this is mandatory, the device will not be usable as before this patch. Updating the DT bindings to Yaml and enabling the schema checks can detect such issues with the DT. Cc: Mike Leach Cc: Leo Yan Signed-off-by: Suzuki K Poulose Link: https://lore.kernel.org/r/20210405164307.1720226-11-suzuki.poulose@arm.com Signed-off-by: Mathieu Poirier Signed-off-by: Sasha Levin --- drivers/hwtracing/coresight/coresight-platform.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/hwtracing/coresight/coresight-platform.c b/drivers/hwtracing/coresight/coresight-platform.c index 3629b7885aca..c594f45319fc 100644 --- a/drivers/hwtracing/coresight/coresight-platform.c +++ b/drivers/hwtracing/coresight/coresight-platform.c @@ -90,6 +90,12 @@ static void of_coresight_get_ports_legacy(const struct device_node *node, struct of_endpoint endpoint; int in = 0, out = 0; + /* + * Avoid warnings in of_graph_get_next_endpoint() + * if the device doesn't have any graph connections + */ + if (!of_graph_is_present(node)) + return; do { ep = of_graph_get_next_endpoint(node, ep); if (!ep) -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel