[PATCH 0/3] link regulator consumer with driver
From: Pascal PAILLET-LME
Date: Thu Jul 05 2018 - 10:26:40 EST
From: pascal paillet <p.paillet@xxxxxx>
The goal of this patch-set is to ensure that a regulator driver is not suspended
before regulator consumer. Currently this is done by implementing suspend_late()
ops in the regulator driver but this is painful for an I2C controlled regulator.
Instead, the proposal is to add a device link between the driver and the consumer
at regulator core framework level.
To avoid storing the link pointer in the regulator core structure, we create
device_link_remove() function that use the same argument as device_link_add().
pascal paillet (3):
driver core: Add device_link_remove function
regulator: core: Link consumer with regulator driver
regulator: core: Change suspend_late to suspend
drivers/base/core.c | 30 +++++++++++++++++++++++++++
drivers/regulator/core.c | 44 ++++++++++++++++++++++++++--------------
include/linux/device.h | 1 +
include/linux/regulator/driver.h | 2 +-
4 files changed, 61 insertions(+), 16 deletions(-)
--
1.9.1