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

Commit 22010e98 authored by Kyle Yan's avatar Kyle Yan Committed by Runmin Wang
Browse files

soc: qcom: llcc: Fix to read LLCC status register



Fix to make LLCC driver read the status register for active/inactive
state instead of writing to the register.

Change-Id: I9635494566ba7e4caa7ad1fb8931dbdf658bebfe
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
Signed-off-by: default avatarRunmin Wang <runminw@codeaurora.org>
parent a070454a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -185,7 +185,7 @@ static int llcc_update_act_ctrl(struct llcc_drv_data *drv, u32 sid,

	timeout = jiffies + usecs_to_jiffies(LLCC_STATUS_READ_DELAY);
	while (time_before(jiffies, timeout)) {
		regmap_write(drv->llcc_map, status_reg, slice_status);
		regmap_read(drv->llcc_map, status_reg, &slice_status);
		if (slice_status & status)
			return 0;
	}