From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 2E56FB6EF4 for ; Thu, 22 Mar 2012 02:09:07 +1100 (EST) Subject: Re: [PATCH] powerpc/85xx: don't call of_platform_bus_probe() twice Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=us-ascii From: Kumar Gala In-Reply-To: <20120319160452.B57D13E05A5@localhost> Date: Wed, 21 Mar 2012 10:08:49 -0500 Message-Id: <50E98FCC-EA02-4215-98EC-7C16671447DF@kernel.crashing.org> References: <1322669957-8259-1-git-send-email-timur@freescale.com> <4F63A7A4.4000205@freescale.com> <20120319160452.B57D13E05A5@localhost> To: Grant Likely Cc: Scott Wood , Dmitry Eremin-Solenikov , Timur Tabi , linuxppc-dev list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mar 19, 2012, at 11:04 AM, Grant Likely wrote: > On Fri, 16 Mar 2012 15:50:44 -0500, Timur Tabi = wrote: >> Kumar Gala wrote: >>=20 >>> This seems like paper taping over the real issue. We should be able = to call of_platform_bus_probe() multiple times. >>=20 >> I tried debugging it, but I couldn't figure it out. My guess is that = the >> nodes probed by of_platform_bus_probe() are somehow "reserved", so = that >> the second time it's called, they're skipped. I figured that this = was >> just a side-effect of the way the OF layer works. >=20 > The problem is that you want to create devices for grandchildren > nodes when the bus ids passed in don't match any of the child nodes so > the of_platform_bus_probe() doesn't iterate down to that level. This > is correct and expected behaviour. >=20 > g. Does of_platform_populate() handle this? - k=