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 <[email protected]> > Signed-off-by: Charles Keepax <[email protected]> > --- > 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

