diff options
author | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-08-02 18:55:55 +0200 |
---|---|---|
committer | Álvaro Fernández Rojas <noltari@gmail.com> | 2019-08-02 18:55:55 +0200 |
commit | 00813d4dd976cc823fa089840ff2f4a10dd6cd0c (patch) | |
tree | 8f2c74a928c9ea0eceb64809d9039db824ae6663 /target/linux/brcm2708/patches-4.14/950-0223-i2c-gpio-Also-set-bus-numbers-from-reg-property.patch | |
parent | 19226502bf6393706defe7f049c587b32c9b4f33 (diff) | |
download | upstream-00813d4dd976cc823fa089840ff2f4a10dd6cd0c.tar.gz upstream-00813d4dd976cc823fa089840ff2f4a10dd6cd0c.tar.bz2 upstream-00813d4dd976cc823fa089840ff2f4a10dd6cd0c.zip |
brcm2708: remove linux 4.14 support
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/brcm2708/patches-4.14/950-0223-i2c-gpio-Also-set-bus-numbers-from-reg-property.patch')
-rw-r--r-- | target/linux/brcm2708/patches-4.14/950-0223-i2c-gpio-Also-set-bus-numbers-from-reg-property.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/target/linux/brcm2708/patches-4.14/950-0223-i2c-gpio-Also-set-bus-numbers-from-reg-property.patch b/target/linux/brcm2708/patches-4.14/950-0223-i2c-gpio-Also-set-bus-numbers-from-reg-property.patch deleted file mode 100644 index 89710a9906..0000000000 --- a/target/linux/brcm2708/patches-4.14/950-0223-i2c-gpio-Also-set-bus-numbers-from-reg-property.patch +++ /dev/null @@ -1,35 +0,0 @@ -From 41ee5de43fef1fb44219a5bb7099af028d241670 Mon Sep 17 00:00:00 2001 -From: Phil Elwell <phil@raspberrypi.org> -Date: Tue, 20 Feb 2018 10:07:27 +0000 -Subject: [PATCH 223/454] i2c-gpio: Also set bus numbers from reg property - -I2C busses can be assigned specific bus numbers using aliases in -Device Tree - string properties where the name is the alias and the -value is the path to the node. The current DT parameter mechanism -does not allow property names to be derived from a parameter value -in any way, so it isn't possible to generate unique or matching -aliases for nodes from an overlay that can generate multiple -instances, e.g. i2c-gpio. - -Work around this limitation (at least temporarily) by allowing -the i2c adapter number to be initialised from the "reg" property -if present. - -Signed-off-by: Phil Elwell <phil@raspberrypi.org> ---- - drivers/i2c/busses/i2c-gpio.c | 4 +++- - 1 file changed, 3 insertions(+), 1 deletion(-) - ---- a/drivers/i2c/busses/i2c-gpio.c -+++ b/drivers/i2c/busses/i2c-gpio.c -@@ -223,7 +223,9 @@ static int i2c_gpio_probe(struct platfor - adap->dev.parent = &pdev->dev; - adap->dev.of_node = pdev->dev.of_node; - -- adap->nr = pdev->id; -+ if (pdev->id != PLATFORM_DEVID_NONE || !pdev->dev.of_node || -+ of_property_read_u32(pdev->dev.of_node, "reg", &adap->nr)) -+ adap->nr = pdev->id; - ret = i2c_bit_add_numbered_bus(adap); - if (ret) - return ret; |