OSDN Git Service

leds: qpnp-wled: Disable module permanently when OVP fault persists
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Fri, 13 Oct 2017 04:04:30 +0000 (21:04 -0700)
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>
Tue, 24 Oct 2017 23:40:22 +0000 (16:40 -0700)
commit703b54ebc488a9c008e91ff6286d68e38cf92336
tree66f7420f4c70f0b23066859053a0fa1193fb75be
parentf24199bb12738f754c551dd2366d1c009fe592b1
leds: qpnp-wled: Disable module permanently when OVP fault persists

Currently, auto calibration will be invoked if an OVP fault is
triggered because of an incorrect sink configuration. However,
there are certain hardware platforms where the display panel is
not used. It is hard to differentiate such platforms as they
will be using the same device tree configuration or parameters
related to display panel passed through the bootloader.

Disable the module permanently and also keep the OVP fault
interrupt disabled when a valid sink configuration is not found
by auto calibration.

Change-Id: I302322020e8d6d4f92901dac468602c357967e18
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
drivers/leds/leds-qpnp-wled.c