Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d02fbc96 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

leds: qpnp-flash-v2: add delay between LMH mitigation and LED strobe



As per the hardware recommendation, a delay of 500 us is needed
after LMH mitigation is enabled by software and before the flash
LED is strobed. Add it.

Change-Id: Ib70efbb7267510ffb9d95c4aba8566bf6e777c0f
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 436b4a5f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1077,6 +1077,8 @@ static int qpnp_flash_led_switch_set(struct flash_switch_data *snode, bool on)
			pr_err("trigger lmh mitigation failed, rc=%d\n", rc);
			return rc;
		}
		/* Wait for LMH mitigation to take effect */
		udelay(500);
	}

	if (led->trigger_chgr) {