summaryrefslogtreecommitdiff
path: root/lib/mpi/mpicoder.c
diff options
context:
space:
mode:
authorAbhijeet Dharmapurikar <adharmap@codeaurora.org>2016-10-07 19:04:33 -0700
committerAbhijeet Dharmapurikar <adharmap@codeaurora.org>2016-10-17 11:54:13 -0700
commit139548f446756f667f9719960839e50397b38b8d (patch)
treed6c006a07e3bde412b8c72be0b16fbf87e669e2b /lib/mpi/mpicoder.c
parent2cdfc35e0b9cc3c25fad123a0581f80cae51c507 (diff)
smb-lib: support separate current settings from usb and pd
Add support to set current limits from usb and pd. Ensure that the limit from the pd is only enforced when pd is active and that the limit from usb is enforced only when pd is inactive. There is one situation when the input needs to be suspended as per the usb driver's request when pd sets system_suspend_supported. For that allow the usb voter to set that low current value to suspend. Also ensure that the pd and usb votes are nullified when source is removed. In addition, the return the individual valid votes from usb and pd when their current_max are read. Change-Id: I215e9e82f44061c4083a4df8cab400beadf6322d Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Diffstat (limited to 'lib/mpi/mpicoder.c')
0 files changed, 0 insertions, 0 deletions