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

Commit ff3868e2 authored by Jishnu Prakash's avatar Jishnu Prakash
Browse files

backlight: qcom-spmi-wled: restrict HFRC clocks WA to PM8150L alone



Apply existing workaround of forcing HFRC clocks off before WLED module
disable for PM8150L alone, as the issue is fixed in HW from PM7325B.

Change-Id: I8a7bc231f1711ce964c96ec28088546981e81fae
Signed-off-by: default avatarJishnu Prakash <jprakash@codeaurora.org>
parent 98ed1806
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -320,7 +320,7 @@ static int wled_module_enable(struct wled *wled, int val)
		return 0;

	/* Force HFRC off */
	if (is_wled5(wled)) {
	if (*wled->version == WLED_PM8150L) {
		reg = val ? 0 : 3;
		rc = regmap_write(wled->regmap, wled->ctrl_addr +
				  WLED5_CTRL_PBUS_WRITE_SYNC_CTL, reg);
@@ -335,7 +335,7 @@ static int wled_module_enable(struct wled *wled, int val)
		return rc;

	/* Force HFRC off */
	if (is_wled5(wled) && val) {
	if ((*wled->version == WLED_PM8150L) && val) {
		rc = regmap_write(wled->regmap, wled->sink_addr +
				  WLED5_SINK_FLASH_SHDN_CLR_REG, 0);
		if (rc < 0)