Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp117imm; Wed, 5 Sep 2018 12:39:58 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZFTWYUL9maGIXDeLbDnNreAaz3TWs3aOtsp+EL76JYdpGYaUNOjmWh4QJOmvZGcZovSWQc X-Received: by 2002:a62:7e93:: with SMTP id z141-v6mr16430668pfc.14.1536176398223; Wed, 05 Sep 2018 12:39:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536176398; cv=none; d=google.com; s=arc-20160816; b=lJ2Ipit6pL7J4Up1OYbHm0ParM2YnM4QEOCvBJQen5+aKtJ2uvJALiE2JIrx33M6ti jp9/St7sInJzMeJPg3VoxYLOx9RB59oViQ6aDQkDGxdRlSnzpxHTCIuE3T5xQieMwVY5 NFvq5Q/8NchLfOWJMGexHS2YIrfql9/Elp2lalMhr61he5ZlahzPH4pYyZls3NCLxLfG 4zQXwmbynp8MSrlsQ0IqxPAmfifKLY/4CiGwRY+ymA7i3m98sY15jGSv6CzQwfUM3kGr wQjwknF8nM2dDr2oFWZ3lZtA8shlGX92FNWpLNnwu29tAranfaPc7WLtqoo3JfiJT3/a j5QQ== 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: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r69-v6si2842460pfl.260.2018.09.05.12.39.37; Wed, 05 Sep 2018 12:39:58 -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 S1728242AbeIFAJl (ORCPT + 99 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 ); 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 To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Joerg Roedel , 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: X-Mailing-List: linux-kernel@vger.kernel.org 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 Cc: iommu@lists.linux-foundation.org Signed-off-by: Rob Herring --- 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(-) 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) { -- 2.17.1