Messages in this thread | | | Date | Mon, 2 Jun 2014 22:01:17 +0100 | From | Mark Brown <> | Subject | Re: [PATCH 1/2] mfd: core: Add the option to order destruction of MFD cells |
| |
On Mon, Jun 02, 2014 at 10:01:43AM +0100, Charles Keepax wrote: > Sometimes MFD children will have interdependancies. For example an MFD > device might contain a regulator cell and another cell which requires > that regulator to function. Probe deferral will ensure that these > devices probe in the correct order, however currently nothing ensures > they are destroyed in the correct order. As such it is possible for a > cell to be destroyed whilst another cell still expects it to exist. For > example the cell mentioned earlier would attempt to do a regulator_put > as part of its own tear-down but the regulator may have already been > destroyed.
Probe deferral is supposed to handle removal too, we're supposed to be able to walk the device list in reverse order and everything just work. [unhandled content-type:application/pgp-signature] | |