lkml.org 
[lkml]   [2020]   [Jul]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RESEND PATCH v3 1/2] mfd: mfd-core: Add mechanism for removal of a subset of children
On Thu, 23 Jul 2020, Charles Keepax wrote:

> Currently, the only way to remove MFD children is with a call to
> mfd_remove_devices, which will remove all the children. Under
> some circumstances it is useful to remove only a subset of the
> child devices. For example if some additional clean up is required
> between removal of certain child devices.
>
> To accomplish this a level field is added to mfd_cell, the normal
> mfd_remove_devices is modified to not remove devices that are set
> to a higher level and a corresponding mfd_remove_devices_late
> function is added to remove those children.
>
> See further discussion at:
> https://lore.kernel.org/lkml/20200616075834.GF2608702@dell/
>
> Suggested-by: Lee Jones <lee.jones@linaro.org>
> Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
> ---
> drivers/mfd/mfd-core.c | 16 +++++++++++++++-
> include/linux/mfd/core.h | 5 +++++
> 2 files changed, 20 insertions(+), 1 deletion(-)

Applied, thanks.

--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog

\
 
 \ /
  Last update: 2020-07-27 16:02    [W:1.604 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site