Message ID | 20180905193738.19325-20-robh@kernel.org |
---|---|
State | Accepted |
Commit | a9a455e854cdb120db1d8efc5373f9ad2a63e146 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp5340410ljw; Wed, 5 Sep 2018 12:38:06 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ/ysgm7WlFJ7GE6+Eiq/kwvL1ka9ILH6pPuKnDtRjWq7vlLEM3SSi34tFFaLYuipe/Ad2f X-Received: by 2002:a62:a6cc:: with SMTP id r73-v6mr42124579pfl.60.1536176286249; Wed, 05 Sep 2018 12:38:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176286; cv=none; d=google.com; s=arc-20160816; b=d0vgonecPuz/6OHZ39uZd0qwhhuHOMmnZRnAi2DltNtVhdGfyE+k2tOQSFKdxNdJN4 7zejjZgHKyxU5axbcnuil/8Kg9ww+tT/r5/0L2IjDm+eU+4TyJNVt71bdX2R+lt2mglg 1Xxtt/bJUmUIxTbTX1sZerUcpHfS/7o3/3yHBYu0Qucau15QSstYwdubRhqAivvjbfO5 z79c2gBK3owwZtJmCXtH4xf0JlwkaU8oL3Q+JMA8IRkLcbuqFpIbyV1qKFAJavAoNvqj T5+2PhU5HeQogUjCNHv2pWIuY+WDLf3Ncto9+2A/aQMDXeLIIKjLQlvi0mgAlC3/sJ/N e/GA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=/iIXmhGiLNPb+oyB0fqAq/cBY95BW9PeH5qSGmIxXL0=; b=ID2DpeZ26yvqdEkaAm3m8bgV+dxzBg93dK5gA4ujjRFTYpo+qtAJ7aYA+Wpr+H0lfH g2l1Z1mGNdC4GaKqX9gt7QM7mu/6FJSevAJziayRRhTc4u/8yZjiADcxb3QGsqcx+N8w oq9HmJRlBGXa/mKqSEI60ppYvzHUXxqRhmo882UzCSumNHicVHSMIoIzGOFjurfa1erP wl+nakNM1omQgmWEghKTVH2Fm8WDlAZgt94jC9Ialj3BTVEojkfm54MX/yo6JYCcrMMq YH+gAqf8E9YOfHiF/X1PflVTSFpYoP4FHXWtao5FFZI9o1MxJkG3Tq00+3KdOlQzT+XX 68TQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a190-v6si2917004pgc.241.2018.09.05.12.38.05; Wed, 05 Sep 2018 12:38:06 -0700 (PDT) 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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728245AbeIFAJl (ORCPT <rfc822;igor.opaniuk@linaro.org> + 32 others); Wed, 5 Sep 2018 20:09:41 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:45538 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728161AbeIFAJk (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 5 Sep 2018 20:09:40 -0400 Received: by mail-oi0-f65.google.com with SMTP id t68-v6so15895841oie.12; Wed, 05 Sep 2018 12:38:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/iIXmhGiLNPb+oyB0fqAq/cBY95BW9PeH5qSGmIxXL0=; b=YNiwLuyQ4RsQYQzjOJXMBpis6UedyGBVq2QEPiHNc/SQC/2D9dgfCyiXaL0+Ogg8Er aLbSEa+cVG3eXaoeRsYQ+WJH3j4sx/Qu3eMdyxGbzpahKGMsV7QpYZDEeaZShZAqOVyT wCHgUQBmSn6rLDFE+e0cUqiIhtWFWWkzJfaErhhsgC4sIEj3BLZWnBS9Uu/ou4qbfeO/ Lz2lUZyDbM/Ie4t2Hk+nq/SoQsOqq8M3EKrAwyY6PutUptoOx57+lw4ZPuFwUT13H1bU WtVhotDflt6VMFXN2gjQh1ZpjZBT8pJYD2bQeFnnYY6vBqzBsJb1CKno2vWOq2Oh9L6B 7Yiw== X-Gm-Message-State: APzg51AEUsc6tUTO7sexfg2HbT7nTZJefwlAho9TunEw8V9M6V5rnEXQ GqmtZFqfNPAedj7MMWrUeU2HjFE= X-Received: by 2002:aca:af11:: with SMTP id y17-v6mr29485854oie.274.1536176282314; Wed, 05 Sep 2018 12:38:02 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u21-v6sm2296053oie.22.2018.09.05.12.38.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 12:38:01 -0700 (PDT) From: Rob Herring <robh@kernel.org> To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Joerg Roedel <joro@8bytes.org>, iommu@lists.linux-foundation.org Subject: [PATCH 19/21] iommu: fsl_pamu: use for_each_of_cpu_node iterator Date: Wed, 5 Sep 2018 14:37:36 -0500 Message-Id: <20180905193738.19325-20-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180905193738.19325-1-robh@kernel.org> References: <20180905193738.19325-1-robh@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
None
|
expand
|
diff --git a/drivers/iommu/fsl_pamu.c b/drivers/iommu/fsl_pamu.c index 8540625796a1..1b955aea44dd 100644 --- a/drivers/iommu/fsl_pamu.c +++ b/drivers/iommu/fsl_pamu.c @@ -543,7 +543,7 @@ u32 get_stash_id(u32 stash_dest_hint, u32 vcpu) return ~(u32)0; } - for_each_node_by_type(node, "cpu") { + for_each_of_cpu_node(node) { prop = of_get_property(node, "reg", &len); for (i = 0; i < len / sizeof(u32); i++) { if (be32_to_cpup(&prop[i]) == vcpu) {
Use the for_each_of_cpu_node iterator to iterate over cpu nodes. This has the side effect of defaulting to iterating using "cpu" node names in preference to the deprecated (for FDT) device_type == "cpu". Cc: Joerg Roedel <joro@8bytes.org> Cc: iommu@lists.linux-foundation.org Signed-off-by: Rob Herring <robh@kernel.org> --- Please ack and I will take via the DT tree. This is dependent on the first 2 patches. drivers/iommu/fsl_pamu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1