summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorPaul Barker <paul.barker.ct@bp.renesas.com>2023-10-16 10:25:31 +0100
committerMarek Vasut <marek.vasut+renesas@mailbox.org>2023-10-16 15:46:18 +0200
commitee0522f52006cf6722dc783fe57ce86bbeda7aa2 (patch)
tree56f54e34f5e921f40772e380d88abd3dea06aa33 /config.mk
parent959fc0bd724e7fb0788e85881d5e0d88de613ecf (diff)
downloadu-boot-ee0522f52006cf6722dc783fe57ce86bbeda7aa2.tar.gz
u-boot-ee0522f52006cf6722dc783fe57ce86bbeda7aa2.tar.bz2
u-boot-ee0522f52006cf6722dc783fe57ce86bbeda7aa2.zip
cmd: gpio: Skip output on -ENOENT
On the Renesas RZ/G2L SoC family, valid GPIO numbers are not contiguous. This is determined by the device tree, where a fixed number of bits are used for the 'pin' number within a 'port', even though not all ports have the same number of pins. The device tree can't be changed here without breaking backwards compatibility in Linux, which we don't want to do. To avoid printing a status for each of these invalid GPIO numbers when a user executes `gpio status -a`, we allow gpio_get_function() to return -ENOENT when the given offset does not refer to a valid GPIO pin and we skip printing anything if this occurs. Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com> Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Diffstat (limited to 'config.mk')
0 files changed, 0 insertions, 0 deletions