Преглед на файлове

Revert "ubwcp: disable range translation before flush"

This reverts commit 64d4db75cdb34419fccd3ac23665152bcdaf352b.

Change-Id: Ia9f89dff8d74e9d4ca0ca5439c6e1838284a2c14
Signed-off-by: Linux Image Build Automation <[email protected]>
Linux Image Build Automation преди 1 година
родител
ревизия
44926ee047
променени са 1 файла, в които са добавени 5 реда и са изтрити 14 реда
  1. 5 14
      ubwcp/ubwcp_hw.c

+ 5 - 14
ubwcp/ubwcp_hw.c

@@ -12,7 +12,6 @@
 #include <linux/cdev.h>
 #include <linux/qcom_scm.h>
 #include <linux/delay.h>
-#include <asm/barrier.h>
 
 #include "ubwcp_hw.h"
 
@@ -210,19 +209,6 @@ int ubwcp_hw_disable_range_check_with_flush(void __iomem *base, u16 index)
 	u32 val;
 	u16 ctrl_reg = index >> 5;
 
-	/*
-	 * It is not clear that the isb() calls in this sequence are
-	 * requried, we may be able to remove them.
-	 */
-
-	//ensure all CMOs have completed
-	isb();
-
-	//disable range ck
-	val = UBWCP_REG_READ(base, RANGE_CHECK_CONTROL + ctrl_reg*4);
-	val &= ~(1 << (index & 0x1F));
-	UBWCP_REG_WRITE(base, RANGE_CHECK_CONTROL + ctrl_reg*4, val);
-	isb();
 	//assert flush
 	UBWCP_REG_WRITE(base, FLUSH_CONTROL, 0x3);
 
@@ -230,6 +216,11 @@ int ubwcp_hw_disable_range_check_with_flush(void __iomem *base, u16 index)
 	do {
 		flush_complete = UBWCP_REG_READ(base, FLUSH_STATUS) & 0x1;
 		if (flush_complete) {
+			//disable range ck
+			val = UBWCP_REG_READ(base, RANGE_CHECK_CONTROL + ctrl_reg*4);
+			val &= ~(1 << (index & 0x1F));
+			UBWCP_REG_WRITE(base, RANGE_CHECK_CONTROL + ctrl_reg*4, val);
+
 			//clear flush
 			UBWCP_REG_WRITE(base, FLUSH_CONTROL, 0x0);
 			return 0;