From patchwork Thu Aug 25 21:19:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mathieu Poirier X-Patchwork-Id: 74755 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp1052330qga; Thu, 25 Aug 2016 14:35:13 -0700 (PDT) X-Received: by 10.66.254.102 with SMTP id ah6mr20478194pad.59.1472160912964; Thu, 25 Aug 2016 14:35:12 -0700 (PDT) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id pa7si17324433pac.177.2016.08.25.14.35.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Aug 2016 14:35:12 -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 1bd2Hn-0001qQ-Nu; Thu, 25 Aug 2016 21:34:07 +0000 Received: from mail-it0-x233.google.com ([2607:f8b0:4001:c0b::233]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bd245-0006Jw-SW for linux-arm-kernel@lists.infradead.org; Thu, 25 Aug 2016 21:19:58 +0000 Received: by mail-it0-x233.google.com with SMTP id f6so112872611ith.0 for ; Thu, 25 Aug 2016 14:19:41 -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=BlRSbRzj90KM5Wv35JoJOLgzQwyfxQPg6pnMOSCHM2UwfjnEFZYnjYxP7+5xJnVPd6 8UujGQk4SnLGOah+VZ0DyA+1ecQZagSD//XQGYQzkaRkvPjWBxyhYxlVrUbLGuvEuh/X YitUhlQBoFhLwClQHtCyNpJJrgF89vi/nf0/o= 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=fcSE4GHaMvSe+zoeh6MU7zR9AoVdOVYmC+BJZm1lkLpi5j40974HAqawmIbzNAGmtU LkD8WqorI3D4dCbrr9Gbojy+6sKGyvMYOKQNVnX7UMz3ptGT37HozhTUom1pFiIQ/zEp eEIQ02sWvPNU2xR1gMVSjLyb7ZLAU5zQc1/dfzdJb+Cxa7vTetcVd2RoKKyR7evVqJ03 a+WkgokWeLdfzzOKFw0umH/rMlRUuKaBo4CDmlpehjRLq/RPTKElMO0cXlJ/737heobc e7POihvaCZaMA8hLVSyBCKgZUYXf8zpf6MJXsWDLsGujn+NGC6FqEMIzxUaN3Gtm+O9Z XkJg== X-Gm-Message-State: AE9vXwMM5/Dc0iHxWasFV9lx+q3/cVUDtZAInI7sCoeyXACaOvY84USNYo+RRfZSLtvS6DLv X-Received: by 10.107.22.198 with SMTP id 189mr14841727iow.0.1472159980882; Thu, 25 Aug 2016 14:19:40 -0700 (PDT) Received: from t430.cg.shawcable.net (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id o5sm14506120ith.20.2016.08.25.14.19.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Aug 2016 14:19:40 -0700 (PDT) From: Mathieu Poirier To: gregkh@linuxfoundation.org Subject: [PATCH 11/28] coresight: delay initialisation when children are missing Date: Thu, 25 Aug 2016 15:19:01 -0600 Message-Id: <1472159958-5981-12-git-send-email-mathieu.poirier@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1472159958-5981-1-git-send-email-mathieu.poirier@linaro.org> References: <1472159958-5981-1-git-send-email-mathieu.poirier@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160825_141958_038419_50DDC66F X-CRM114-Status: GOOD ( 12.87 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) 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:233 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 Message has at least one valid DKIM or DK signature -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 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org 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 --- 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 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;