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

Commit fb736161 authored by Kyle Yan's avatar Kyle Yan
Browse files

drivers: edac: Fix clearing ERRXSTATUS valid bit



ERRXSTATUS valid bit is cleared by writing a 1 instead of
writing a 0.

Change-Id: I6acd914289aa49eb4e726928050b8291d24fc691
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
parent 6b39e399
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -53,8 +53,6 @@ module_param(poll_msec, int, 0444);
#define KRYO3XX_ERRXMISC_LVL(a)		((a >> 1) & 0x7)
#define KRYO3XX_ERRXMISC_WAY(a)		((a >> 28) & 0xF)

#define ERRXSTATUS_VALID_FLAG		(1 << 30)

static inline void set_errxctlr_el1(void)
{
	u64 val = 0x8f;
@@ -85,9 +83,7 @@ static inline u64 read_errxmisc_el1(void)

static inline void clear_errxstatus_valid(u64 val)
{
	u64 reset_val = val & ~ERRXSTATUS_VALID_FLAG;

	asm volatile("msr s3_0_c5_c4_2, %0" : : "r" (reset_val));
	asm volatile("msr s3_0_c5_c4_2, %0" : : "r" (val));
}

struct errors_edac {