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

Commit 770533ac authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drivers: edac: Fix clearing ERRXSTATUS valid bit" into msm-4.8

parents c59b3557 fb736161
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 {