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

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

Merge "platform: msm: disable haptics when it is in BUSY for too long"

parents 08ec8738 1935ef60
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -288,10 +288,9 @@ static int qpnp_hap_mod_enable(struct qpnp_hap *hap, int on)
				break;
		}

		if (i >= QPNP_HAP_MAX_RETRIES) {
			dev_err(&hap->spmi->dev, "Haptics Busy\n");
			return -EBUSY;
		}
		if (i >= QPNP_HAP_MAX_RETRIES)
			dev_dbg(&hap->spmi->dev,
				"Haptics Busy. Force disable\n");

		val &= ~QPNP_HAP_EN;
	}