Commit 71230248 authored by Fenglin Wu's avatar Fenglin Wu Committed by Greg Kroah-Hartman
Browse files

leds: flash: leds-qcom-flash: Limit LED current based on thermal condition



[ Upstream commit a0864cf3 ]

The flash module has status bits to indicate different thermal
conditions which are called as OTSTx. For each OTSTx status,
there is a recommended total flash current for all channels to
prevent the flash module entering into higher thermal level.
For example, the total flash current should be limited to 1000mA/500mA
respectively when the HW reaches the OTST1/OTST2 thermal level.

Signed-off-by: default avatarFenglin Wu <quic_fenglinw@quicinc.com>
Link: https://lore.kernel.org/r/20240705-qcom_flash_thermal_derating-v3-1-8e2e2783e3a6@quicinc.com


Signed-off-by: default avatarLee Jones <lee@kernel.org>
Stable-dep-of: fab15f57 ("leds: flash: leds-qcom-flash: Fix registry access after re-bind")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 84a24fb4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment