Message ID | 1467303739-12543-12-git-send-email-mathieu.poirier@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp481671qgy; Thu, 30 Jun 2016 09:27:08 -0700 (PDT) X-Received: by 10.98.62.220 with SMTP id y89mr23300132pfj.9.1467304028269; Thu, 30 Jun 2016 09:27:08 -0700 (PDT) Return-Path: <linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org> Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id f72si5060701pff.209.2016.06.30.09.27.08 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Jun 2016 09:27:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bIemx-0007Kj-8O; Thu, 30 Jun 2016 16:26:03 +0000 Received: from casper.infradead.org ([2001:770:15f::2]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bIejx-0002Xn-CJ for linux-arm-kernel@bombadil.infradead.org; Thu, 30 Jun 2016 16:22:57 +0000 Received: from mail-it0-x231.google.com ([2607:f8b0:4001:c0b::231]) by casper.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bIejt-0001sZ-CF for linux-arm-kernel@lists.infradead.org; Thu, 30 Jun 2016 16:22:54 +0000 Received: by mail-it0-x231.google.com with SMTP id f6so73773535ith.0 for <linux-arm-kernel@lists.infradead.org>; Thu, 30 Jun 2016 09:22:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=0FNe823FBcEyp4KpUREfTh4pXj/DShLFjfzpDd8w3t8=; b=DVNb+cgEiELf9G9o/d58FBaGtqIdP07VhFyTohEp6a+vfgTXLvjRWB+2D1ZsMU+9M+ s29aDc0cIzp53WFOnKTyQ6JU7QTGhmya1YvievDmW0Ses56uEaJCU9lif9Qbiu5dfS/f 1792qJ4oJbC0uckavqmcMHGkrrQ6OcYqHWu2A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=0FNe823FBcEyp4KpUREfTh4pXj/DShLFjfzpDd8w3t8=; b=PETRsffP0LxRGeLbgc1+U4c40b7fYIS3kyNGbOlixZp2Pl9du3p9aTO/twb3HWlq9w dpybTe3aFCC2uLvWkZwFUy7UEK6dGocEeCPOCBki2x+1ZYJxLT5qC334iU4cIKpuX+Ix lmM/ZZmO1yJCcinOrrfUqFJYfD6FOcC6gskspmvN2s4SxHyR4kkFhGjxJ9T29MDZsyGB 4bxBtg5Q+JGi8DEgDr/bIB+BNpzQgID2I/9O8BQLx3+qeyMESXddXl4PjqkxHskjxx7A UN0v1mTYfmGcfJ8zr2qhN//QhxVA1jN7m3SQWwz8P2seal3HAH+EsJtCf3TPcLaac4Ay QCVg== X-Gm-Message-State: ALyK8tIKUFrqyd0tTAweT8IyNvXDw4cbRtQtsMViXK9FugFCDEHcQ/56p6bYhq7XuMH2AAc6 X-Received: by 10.36.20.212 with SMTP id 203mr15333762itg.24.1467303752485; Thu, 30 Jun 2016 09:22:32 -0700 (PDT) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id m203sm4209375iom.21.2016.06.30.09.22.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 30 Jun 2016 09:22:32 -0700 (PDT) From: Mathieu Poirier <mathieu.poirier@linaro.org> To: gregkh@linuxfoundation.org Subject: [PATCH 11/13] coresight: delay initialisation when children are missing Date: Thu, 30 Jun 2016 10:22:17 -0600 Message-Id: <1467303739-12543-12-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1467303739-12543-1-git-send-email-mathieu.poirier@linaro.org> References: <1467303739-12543-1-git-send-email-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160630_172253_583968_C34BBC29 X-CRM114-Status: GOOD ( 14.22 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on casper.infradead.org summary: Content analysis details: (-2.7 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2607:f8b0:4001:c0b:0:0:0:231 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org |
diff --git a/drivers/hwtracing/coresight/of_coresight.c b/drivers/hwtracing/coresight/of_coresight.c index b68da1888fd5..18f1c8c4776b 100644 --- a/drivers/hwtracing/coresight/of_coresight.c +++ b/drivers/hwtracing/coresight/of_coresight.c @@ -166,7 +166,7 @@ struct coresight_platform_data *of_get_coresight_platform_data( rdev = of_coresight_get_endpoint_device(rparent); if (!rdev) - continue; + return ERR_PTR(-EPROBE_DEFER); pdata->child_names[i] = dev_name(rdev); pdata->child_ports[i] = rendpoint.id;
Depending on when CoreSight device are discovered it is possible that some IP block may be referencing devices that have not been added to the bus yet. The end result is missing nodes in the CoreSight topology even when the devices are present and properly initialised. This patch solves the problem by asking the driver core to try initialising the device at a later time when the children of a CoreSight node are missing. Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org> --- drivers/hwtracing/coresight/of_coresight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel