public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 08/12] mmc: revert mmc: Handle switch error status bit in MMC card status
Date: Tue, 24 May 2016 07:54:35 +0200	[thread overview]
Message-ID: <1464069279-23457-9-git-send-email-hs@denx.de> (raw)
In-Reply-To: <1464069279-23457-1-git-send-email-hs@denx.de>

revert patch:
commit: 6b2221b008e0: mmc: Handle switch error status bit in MMC card status

to get eMMC working on shc board

Signed-off-by: Heiko Schocher <hs@denx.de>
---

Changes in v2: None

 drivers/mmc/mmc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c
index 74b3d68..a8267fd 100644
--- a/drivers/mmc/mmc.c
+++ b/drivers/mmc/mmc.c
@@ -155,8 +155,6 @@ int mmc_send_status(struct mmc *mmc, int timeout)
 #endif
 		return TIMEOUT;
 	}
-	if (cmd.response[0] & MMC_STATUS_SWITCH_ERROR)
-		return SWITCH_ERR;
 
 	return 0;
 }
@@ -516,7 +514,7 @@ static int mmc_change_freq(struct mmc *mmc)
 	err = mmc_switch(mmc, EXT_CSD_CMD_SET_NORMAL, EXT_CSD_HS_TIMING, 1);
 
 	if (err)
-		return err == SWITCH_ERR ? 0 : err;
+		return err;
 
 	/* Now check to see that it worked */
 	err = mmc_send_ext_csd(mmc, ext_csd);
-- 
2.5.5

  parent reply	other threads:[~2016-05-24  5:54 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-24  5:54 [U-Boot] [PATCH v2 00/12] am335x: add support for the am335x based bosch shc board Heiko Schocher
2016-05-24  5:54 ` [U-Boot] [PATCH v2 01/12] common: bootdelay: move CONFIG_BOOTDELAY into a Kconfig option Heiko Schocher
2016-06-03  1:02   ` [U-Boot] [U-Boot, v2, " Tom Rini
2016-06-03  5:01     ` Heiko Schocher
2016-06-03 13:47       ` Tom Rini
2016-06-03 14:23         ` Heiko Schocher
2016-05-24  5:54 ` [U-Boot] [PATCH v2 02/12] tests: py: disable main_signon check for printenv cmd Heiko Schocher
2016-05-24  5:54 ` [U-Boot] [PATCH v2 03/12] power, tps65217: add some defines Heiko Schocher
2016-05-24  5:54 ` [U-Boot] [PATCH v2 04/12] arm, am335x: add some missing GPIO register definitions Heiko Schocher
2016-05-24  5:54 ` [U-Boot] [PATCH v2 05/12] am335x: add some missing CM_CLKMODE_DPLL_SSC macros Heiko Schocher
2016-05-24  5:54 ` [U-Boot] [PATCH v2 06/12] arm, am335x: Enable Spread Spectrum for the MPU Heiko Schocher
2016-05-24  5:54 ` [U-Boot] [PATCH v2 07/12] bootstage: call show_boot_progress also in SPL Heiko Schocher
2016-05-24  5:54 ` Heiko Schocher [this message]
2016-05-24  5:54 ` [U-Boot] [PATCH v2 09/12] mmc: omap_hsmmc: enable 8bit interface for eMMC for AM33xx Heiko Schocher
2016-05-24  5:54 ` [U-Boot] [PATCH v2 10/12] armv7: omap-common: make SPL board_mmc_init() weak Heiko Schocher
2016-05-24  5:54 ` [U-Boot] [PATCH v2 11/12] doc, spl, am335x: update am335x-network Heiko Schocher
2016-05-24  5:54 ` [U-Boot] [PATCH v2 12/12] am335x, shc: add support for the am335x based bosch shc board Heiko Schocher

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1464069279-23457-9-git-send-email-hs@denx.de \
    --to=hs@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox