public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] misc: scu: Remove child dev bind
@ 2020-06-10  3:29 Ye Li
  2020-06-10  3:29 ` [PATCH] i2c: imx_lpi2c: Improve the codes to use private data Ye Li
  2020-06-10  3:29 ` [PATCH] gpio: mxc_gpio: Improve to use ofdata_to_platdata Ye Li
  0 siblings, 2 replies; 5+ messages in thread
From: Ye Li @ 2020-06-10  3:29 UTC (permalink / raw)
  To: u-boot

Remove the child device binding codes for clk and iomux nodes, because
the misc uclass has added such operation in post-bind. If we keep the
codes in scu bind, child devices will be created twices. Find the
problem by "dm uclass" command.

uclass 24: clk
0   * clk @ fce22380, seq 0, (req -1)
1     clk @ fce23110

uclass 67: pinctrl
0   * iomuxc @ fce22470, seq 0, (req -1)
1     iomuxc @ fce231c0

After the fix:

uclass 24: clk
0   * clk @ fce22380, seq 0, (req -1)

uclass 67: pinctrl
0   * iomuxc @ fce22470, seq 0, (req -1)

Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
---
 drivers/misc/imx8/scu.c | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/drivers/misc/imx8/scu.c b/drivers/misc/imx8/scu.c
index ee635eb..cdf3052 100644
--- a/drivers/misc/imx8/scu.c
+++ b/drivers/misc/imx8/scu.c
@@ -212,18 +212,6 @@ static int imx8_scu_remove(struct udevice *dev)
 
 static int imx8_scu_bind(struct udevice *dev)
 {
-	int ret;
-	struct udevice *child;
-	ofnode node;
-
-	debug("%s(dev=%p)\n", __func__, dev);
-	ofnode_for_each_subnode(node, dev_ofnode(dev)) {
-		ret = lists_bind_fdt(dev, node, &child, true);
-		if (ret)
-			return ret;
-		debug("bind child dev %s\n", child->name);
-	}
-
 	return 0;
 }
 
-- 
2.7.4

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

end of thread, other threads:[~2020-07-16 17:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-10  3:29 [PATCH] misc: scu: Remove child dev bind Ye Li
2020-06-10  3:29 ` [PATCH] i2c: imx_lpi2c: Improve the codes to use private data Ye Li
2020-07-09  8:32   ` Heiko Schocher
2020-06-10  3:29 ` [PATCH] gpio: mxc_gpio: Improve to use ofdata_to_platdata Ye Li
2020-07-16 17:49   ` sbabic at denx.de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox