# \[PATCH v3 02/18\] of/platform: add of\_platform\_probe

- From: Mark Brown \<broonie@kernel.org\>
- Date: 2015-09-11 15:35:57 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2015/09/4573764
- Thread: https://ratatoskr.run/linux-arm-kernel/2015/08/4552413/t.md

```text
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20150911/f743be13/attachment.sig>
```
