lkml.org 
[lkml]   [2018]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/3] link regulator consumer with driver
Date
From: pascal paillet <p.paillet@st.com>

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

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