All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pinctrl: generic: Parse pinmux init nodes if node status is okay
@ 2016-10-28 11:24 ` Laxman Dewangan
  0 siblings, 0 replies; 3+ messages in thread
From: Laxman Dewangan @ 2016-10-28 11:24 UTC (permalink / raw)
  To: linus.walleij; +Cc: linux-gpio, linux-kernel, Laxman Dewangan

During pinmux registration, pinmux table is parsed from DT
for making the pinmux table configuration of pins.

Parse the only those node whose status is not disabled.
This will help on reusing the pin configuration table across
platform and disabling the node by status property if that node
is not needed on given platform.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
---
 drivers/pinctrl/pinconf-generic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinconf-generic.c b/drivers/pinctrl/pinconf-generic.c
index 5020ae5..ce3335a 100644
--- a/drivers/pinctrl/pinconf-generic.c
+++ b/drivers/pinctrl/pinconf-generic.c
@@ -381,7 +381,7 @@ int pinconf_generic_dt_node_to_map(struct pinctrl_dev *pctldev,
 	if (ret < 0)
 		goto exit;
 
-	for_each_child_of_node(np_config, np) {
+	for_each_available_child_of_node(np_config, np) {
 		ret = pinconf_generic_dt_subnode_to_map(pctldev, np, map,
 					&reserved_maps, num_maps, type);
 		if (ret < 0)
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] pinctrl: generic: Parse pinmux init nodes if node status is okay
@ 2016-10-28 11:24 ` Laxman Dewangan
  0 siblings, 0 replies; 3+ messages in thread
From: Laxman Dewangan @ 2016-10-28 11:24 UTC (permalink / raw)
  To: linus.walleij; +Cc: linux-gpio, linux-kernel, Laxman Dewangan

During pinmux registration, pinmux table is parsed from DT
for making the pinmux table configuration of pins.

Parse the only those node whose status is not disabled.
This will help on reusing the pin configuration table across
platform and disabling the node by status property if that node
is not needed on given platform.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
---
 drivers/pinctrl/pinconf-generic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pinctrl/pinconf-generic.c b/drivers/pinctrl/pinconf-generic.c
index 5020ae5..ce3335a 100644
--- a/drivers/pinctrl/pinconf-generic.c
+++ b/drivers/pinctrl/pinconf-generic.c
@@ -381,7 +381,7 @@ int pinconf_generic_dt_node_to_map(struct pinctrl_dev *pctldev,
 	if (ret < 0)
 		goto exit;
 
-	for_each_child_of_node(np_config, np) {
+	for_each_available_child_of_node(np_config, np) {
 		ret = pinconf_generic_dt_subnode_to_map(pctldev, np, map,
 					&reserved_maps, num_maps, type);
 		if (ret < 0)
-- 
2.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] pinctrl: generic: Parse pinmux init nodes if node status is okay
  2016-10-28 11:24 ` Laxman Dewangan
  (?)
@ 2016-10-29  8:32 ` Linus Walleij
  -1 siblings, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2016-10-29  8:32 UTC (permalink / raw)
  To: Laxman Dewangan; +Cc: linux-gpio, linux-kernel

On Fri, Oct 28, 2016 at 1:24 PM, Laxman Dewangan <ldewangan@nvidia.com> wrote:

> During pinmux registration, pinmux table is parsed from DT
> for making the pinmux table configuration of pins.
>
> Parse the only those node whose status is not disabled.
> This will help on reusing the pin configuration table across
> platform and disabling the node by status property if that node
> is not needed on given platform.
>
> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>

Makes perfect sense. Patch applied.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-29  8:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-28 11:24 [PATCH] pinctrl: generic: Parse pinmux init nodes if node status is okay Laxman Dewangan
2016-10-28 11:24 ` Laxman Dewangan
2016-10-29  8:32 ` Linus Walleij

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.