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

Commit fc765361 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: qpnp-fg: read rslow configuration during hw_init"

parents 73135edf aa349180
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -6266,6 +6266,20 @@ static int fg_common_hw_init(struct fg_chip *chip)
		if (fg_debug_mask & FG_STATUS)
			pr_info("imptr_pulse_slow is %sabled\n",
				chip->imptr_pulse_slow_en ? "en" : "dis");

		rc = fg_mem_read(chip, &val, RSLOW_CFG_REG, 1, RSLOW_CFG_OFFSET,
				0);
		if (rc) {
			pr_err("unable to read rslow cfg: %d\n", rc);
			return rc;
		}

		if (val & RSLOW_CFG_ON_VAL)
			chip->rslow_comp.active = true;

		if (fg_debug_mask & FG_STATUS)
			pr_info("rslow_comp active is %sabled\n",
				chip->rslow_comp.active ? "en" : "dis");
	}

	return 0;