Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1730755
| From | Chaotian Jing <chaotian.jing@mediatek.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 12/12] mmc: mediatek: perfer to use rise edge latching for cmd line |
| Date | 2017-09-12 11:10 +0200 |
| Message-ID | <uoPmH-7Mg-65@gated-at.bofh.it> (permalink) |
| References | <uoPmF-7Mg-11@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
data lines have applied to perfer to use rise edge, also need apply it to cmd line. Signed-off-by: Chaotian Jing <chaotian.jing@mediatek.com> --- drivers/mmc/host/mtk-sd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/host/mtk-sd.c b/drivers/mmc/host/mtk-sd.c index 49d4d79..9f21cdb 100644 --- a/drivers/mmc/host/mtk-sd.c +++ b/drivers/mmc/host/mtk-sd.c @@ -1554,7 +1554,8 @@ static int msdc_tune_response(struct mmc_host *mmc, u32 opcode) } final_rise_delay = get_best_delay(host, rise_delay); /* if rising edge has enough margin, then do not scan falling edge */ - if (final_rise_delay.maxlen >= 12 && final_rise_delay.start < 4) + if (final_rise_delay.maxlen >= 12 || + (final_rise_delay.start == 0 && final_rise_delay.maxlen >= 4)) goto skip_fall; sdr_set_bits(host->base + MSDC_IOCON, MSDC_IOCON_RSPL); -- 1.8.1.1.dirty
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH 12/12] mmc: mediatek: perfer to use rise edge latching for cmd line Chaotian Jing <chaotian.jing@mediatek.com> - 2017-09-12 11:10 +0200
csiph-web