From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261439AbVFUN7j (ORCPT ); Tue, 21 Jun 2005 09:59:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261451AbVFUN5N (ORCPT ); Tue, 21 Jun 2005 09:57:13 -0400 Received: from crl-mail-dmz.crl.hpl.hp.com ([192.58.210.9]:50359 "EHLO crl-mailb.crl.dec.com") by vger.kernel.org with ESMTP id S261333AbVFUNzy (ORCPT ); Tue, 21 Jun 2005 09:55:54 -0400 Message-ID: <42B81C5B.4030304@hp.com> Date: Tue, 21 Jun 2005 09:55:39 -0400 From: Jamey Hicks User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Greg KH CC: linux-kernel@vger.kernel.org Subject: Re: recursive call to platform_device_register deadlocks References: <42B43226.20703@hp.com> <20050619055924.GA14674@kroah.com> In-Reply-To: <20050619055924.GA14674@kroah.com> X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-HPLC-MailScanner-Information: Please contact the ISP for more information X-HPLC-MailScanner: Found to be clean X-HPLC-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-4.9, required 5, BAYES_00 -4.90) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Greg KH wrote: >On Sat, Jun 18, 2005 at 10:39:34AM -0400, Jamey Hicks wrote: > > >>We could restructure the toplevel driver so that it does not call >>platform_device inside its probe function. An alternative would be to >>add a pointer to a vector of subdevices to platform_device and have it >>register the subdevices after it has probed the toplevel device. Do you >>have any recommendations? >> >> > >Use the -mm kernel, this should be allowed in that release, due to a >rework of the driver core logic in this area. Can you test this out and >verify this? > > > I tested 2.6.12-mm1 yesterday and verified that it allows recursive calls to platform_device. Jamey