From patchwork Thu Nov 16 18:05:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 119077 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp5020745edl; Thu, 16 Nov 2017 10:06:11 -0800 (PST) X-Google-Smtp-Source: AGs4zMYpMJRyjJ2sPBJluLxusSU4f42fO2jHNrPHp3IgsZsP+gA2uHonXmh+POw2IGKp+4rR4GS5 X-Received: by 10.98.82.3 with SMTP id g3mr2728952pfb.189.1510855571554; Thu, 16 Nov 2017 10:06:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510855571; cv=none; d=google.com; s=arc-20160816; b=H+wA2k41xRnwMj3emR0YTDow6GUE3m0iaY7qKm5VigFfZl6LRF8P5y1VUBYfIAph36 k7iHtlOxUzemopBlIJ3rRyNKIJ/lyC/5qyeHFbVLRqrZm0ZJeni2DzPMzus8IrB/hhIS gW1VNQh06jWdloAsjf6yUOPrG8xuww6Kpl1MblmkKUsNIOGBJsTy5kBZiZ6HpZn4mkBd 6QzurfrZL0J6QbPPmcyuzQVfx9lDNm5gceFnc/QcmdMDYfk3TWyGlzyCwOioLSGsobBN IemzdZ+jsH5Mpyexs3dCRWbddStuk+rpkOcw6dPS3856dmd8VeAg6NLBllYb5eeGVTBp 2ESg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=uzpOrLLjVBWeb52CPvNcVgya4E8KWMjiqb+Hv9qYmMA=; b=mrU/OElKvzfQNiGfeGeE4R1hSm+40Z+BaQjboZwgv8LRa1Xl58ItX8L0dF7cuVs9iY f4RbwO4MNRGn8C184vrSZZEtS+uKCBAWvXg/XkECl42VZjjjiEyz+TbbmuPhwOx2YWGs FfG/YK6O/b/WAVO2XJzSogZhlAKdeT1SEk+c4eYwNgIdFkWwXV6AVhixTstpp4w7rtnA d4iaMYqgtEvA9lb61aezkqfg0wRF/G61zJVc2iMDQKJvmNn0i4LVJ1FFLT9QbHiKkUNF ntxq02+4cXJOcW1rn9KQgVH9ljcgnIYuMMwJd5VDkkQK1xfReRwrp4O+eyvGMVOe4hhT Qp1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 h185si1353666pfb.334.2017.11.16.10.06.11; Thu, 16 Nov 2017 10:06:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966080AbdKPSF4 (ORCPT + 6 others); Thu, 16 Nov 2017 13:05:56 -0500 Received: from mail-ot0-f195.google.com ([74.125.82.195]:54782 "EHLO mail-ot0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966389AbdKPSFs (ORCPT ); Thu, 16 Nov 2017 13:05:48 -0500 Received: by mail-ot0-f195.google.com with SMTP id d27so1684664ote.11; Thu, 16 Nov 2017 10:05:48 -0800 (PST) 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; bh=ZahOPoBxx9AlzCKCFmhZRgHFiOHoizS5+sJMiYetfi4=; b=ZD2FvcctL1dpBRP+dTK8QWlEJVrsEbFGF7hCYZYgvmD2bK7Z/WqHIKYT50aoZYAZBm aFN9GsZQgb43TzDhrwfZspFHrkGNcovSEWHBYd+j9X+NiDGBY+pj/iiq6J62rNDmNHA8 14v+7h/60VhbmhsBc4qy2CfXJPNXM+vFRlK3xOBMDEySwMHD65kfjzE4H/+AucurbKss ih58UUsaJ35jAUE+8gMFlr5IVF+p88AuTub+H1k1ckO7x8ctTLGoLp9PCCP7DG4j7sNk Cj6S9vaHUmRLyO3N+e4+c1gYYVgVxuDWTZ28/sP8NKqEoYRvUH59Ua6l1kdD5t4g8Ray A5lA== X-Gm-Message-State: AJaThX6tSI2dqJwmBOM0g9eH5RIrbfVaW0+3kjgMwhMD1aHa8ko6cygp Uv9hdu+qsIw+oMkzG62E1LQ4luI= X-Received: by 10.157.0.105 with SMTP id 96mr2011681ota.160.1510855546890; Thu, 16 Nov 2017 10:05:46 -0800 (PST) Received: from xps15.herring.priv (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.googlemail.com with ESMTPSA id z72sm683615oig.18.2017.11.16.10.05.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Nov 2017 10:05:46 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Frank Rowand Subject: [PATCH 1/2] of: unittest: let dtc generate __local_fixups__ Date: Thu, 16 Nov 2017 12:05:44 -0600 Message-Id: <20171116180545.12322-1-robh@kernel.org> X-Mailer: git-send-email 2.14.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Remove the manually added __local_fixups__ because dtc can now generate them. This also fixes a new warning in the process: drivers/of/unittest-data/testcases.dtb: Warning (interrupts_extended_property): Could not get phandle node for /__local_fixups__/testcase-data/interrupts/interrupts-extended0:interrupts-extended(cell 3) Signed-off-by: Rob Herring --- drivers/of/unittest-data/testcases.dts | 56 ++-------------------------------- 1 file changed, 2 insertions(+), 54 deletions(-) -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/of/unittest-data/testcases.dts b/drivers/of/unittest-data/testcases.dts index 12f7c3d649c8..ac616ad18ea6 100644 --- a/drivers/of/unittest-data/testcases.dts +++ b/drivers/of/unittest-data/testcases.dts @@ -1,4 +1,6 @@ /dts-v1/; +/plugin/; + / { testcase-data { changeset { @@ -23,57 +25,3 @@ * The format of this data may be subject to change. For the time being consider * this a kernel-internal data format. */ -/ { __local_fixups__ { - testcase-data { - phandle-tests { - consumer-a { - phandle-list = <0x00000000 0x00000008 - 0x00000018 0x00000028 - 0x00000034 0x00000038>; - phandle-list-bad-args = <0x00000000 0x0000000c>; - }; - }; - interrupts { - intmap0 { - interrupt-map = <0x00000004 0x00000010 - 0x00000024 0x00000034>; - }; - intmap1 { - interrupt-map = <0x0000000c>; - }; - interrupts0 { - interrupt-parent = <0x00000000>; - }; - interrupts1 { - interrupt-parent = <0x00000000>; - }; - interrupts-extended0 { - interrupts-extended = <0x00000000 0x00000008 - 0x00000018 0x00000024 - 0x0000002c 0x00000034 - 0x0000003c>; - }; - }; - testcase-device1 { - interrupt-parent = <0x00000000>; - }; - testcase-device2 { - interrupt-parent = <0x00000000>; - }; - overlay2 { - fragment@0 { - target = <0x00000000>; - }; - }; - overlay3 { - fragment@0 { - target = <0x00000000>; - }; - }; - overlay4 { - fragment@0 { - target = <0x00000000>; - }; - }; - }; -}; }; From patchwork Thu Nov 16 18:05:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 119076 Delivered-To: patch@linaro.org Received: by 10.80.225.132 with SMTP id k4csp5020496edl; Thu, 16 Nov 2017 10:05:56 -0800 (PST) X-Google-Smtp-Source: AGs4zMZCuBHwA/SKHC00tdHM6IIDHSjLXftywsHVmczEOcWa5X6/HM2x32rEJ/a74B6Px7dXeJY5 X-Received: by 10.99.183.6 with SMTP id t6mr1917506pgf.128.1510855556790; Thu, 16 Nov 2017 10:05:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510855556; cv=none; d=google.com; s=arc-20160816; b=deBHU/2QxaSOUWfPGk5PdsazEsKZmniGdvP/uTemyG06H7rifuqUmyPjgui+AkuNRd +lwhqeMNbOJcSLkXZB5K5CAmXpwrx/++zIT8u4WByot8HGQtuAHdNgJQEg677HUfzlRS jXcBHTHyClr0CQSAA28Ash0nDUl4a76wPNYrPN1RKzklPw70jU/lijRyCws8Z49rBegt QybEByrUCL2FnsmA70UBdxXbIUPzXP58SR+6k8NeRhet9WlSEeyPKyQBAVFUv1I3zDOH 8+Rs+ZGdYze+nIUw238RKAymIjU131diflM2LF4MXfR0+OHF3d32fk9C1b+1YdhcmIHR UPaQ== 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:arc-authentication-results; bh=YGfUlWJDwoEUVgCdmgCUqHdrlPpK+67B1POpcGA0nH0=; b=fVugv9QQdSd5ZS0B2bTj2i0P764NScZKJsVZ0IzGQ4LeipvMzGW9r6KCo65fg0jNwZ eVwXnj0WJaqbqn3ZQoKHlL0BtGh01O//iqm296bEmc1L6sgdjECLahs7dPz+MIKsRaEQ LjHXwTRpSrZ3rNU8xp8X0KuMwmXO507V+2yNljIbX13IF+eURSr91AZywidkCDZAHNY1 rkCmNYdhMVn+ixKoOgM5NO9UAqkGVdrOAnhOHDQQnxv8EizHez6zITuehEmROIByW4IK h9PdbMyx3YATm9qvbf95zIUbeaouEZPS/hhVNxtNxGNbdc7BCReimfNkg3d9sidjiPYQ T1wA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 64si1355412pfo.397.2017.11.16.10.05.56; Thu, 16 Nov 2017 10:05:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966203AbdKPSFy (ORCPT + 6 others); Thu, 16 Nov 2017 13:05:54 -0500 Received: from mail-ot0-f194.google.com ([74.125.82.194]:44070 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965576AbdKPSFs (ORCPT ); Thu, 16 Nov 2017 13:05:48 -0500 Received: by mail-ot0-f194.google.com with SMTP id o23so12421137otd.1; Thu, 16 Nov 2017 10:05:48 -0800 (PST) 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=K6zHt7dv4CgasBsmCc2QUFP0FYMuJeE4uuvKopM1FFc=; b=puOBLqqwYpIGnBJJYooDBdS37sDWiRiHYvudhqZvBaMt89Cp8rK4ssbdI/1aDK1fku VoEYpu4bIsdLSXMPGhIqyjyMhegWRSlL6LNoVcP20+oiXEP34cqE65rPCIm7iwPX9vLN HGijgmNpla8u5hkFDYxfU/7vi9ij53jfde4v0DDyK5HfhYyLROJTC8EiAuXDgvWl6yEN Q2mKwnlYYvbZnFdytlQRrlupA1YoSg5GdEQJnhZuBumB07dD4weNdCsGYkhXgwgCau6c WbAZQexyHZ+W/iJegZ2dYlN14ve+U4hHlKftvLoYXKmOTewlSeOsd5YzzD9bKbObJYAa Z/gw== X-Gm-Message-State: AJaThX4/8rYhU0o6w+818vadFSzKLZqLEfKuSJnpEHue+ILpR10ByKwH 9O5G1aHWSTJoai5M/AtpSxA9DWw= X-Received: by 10.157.41.74 with SMTP id d68mr1768081otb.184.1510855547837; Thu, 16 Nov 2017 10:05:47 -0800 (PST) Received: from xps15.herring.priv (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.googlemail.com with ESMTPSA id z72sm683615oig.18.2017.11.16.10.05.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Nov 2017 10:05:47 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Frank Rowand Subject: [PATCH 2/2] of: unittest: disable interrupts_property warning Date: Thu, 16 Nov 2017 12:05:45 -0600 Message-Id: <20171116180545.12322-2-robh@kernel.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20171116180545.12322-1-robh@kernel.org> References: <20171116180545.12322-1-robh@kernel.org> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The testcases.dts has purposely bad data which now generates a dtc warning: drivers/of/unittest-data/testcases.dtb: Warning (interrupts_property): interrupts size is (4), expected multiple of 8 in /testcase-data/testcase-device2 Disable this warning for now. The proper solution is to split the unit tests into good and bad data. Signed-off-by: Rob Herring --- drivers/of/unittest-data/Makefile | 1 + 1 file changed, 1 insertion(+) -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/of/unittest-data/Makefile b/drivers/of/unittest-data/Makefile index 2d135fba94c1..84b3bc44c0b4 100644 --- a/drivers/of/unittest-data/Makefile +++ b/drivers/of/unittest-data/Makefile @@ -1,3 +1,4 @@ +DTC_FLAGS_testcases := -Wno-interrupts_property obj-y += testcases.dtb.o targets += testcases.dtb testcases.dtb.S