diff options
| author | Viresh Kumar <[email protected]> | 2016-07-20 16:40:25 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-07-20 10:16:54 -0700 |
| commit | 93e29c8530881766837e62088d54ffb733f8bc2a (patch) | |
| tree | 1a26b9ad54d878b4c45771bfb3e064836b9f4a03 /tools/perf/scripts/python | |
| parent | 12169bc9143ed24ad7a5ea12a7c28d1dba891131 (diff) | |
greybus: interface: add power_state attribute
User space needs the capability of powering ON or OFF an Interface for
multiple use cases. For example, userspace may want an Interface
currently in its S3 boot stage, to boot into its S2 Loader stage to
update the bridge SPI flash. Or the Interface is running its S2 Loader
stage and updated the SPI flash with the new S2 Loader firmware and
wants to boot into the new S2 Loader firmware.
Another use case can be, Android wants to disable (not eject) a
misbehaving module.
Add a 'power_state' sysfs file within the interface directory. It can be
read to know the current power state of the Interface and can be written
to power ON or power OFF an Interface. Possible values that can be
written or read from it are: "on" and "off".
Testing Done: Tested by enabling/disabling camera module on EVT 2.0.
Signed-off-by: Viresh Kumar <[email protected]>
CC: David Lin <[email protected]>
Reviewed-by: Johan Hovold <[email protected]>
[johan: drop es3-quirk duplication, add to power attribute group, fix
return value, drop tags ]
Signed-off-by: Johan Hovold <[email protected]>
Reviewed-by: Alex Elder <[email protected]>
Reviewed-by: Viresh Kumar <[email protected]>
Reviewed-by: Sandeep Patil <[email protected]>
Reviewed-by: Patrick Titiano <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions