]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: generic: scan for "pins" and "groups" properties in sub-nodes
authorBeniamino Galvani <b.galvani@gmail.com>
Tue, 16 Aug 2016 09:49:47 +0000 (11:49 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 6 Sep 2016 17:18:19 +0000 (13:18 -0400)
commit2c936374c81a24a461cf71725a1e9ce439e048ed
tree1962a556ccf23abac5b994036bf7a7a685643726
parent950fe26de9d6e7355b96c6f5dcc8455398216b9f
pinctrl: generic: scan for "pins" and "groups" properties in sub-nodes

In cases where the pins and groups definitions are in a sub-node, as:

uart_a {
mux {
groups = "uart_tx_a", "uart_rx_a";
function = "uart_a";
};
};

pinctrl_generic_set_state_subnode() returns an error for the top-level
node and pinctrl_generic_set_state() fails. Instead, return success so
that the child nodes are tried.

Signed-off-by: Beniamino Galvani <b.galvani@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/pinctrl/pinctrl-generic.c