[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191101074518.26228-1-lee.jones@linaro.org>
Date: Fri, 1 Nov 2019 07:45:08 +0000
From: Lee Jones <lee.jones@...aro.org>
To: daniel.thompson@...aro.org, broonie@...nel.org
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
arnd@...db.de, linus.walleij@...aro.org, baohua@...nel.org,
stephan@...hold.net, Lee Jones <lee.jones@...aro.org>
Subject: [PATCH v4 00/10] Simplify MFD Core
MFD currently has one over-complicated user. CS5535 uses a mixture of
cell cloning, reference counting and subsystem-level call-backs to
achieve its goal of requesting an IO memory region only once across 3
consumers. The same can be achieved by handling the region centrally
during the parent device's .probe() sequence. Releasing can be handed
in a similar way during .remove().
While we're here, take the opportunity to provide some clean-ups and
error checking to issues noticed along the way.
This also paves the way for clean cell disabling via Device Tree being
discussed at [0].
[0] https://lkml.org/lkml/2019/10/18/612.
Lee Jones (10):
mfd: cs5535-mfd: Use PLATFORM_DEVID_* defines and tidy error message
mfd: cs5535-mfd: Remove mfd_cell->id hack
mfd: cs5535-mfd: Request shared IO regions centrally
mfd: cs5535-mfd: Register clients using their own dedicated MFD cell
entries
mfd: mfd-core: Protect against NULL call-back function pointer
mfd: mfd-core: Remove mfd_clone_cell()
x86: olpc-xo1-pm: Remove invocation of MFD's .enable()/.disable()
call-backs
x86: olpc-xo1-sci: Remove invocation of MFD's .enable()/.disable()
call-backs
mfd: mfd-core: Remove usage counting for .{en,dis}able() call-backs
mfd: mfd-core: Move pdev->mfd_cell creation back into mfd_add_device()
arch/x86/platform/olpc/olpc-xo1-pm.c | 8 --
arch/x86/platform/olpc/olpc-xo1-sci.c | 6 --
drivers/mfd/cs5535-mfd.c | 108 +++++++++++-------------
drivers/mfd/mfd-core.c | 113 +++++---------------------
include/linux/mfd/core.h | 20 -----
5 files changed, 68 insertions(+), 187 deletions(-)
--
2.17.1
Powered by blists - more mailing lists