android_kernel_motorola_sm6375/drivers/of
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ilya Lipnitskiy f87a97cd71 UPSTREAM: of: property: fw_devlink: do not link ".*,nr-gpios"
[<vendor>,]nr-gpios property is used by some GPIO drivers[0] to indicate
the number of GPIOs present on a system, not define a GPIO. nr-gpios is
not configured by #gpio-cells and can't be parsed along with other
"*-gpios" properties.

nr-gpios without the "<vendor>," prefix is not allowed by the DT
spec[1], so only add exception for the ",nr-gpios" suffix and let the
error message continue being printed for non-compliant implementations.

[0] nr-gpios is referenced in Documentation/devicetree/bindings/gpio:
 - gpio-adnp.txt
 - gpio-xgene-sb.txt
 - gpio-xlp.txt
 - snps,dw-apb-gpio.yaml

[1] Link: cb53a16a1e/schemas/gpio/gpio-consumer.yaml (L20)

Fixes errors such as:
  OF: /palmbus@300000/gpio@600: could not find phandle

Fixes: 7f00be96f125 ("of: property: Add device link support for interrupt-parent, dmas and -gpio(s)")
Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
Cc: Saravana Kannan <saravanak@google.com>
Cc: stable@vger.kernel.org # v5.5+
Link: https://lore.kernel.org/r/20210405222540.18145-1-ilya.lipnitskiy@gmail.com
Signed-off-by: Rob Herring <robh@kernel.org>
(cherry picked from commit d473d32c2fbac2d1d7082c61899cfebd34eb267a)
Bug: 187129171
Signed-off-by: Connor O'Brien <connoro@google.com>
Change-Id: I309004fd4c592ca2697b637d232f9839ba4153eb
2021-10-01 11:32:55 -07:00
..
unittest-data
address.c This is the 5.4.78 stable release 2020-11-19 08:52:52 +01:00
base.c
device.c
dynamic.c
fdt.c This is the 5.4.132 stable release 2021-07-14 17:12:58 +02:00
fdt_address.c
irq.c
Kconfig
kobj.c
Makefile
of_mdio.c
of_net.c
of_numa.c
of_private.h
of_reserved_mem.c This is the 5.4.132 stable release 2021-07-14 17:12:58 +02:00
overlay.c
pdt.c
platform.c UPSTREAM: of/platform: Unconditionally pause/resume sync state during kernel init 2020-11-14 16:56:37 +01:00
property.c UPSTREAM: of: property: fw_devlink: do not link ".*,nr-gpios" 2021-10-01 11:32:55 -07:00
resolver.c
unittest.c