Clean up uneeded patches
This commit is contained in:
		
							parent
							
								
									ab75e656d3
								
							
						
					
					
						commit
						161919bf29
					
				@ -1,56 +0,0 @@
 | 
			
		||||
From 7af8d2bf732cb3baab7d926ed8a7e061e7a09ad9 Mon Sep 17 00:00:00 2001
 | 
			
		||||
From: Myy Miouyouyou <myy@miouyouyou.fr>
 | 
			
		||||
Date: Thu, 19 Oct 2017 21:39:00 +0200
 | 
			
		||||
Subject: [PATCH 13/28] ARM: DTSI: rk3288.dtsi: Adding cells addresses and
 | 
			
		||||
 sizes of MMC nodes
 | 
			
		||||
 | 
			
		||||
Imported from the Rockchip 4.4 patches.
 | 
			
		||||
 | 
			
		||||
Signed-off-by: Myy Miouyouyou <myy@miouyouyou.fr>
 | 
			
		||||
---
 | 
			
		||||
 arch/arm/boot/dts/rk3288.dtsi | 8 ++++++++
 | 
			
		||||
 1 file changed, 8 insertions(+)
 | 
			
		||||
 | 
			
		||||
diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi
 | 
			
		||||
index be985f02..14ef8202 100644
 | 
			
		||||
--- a/arch/arm/boot/dts/rk3288.dtsi
 | 
			
		||||
+++ b/arch/arm/boot/dts/rk3288.dtsi
 | 
			
		||||
@@ -236,6 +236,8 @@
 | 
			
		||||
 		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
 | 
			
		||||
 		fifo-depth = <0x100>;
 | 
			
		||||
 		interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
 | 
			
		||||
+		#address-cells = <1>;
 | 
			
		||||
+		#size-cells = <0>;
 | 
			
		||||
 		reg = <0x0 0xff0c0000 0x0 0x4000>;
 | 
			
		||||
 		resets = <&cru SRST_MMC0>;
 | 
			
		||||
 		reset-names = "reset";
 | 
			
		||||
@@ -250,6 +252,8 @@
 | 
			
		||||
 		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
 | 
			
		||||
 		fifo-depth = <0x100>;
 | 
			
		||||
 		interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
 | 
			
		||||
+		#address-cells = <1>;
 | 
			
		||||
+		#size-cells = <0>;
 | 
			
		||||
 		reg = <0x0 0xff0d0000 0x0 0x4000>;
 | 
			
		||||
 		resets = <&cru SRST_SDIO0>;
 | 
			
		||||
 		reset-names = "reset";
 | 
			
		||||
@@ -264,6 +268,8 @@
 | 
			
		||||
 		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
 | 
			
		||||
 		fifo-depth = <0x100>;
 | 
			
		||||
 		interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
 | 
			
		||||
+		#address-cells = <1>;
 | 
			
		||||
+		#size-cells = <0>;
 | 
			
		||||
 		reg = <0x0 0xff0e0000 0x0 0x4000>;
 | 
			
		||||
 		resets = <&cru SRST_SDIO1>;
 | 
			
		||||
 		reset-names = "reset";
 | 
			
		||||
@@ -278,6 +284,8 @@
 | 
			
		||||
 		clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
 | 
			
		||||
 		fifo-depth = <0x100>;
 | 
			
		||||
 		interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
 | 
			
		||||
+		#address-cells = <1>;
 | 
			
		||||
+		#size-cells = <0>;
 | 
			
		||||
 		reg = <0x0 0xff0f0000 0x0 0x4000>;
 | 
			
		||||
 		resets = <&cru SRST_EMMC>;
 | 
			
		||||
 		reset-names = "reset";
 | 
			
		||||
-- 
 | 
			
		||||
2.11.0
 | 
			
		||||
 | 
			
		||||
@ -1,81 +0,0 @@
 | 
			
		||||
diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c
 | 
			
		||||
index 38a7586b..0e856ff6 100644
 | 
			
		||||
--- a/drivers/mmc/core/block.c
 | 
			
		||||
+++ b/drivers/mmc/core/block.c
 | 
			
		||||
@@ -1237,7 +1237,7 @@ static void mmc_blk_issue_flush(struct mmc_queue *mq, struct request *req)
 | 
			
		||||
 	struct mmc_card *card = md->queue.card;
 | 
			
		||||
 	int ret = 0;
 | 
			
		||||
 
 | 
			
		||||
-	ret = mmc_flush_cache(card);
 | 
			
		||||
+	ret = mmc_flush_cache(card, false);
 | 
			
		||||
 	blk_mq_end_request(req, ret ? BLK_STS_IOERR : BLK_STS_OK);
 | 
			
		||||
 }
 | 
			
		||||
 
 | 
			
		||||
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
 | 
			
		||||
