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

Commit 95403302 authored by Fenglin Wu's avatar Fenglin Wu
Browse files

input: qcom-hv-haptics: update sequence to get status data



As per the hardware recommendation, MOD_STATUS_XT need to be programmed
before programming MOD_STATUS_SEL to get the correct status data in all
cases. Update it.

Change-Id: Ie66b12cdc702f32ebfad78a72396ad3ac4d14adf
Signed-off-by: default avatarFenglin Wu <quic_fenglinw@quicinc.com>
parent 8d0283a3
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -891,7 +891,12 @@ static int haptics_get_status_data(struct haptics_chip *chip,
	mod_sel_val[0] = sel & 0xff;
	mod_sel_val[1] = (sel >> 8) & 0xff;
	rc = haptics_write(chip, chip->cfg_addr_base,
			HAP_CFG_MOD_STATUS_SEL_REG, mod_sel_val, 2);
			HAP_CFG_MOD_STATUS_XT_V2_REG, &mod_sel_val[1], 1);
	if (rc < 0)
		return rc;

	rc = haptics_write(chip, chip->cfg_addr_base,
			HAP_CFG_MOD_STATUS_SEL_REG, mod_sel_val, 1);
	if (rc < 0)
		return rc;