diff options
| author | Subbaraman Narayanamurthy <subbaram@codeaurora.org> | 2016-10-20 19:23:24 -0700 |
|---|---|---|
| committer | Subbaraman Narayanamurthy <subbaram@codeaurora.org> | 2016-10-25 10:07:19 -0700 |
| commit | 73518d1b29f8179e7a90a30ac681886773e8301d (patch) | |
| tree | 6985f1ed80872c6ba285e591563d5a2b80505eb6 /tools/perf/scripts/python | |
| parent | 0fec3cabfe82839b396152743bff05a7007f3955 (diff) | |
leds: qpnp-wled: add a secure write API
Currently, for doing a secure write to the peripheral register,
secure access is acquired at the call site before writing to the
register. Optimize this by adding an API to do secure writes.
When a secure write is attempted, it should be atomic and not
raced with normal write. Add a mutex lock to synchronize the
normal and secure writes. While at it, fix the data parameter
passed to qpnp_wled_write_reg() as that doesn't really need a
pointer.
CRs-Fixed: 1082047
Change-Id: I6a678d9133b06dda2de1c6cfe4bbafacc594f299
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
