75f63728ec2bd5227da381305e082eea7608215e
[openwrt/openwrt.git] / target / linux / generic / pending-5.10 / 050-dtc-checks-Drop-interrupt-provider-address-cells-check.patch
1 From d8d1a9a77863a8c7031ae82a1d461aa78eb72a7b Mon Sep 17 00:00:00 2001
2 From: Rob Herring <robh@kernel.org>
3 Date: Mon, 11 Oct 2021 14:12:43 -0500
4 Subject: [PATCH] checks: Drop interrupt provider '#address-cells' check
5
6 '#address-cells' is only needed when parsing 'interrupt-map' properties, so
7 remove it from the common interrupt-provider test.
8
9 Cc: Andre Przywara <andre.przywara@arm.com>
10 Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
11 Signed-off-by: Rob Herring <robh@kernel.org>
12 Message-Id: <20211011191245.1009682-3-robh@kernel.org>
13 Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
14 ---
15 --- a/scripts/dtc/checks.c
16 +++ b/scripts/dtc/checks.c
17 @@ -1569,11 +1569,6 @@ static void check_interrupt_provider(str
18 if (!prop)
19 FAIL(c, dti, node,
20 "Missing #interrupt-cells in interrupt provider");
21 -
22 - prop = get_property(node, "#address-cells");
23 - if (!prop)
24 - FAIL(c, dti, node,
25 - "Missing #address-cells in interrupt provider");
26 }
27 WARNING(interrupt_provider, check_interrupt_provider, NULL);
28