Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp55641imu; Thu, 8 Nov 2018 14:42:10 -0800 (PST) X-Google-Smtp-Source: AJdET5d0vYNYIAuiS5bpbRUfRsfo5XwB8gpXXXx/otOS7SsBbKb4xWi6W8+NjpprDUNSj+YngwIP X-Received: by 2002:a17:902:b091:: with SMTP id p17-v6mr6256890plr.222.1541716929944; Thu, 08 Nov 2018 14:42:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541716929; cv=none; d=google.com; s=arc-20160816; b=dfn5ZvzUWH241f6yA7uk/SOeAbdvbvpaxa0FsNElXmyiVfwyUVtesK8kEu2vY87bov OPApGhoUl5ZawEOU8iVEy1fQkAwoqiFCLQOwP807ygA1nmXyVbCWKu+7oXlsizjG5Oc4 0Jv1G6oV7A47eZiH640Sc5IMPV2QN9WAHvc2a+S1LOIxkKWarCwkcSzL7JJP8FNAw0QR XhTD+bRtWsevmokjRRjjwSjoK6YBkdmj2dhyuHUeJSpa+ODDipB4piwpVeSzvoA1Vwao eZSL86nrfyHu4qprGtYiV55NdAasqFRq+ltfMmaj4BGeGWuYeHeEdaiMVpVaYbiYt/g6 IjLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0vobem5JQjtLor2jNdqAiEM8nSxtp3DuFK/45K29/ic=; b=0dh5MemXOjYYJKtzDuFDkTzpvGrcHblM6c4JfiGci7zO/V+LBBPTNyrD1SzUMn9k2R 7bEw7+l/bZuYezZpj4MOjAitInQUqQMJKj2TKgiIJT+pVGONzh504EEeZ28cIYikJSRr hyy5/ClFsnQz+FbPhiM2bYsIAdiEY0RPMhxOLdm5L7kSgNvHlbpdoTPwsXZpGBQqZOn+ pVe/0mtDNeMBp0gFL0+KvxOXQ+gOsTSgwypJlp232VH7IesmTJ84fOolcnRY9eKaVlz3 l2s0Sg17V2yAVIN2R8MYwvcs0ksWJdsX0lcb/uZmpsbxZ/5dzDeBhZkSVNJeITvvarSl 40Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VgG+N8kN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v4-v6si5369967plp.247.2018.11.08.14.41.54; Thu, 08 Nov 2018 14:42:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VgG+N8kN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729003AbeKIHdk (ORCPT + 99 others); Fri, 9 Nov 2018 02:33:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:49484 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728986AbeKIHdj (ORCPT ); Fri, 9 Nov 2018 02:33:39 -0500 Received: from localhost (unknown [208.72.13.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8C4222089A; Thu, 8 Nov 2018 21:56:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541714172; bh=JBuBtnGOQevxA6UIRXQUUAqdywB8btiS0m72H66gZHw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=VgG+N8kNrUm2l4Ic2JA+GHo+7MEP/cH1HT8Kd8Jygo6/DIepKf5Z6sQyPQUG9W6OB gQtlB9DOGEzmUV9MbvgdeWyzVcwfX5cPt0/3wcieimQEPVZqd8Caljz5VN9XN0aUhk WCOBw6y99FKM1PdX7rIaKYHXHeiuyV+p/CFIgluw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Abhilash Kesavan , Sudeep Holla , Nicolas Pitre , Kevin Hilman , Olof Johansson , Sasha Levin Subject: [PATCH 3.18 078/144] drivers: bus: check cci device tree node status Date: Thu, 8 Nov 2018 13:50:49 -0800 Message-Id: <20181108215100.936726705@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181108215054.826084593@linuxfoundation.org> References: <20181108215054.826084593@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 896ddd600ba4a3426aeb11710ae9c28dd7ce68ce ] The arm-cci driver completes the probe sequence even if the cci node is marked as disabled. Add a check in the driver to honour the cci status in the device tree. Signed-off-by: Abhilash Kesavan Acked-by: Sudeep Holla Acked-by: Nicolas Pitre Tested-by: Sudeep Holla Tested-by: Kevin Hilman Signed-off-by: Olof Johansson Signed-off-by: Sasha Levin --- drivers/bus/arm-cci.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/bus/arm-cci.c b/drivers/bus/arm-cci.c index 7af78df241f2..99cad3ac38f2 100644 --- a/drivers/bus/arm-cci.c +++ b/drivers/bus/arm-cci.c @@ -976,6 +976,9 @@ static int cci_probe(void) if (!np) return -ENODEV; + if (!of_device_is_available(np)) + return -ENODEV; + cci_config = of_match_node(arm_cci_matches, np)->data; if (!cci_config) return -ENODEV; -- 2.17.1