From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753475AbbIKPf5 (ORCPT ); Fri, 11 Sep 2015 11:35:57 -0400 Received: from mezzanine.sirena.org.uk ([106.187.55.193]:60247 "EHLO mezzanine.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753195AbbIKPfx (ORCPT ); Fri, 11 Sep 2015 11:35:53 -0400 Date: Fri, 11 Sep 2015 16:35:30 +0100 From: Mark Brown To: Tomeu Vizoso Cc: "linux-kernel@vger.kernel.org" , Rob Herring , Stephen Warren , Javier Martinez Canillas , Thierry Reding , "Rafael J. Wysocki" , "linux-arm-kernel@lists.infradead.org" , Dmitry Torokhov , "devicetree@vger.kernel.org" , Linus Walleij , linux-acpi@vger.kernel.org, Arnd Bergmann Message-ID: <20150911153530.GM20922@sirena.org.uk> References: <1438870315-18689-1-git-send-email-tomeu.vizoso@collabora.com> <1438870315-18689-3-git-send-email-tomeu.vizoso@collabora.com> <20150807121913.GS20873@sirena.org.uk> <20150911095748.GC12027@sirena.org.uk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="egxrhndXibJAPJ54" Content-Disposition: inline In-Reply-To: X-Cookie: Brain off-line, please wait. User-Agent: Mutt/1.5.23 (2014-03-12) X-SA-Exim-Connect-IP: 94.175.94.161 X-SA-Exim-Mail-From: broonie@sirena.org.uk Subject: Re: [PATCH v3 02/18] of/platform: add of_platform_probe X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on mezzanine.sirena.org.uk) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --egxrhndXibJAPJ54 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, Sep 11, 2015 at 04:06:07PM +0200, Tomeu Vizoso wrote: > Once a platform device (with the platform bus as its parent) is > retrieved from the deferred queue, both the parent and the device in > question are locked (because of the USB stuff mentioned below). If > that device depends on another device whose parent is the platform bus > and we try to probe it (useless, but I don't see a good way of > avoiding it) then we'll deadlock when device_attach locks that device. Ugh, that's nasty. Trying to fix this would most likely devolve into trying to shove things onto the deferred list in the right order but that's definitely a very different solution with problems. --egxrhndXibJAPJ54 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJV8vTBAAoJECTWi3JdVIfQmHYH/1w26xjIUDlT4O8IxqvkyoGh BhTIIQWoiEWZXfJ96aNqM8l5Du35u0pac3Q12yRJr08EyTnFQmA7TQXb7yWlldoA 1Gkd4wkWQ8/R8Kcx+wbVXUKODgEcRcoV17bOoqA8Nfyd5nVUY2xW10jMf/AwpXXR lm4MU0Wafx+1YnvfqcX0ZIIsSnQEcKKh5iLRsrdhjAnjXCI3qn0ZAs1abNRi+0BR GRa3dx0DU+eVYl1VyddlYz2LIda2SnfxSfj/E7BVDXyEuSSLd6j+TUdzZdabjjWA wvPtKKs7Ei7LaagpYS6JaMYyfNu2r8/uaOOcDZXjI89g2QmflY0RhyhaPpuSMgA= =QJVT -----END PGP SIGNATURE----- --egxrhndXibJAPJ54--