mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 23:51:39 +00:00
ef3d232245
The JEDEC specification indicates CMD13 can be used after a HS200 switch to check for errors. However in practice some boards experience CRC errors in the CMD13 response. Consequently, for HS200, CRC errors are not a reliable way to know the switch failed. If there really is a problem, we would expect tuning will fail and the result ends up the same. So change the error condition to ignore CRC errors in that case. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Acked-by: Jaehoon Chung <jh80.chung@samsung.com> Reviewed-by: Shawn Lin <shawn.lin@rock-chips.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
38 lines
1.4 KiB
C
38 lines
1.4 KiB
C
/*
|
|
* linux/drivers/mmc/core/mmc_ops.h
|
|
*
|
|
* Copyright 2006-2007 Pierre Ossman
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or (at
|
|
* your option) any later version.
|
|
*/
|
|
|
|
#ifndef _MMC_MMC_OPS_H
|
|
#define _MMC_MMC_OPS_H
|
|
|
|
int mmc_select_card(struct mmc_card *card);
|
|
int mmc_deselect_cards(struct mmc_host *host);
|
|
int mmc_set_dsr(struct mmc_host *host);
|
|
int mmc_go_idle(struct mmc_host *host);
|
|
int mmc_send_op_cond(struct mmc_host *host, u32 ocr, u32 *rocr);
|
|
int mmc_all_send_cid(struct mmc_host *host, u32 *cid);
|
|
int mmc_set_relative_addr(struct mmc_card *card);
|
|
int mmc_send_csd(struct mmc_card *card, u32 *csd);
|
|
int mmc_send_status(struct mmc_card *card, u32 *status);
|
|
int mmc_send_cid(struct mmc_host *host, u32 *cid);
|
|
int mmc_spi_read_ocr(struct mmc_host *host, int highcap, u32 *ocrp);
|
|
int mmc_spi_set_crc(struct mmc_host *host, int use_crc);
|
|
int mmc_bus_test(struct mmc_card *card, u8 bus_width);
|
|
int mmc_send_hpi_cmd(struct mmc_card *card, u32 *status);
|
|
int mmc_can_ext_csd(struct mmc_card *card);
|
|
int mmc_switch_status(struct mmc_card *card);
|
|
int __mmc_switch_status(struct mmc_card *card, bool crc_err_fatal);
|
|
int __mmc_switch(struct mmc_card *card, u8 set, u8 index, u8 value,
|
|
unsigned int timeout_ms, unsigned char timing,
|
|
bool use_busy_signal, bool send_status, bool retry_crc_err);
|
|
|
|
#endif
|
|
|