Re: [PATCH 1/2] power: supply: qcom_battmgr: clamp charge control thresholds

From: Konrad Dybcio

Date: Mon Oct 13 2025 - 05:43:08 EST


On 10/13/25 1:32 AM, Val Packett wrote:
> The sysfs API documentation says that drivers "round written values to
> the nearest supported value" for charge_control_end_threshold.
>
> Let's do this for both thresholds, as userspace (e.g. upower) generally
> does not expect these writes to fail at all.

The documentation says so only for the upper bound. You should
probably submit a patch to amend the lower one as well

Konrad