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

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

Merge "qcom: PMRESR register read returns zero for un supported group events"

parents 4fba233d 72ad6c93
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -118,12 +118,7 @@ static void kryo_write_pmresr(int reg, int l_h, u32 val)

static u32 kryo_read_pmresr(int reg, int l_h)
{
	u32 val;

	if (reg > KRYO_MAX_L1_REG) {
		pr_err("Invalid read of RESR reg %d\n", reg);
		return 0;
	}
	u32 val = 0;

	if (l_h == RESR_L) {
		switch (reg) {
@@ -136,6 +131,9 @@ static u32 kryo_read_pmresr(int reg, int l_h)
		case 2:
			asm volatile("mrs %0, " pmresr2l_el0 : "=r" (val));
			break;
		default:
			WARN_ONCE(1, "Invalid read of RESR reg %d\n", reg);
			break;
		}
	} else {
		switch (reg) {
@@ -148,6 +146,9 @@ static u32 kryo_read_pmresr(int reg, int l_h)
		case 2:
			asm volatile("mrs %0," pmresr2h_el0 : "=r" (val));
			break;
		default:
			WARN_ONCE(1, "Invalid read of RESR reg %d\n", reg);
			break;
		}
	}