]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
greybus: svc: add AP power measurements debugfs support
authorDavid Lin <dtwlin@google.com>
Wed, 20 Apr 2016 23:55:08 +0000 (16:55 -0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 21 Apr 2016 01:50:56 +0000 (10:50 +0900)
commit9504677c9a9ef4123e4bc9fb8f6903b92453ea6f
treea2d69392373817433895285b75a24c308e655d41
parent05a849191f964cf684777fed9ac471d59f2f18ef
greybus: svc: add AP power measurements debugfs support

This change adds the AP Power Monitor functions to
read out all the rails power information monitored by
the SVC.

Testing Done:
- $ cat /d/greybus/1-svc/pwrmon/*/*
  and validate the output with the svc stub power
  monitor functions
- $ tree /d/greybus/1-svc/pwrmon
  | | | |---pwrmon
  | | | | |---DUMMY_RAIL_1
  | | | | | |---current_now
  | | | | | |---power_now
  | | | | | |---voltage_now
  | | | | |---DUMMY_RAIL_2
  | | | | | |---current_now
  | | | | | |---power_now
  | | | | | |---voltage_now
  | | | | |---DUMMY_RAIL_3
  | | | | | |---current_now
  | | | | | |---power_now
  | | | | | |---voltage_now
  | | | | |---DUMMY_RAIL_4
  | | | | | |---current_now
  | | | | | |---power_now
  | | | | | |---voltage_now

Signed-off-by: David Lin <dtwlin@google.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/greybus_protocols.h
drivers/staging/greybus/svc.c
drivers/staging/greybus/svc.h