index 6f8ebd6c..cc9cb5ce 100644
 | 
			
		||||
--- a/drivers/mmc/core/mmc.c
 | 
			
		||||
+++ b/drivers/mmc/core/mmc.c
 | 
			
		||||
@@ -1985,7 +1985,7 @@ static int _mmc_suspend(struct mmc_host *host, bool is_suspend)
 | 
			
		||||
 			goto out;
 | 
			
		||||
 	}
 | 
			
		||||
 
 | 
			
		||||
-	err = mmc_flush_cache(host->card);
 | 
			
		||||
+	err = mmc_flush_cache(host->card, false);
 | 
			
		||||
 	if (err)
 | 
			
		||||
 		goto out;
 | 
			
		||||
 
 | 
			
		||||
@@ -2125,7 +2125,7 @@ static int mmc_reset(struct mmc_host *host)
 | 
			
		||||
 	 * In the case of recovery, we can't expect flushing the cache to work
 | 
			
		||||
 	 * always, but we have a go and ignore errors.
 | 
			
		||||
 	 */
 | 
			
		||||
-	mmc_flush_cache(host->card);
 | 
			
		||||
+	mmc_flush_cache(host->card, true);
 | 
			
		||||
 
 | 
			
		||||
 	if ((host->caps & MMC_CAP_HW_RESET) && host->ops->hw_reset &&
 | 
			
		||||
 	     mmc_can_reset(card)) {
 | 
			
		||||
diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c
 | 
			
		||||
index 42d6aa89..957e8a20 100644
 | 
			
		||||
--- a/drivers/mmc/core/mmc_ops.c
 | 
			
		||||
+++ b/drivers/mmc/core/mmc_ops.c
 | 
			
		||||
@@ -1005,18 +1005,23 @@ void mmc_start_bkops(struct mmc_card *card, bool from_exception)
 | 
			
		||||
 }
 | 
			
		||||
 EXPORT_SYMBOL(mmc_start_bkops);
 | 
			
		||||
 
 | 
			
		||||
-/*
 | 
			
		||||
- * Flush the cache to the non-volatile storage.
 | 
			
		||||
+/**
 | 
			
		||||
+ * mmc_flush_cache - Flush (write) the cache to the non-volatile storage.
 | 
			
		||||
+ * @card: the MMC card to flush
 | 
			
		||||
+ * @ignore_err: Ignore any associated errors, also skips polling for the
 | 
			
		||||
+ *                command status in case card is in bad state
 | 
			
		||||
  */
 | 
			
		||||
-int mmc_flush_cache(struct mmc_card *card)
 | 
			
		||||
+int mmc_flush_cache(struct mmc_card *card, bool ignore_err )
 | 
			
		||||
 {
 | 
			
		||||
 	int err = 0;
 | 
			
		||||
+  bool use_busy_signal = !ignore_err;
 | 
			
		||||
 
 | 
			
		||||
 	if (mmc_card_mmc(card) &&
 | 
			
		||||
 			(card->ext_csd.cache_size > 0) &&
 | 
			
		||||
 			(card->ext_csd.cache_ctrl & 1)) {
 | 
			
		||||
-		err = mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
 | 
			
		||||
-				EXT_CSD_FLUSH_CACHE, 1, 0);
 | 
			
		||||
+		err = __mmc_switch(card, EXT_CSD_CMD_SET_NORMAL,
 | 
			
		||||
+                       EXT_CSD_FLUSH_CACHE, 1, 0, 0, use_busy_signal,
 | 
			
		||||
+                       true, false);
 | 
			
		||||
 		if (err)
 | 
			
		||||
 			pr_err("%s: cache flush error %d\n",
 | 
			
		||||
 					mmc_hostname(card->host), err);
 | 
			
		||||
diff --git a/drivers/mmc/core/mmc_ops.h b/drivers/mmc/core/mmc_ops.h
 | 
			
		||||
index a1390d48..47cdf920 100644
 | 
			
		||||
--- a/drivers/mmc/core/mmc_ops.h
 | 
			
		||||
+++ b/drivers/mmc/core/mmc_ops.h
 | 
			
		||||
@@ -42,7 +42,7 @@ int mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value,
 | 
			
		||||
 		unsigned int timeout_ms);
 | 
			
		||||
 int mmc_stop_bkops(struct mmc_card *card);
 | 
			
		||||
 void mmc_start_bkops(struct mmc_card *card, bool from_exception);
 | 
			
		||||
-int mmc_flush_cache(struct mmc_card *card);
 | 
			
		||||
+int mmc_flush_cache(struct mmc_card *card, bool ignore_err);
 | 
			
		||||
 int mmc_cmdq_enable(struct mmc_card *card);
 | 
			
		||||
 int mmc_cmdq_disable(struct mmc_card *card);
 | 
			
		||||
 
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user