Re: [PATCH v8 11/14] power: bq24257: Allow input current limit sysfs access
From: Krzysztof Kozlowski <hidden>
Date: 2015-09-29 06:14:17
Also in:
linux-devicetree, linux-pm
From: Krzysztof Kozlowski <hidden>
Date: 2015-09-29 06:14:17
Also in:
linux-devicetree, linux-pm
W dniu 29.09.2015 o 07:33, Andreas Dannenberg pisze:
This patch allows reading and writing of the input current limit through the power supply's input_current_limit sysfs property. This allows userspace to see what charger was detected (if the D+/D- USB signal- based charger type detection is enabled) and to re-configure the maximum current drawn from the external supply at runtime based on system-level knowledge or user input. Note that upon charger disconnection and re-connection the limit configured through firmware becomes active again (or the D+/D- USB signal-based charger detection will be run again). Signed-off-by: Andreas Dannenberg <redacted> --- drivers/power/bq24257_charger.c | 85 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 79 insertions(+), 6 deletions(-)
Reviewed-by: Krzysztof Kozlowski <redacted> Best regards, Krzysztof