bcm27xx: update patches from RPi foundation
[openwrt/openwrt.git] / target / linux / bcm27xx / patches-5.4 / 950-0702-overlays-Make-the-i2c-gpio-overlay-safe-again.patch
1 From 3c0cbb59e068f13b2a12a98a5dac42afa8ccc639 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.com>
3 Date: Fri, 1 May 2020 17:56:13 +0100
4 Subject: [PATCH] overlays: Make the i2c-gpio overlay safe again
5
6 Like many overlays, the i2c-gpio overlay goes to efforts to avoid
7 generating warnings about #address-cells and #size-cells not
8 being defined, which it does by defining them. Unfortunately this
9 is fatal if they don't match what the system requires, and the
10 recent switch to #size-cells = 2 on 2711 made i2c-gpio very
11 dangerous.
12
13 In the absence of the knowledge of a clean way to fix this, just delete
14 the declarations and suffer the warnings.
15
16 Signed-off-by: Phil Elwell <phil@raspberrypi.com>
17 ---
18 arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts | 3 ---
19 1 file changed, 3 deletions(-)
20
21 --- a/arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
22 +++ b/arch/arm/boot/dts/overlays/i2c-gpio-overlay.dts
23 @@ -9,9 +9,6 @@
24 target-path = "/";
25
26 __overlay__ {
27 - #address-cells = <1>;
28 - #size-cells = <0>;
29 -
30 i2c_gpio: i2c@0 {
31 reg = <0xffffffff>;
32 compatible = "i2c-gpio";