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

Commit 8375105e authored by Kyle Yan's avatar Kyle Yan
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>
parent f448a1f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -188,7 +188,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;
	}