aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm27xx/patches-5.4/950-0109-i2c-gpio-Also-set-bus-numbers-from-reg-property.patch
diff options
context:
space:
mode:
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-10-05 20:51:18 +0200
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>2021-10-05 23:54:18 +0200
commiteb3a99bc183e36922b9e8314620e4e64964bcaf0 (patch)
tree9f810d6d91e43a3e3dd05ba6b0c9b450b96be5bc /target/linux/bcm27xx/patches-5.4/950-0109-i2c-gpio-Also-set-bus-numbers-from-reg-property.patch
parent81ba544f88e6fd3252fb2f7dd9103c4bd9f83bfb (diff)
downloadupstream-eb3a99bc183e36922b9e8314620e4e64964bcaf0.tar.gz
upstream-eb3a99bc183e36922b9e8314620e4e64964bcaf0.tar.bz2
upstream-eb3a99bc183e36922b9e8314620e4e64964bcaf0.zip
bcm27xx: remove obsolete kernel 5.4
With the upgrade to kernel 5.10 per default the old version is no longer required to be in tree. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux/bcm27xx/patches-5.4/950-0109-i2c-gpio-Also-set-bus-numbers-from-reg-property.patch')
-rw-r--r--target/linux/bcm27xx/patches-5.4/950-0109-i2c-gpio-Also-set-bus-numbers-from-reg-property.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/target/linux/bcm27xx/patches-5.4/950-0109-i2c-gpio-Also-set-bus-numbers-from-reg-property.patch b/target/linux/bcm27xx/patches-5.4/950-0109-i2c-gpio-Also-set-bus-numbers-from-reg-property.patch
deleted file mode 100644
index 2781114187..0000000000
--- a/target/linux/bcm27xx/patches-5.4/950-0109-i2c-gpio-Also-set-bus-numbers-from-reg-property.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 07127fcefbe234f8d36507c58c82098663781cb0 Mon Sep 17 00:00:00 2001
-From: Phil Elwell <phil@raspberrypi.org>
-Date: Tue, 20 Feb 2018 10:07:27 +0000
-Subject: [PATCH] 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
-@@ -445,7 +445,9 @@ static int i2c_gpio_probe(struct platfor
- adap->dev.parent = dev;
- adap->dev.of_node = np;
-
-- 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;