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

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

Merge "qcom: fg-memif: Correct timeout condition for memory grant"

parents e3bf3c28 e5225ad6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -778,7 +778,7 @@ int fg_dma_mem_req(struct fg_chip *chip, bool request)
				break;
			msleep(20);
		}
		if (!retry_count && !(val & MEM_GNT_BIT)) {
		if ((retry_count < 0) && !(val & MEM_GNT_BIT)) {
			pr_err("failed to get memory access\n");
			rc = -ETIMEDOUT;
			goto release_mem;