From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaehoon Chung Subject: Re: [PATCH v3 1/7] mmc: clarify DDR timing mode between SD-UHS and eMMC Date: Fri, 07 Mar 2014 22:42:36 +0900 Message-ID: <5319CCCC.7000300@samsung.com> References: <1383653403-10049-1-git-send-email-ulf.hansson@linaro.org> <006001cf2a57$73a07290$5ae157b0$%jun@samsung.com> <002901cf3a09$6b6520a0$422f61e0$%jun@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mailout4.samsung.com ([203.254.224.34]:25896 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753138AbaCGNmi (ORCPT ); Fri, 7 Mar 2014 08:42:38 -0500 Received: from epcpsbgr4.samsung.com (u144.gpu120.samsung.co.kr [203.254.230.144]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N2200I31JF1ZKC0@mailout4.samsung.com> for linux-mmc@vger.kernel.org; Fri, 07 Mar 2014 22:42:37 +0900 (KST) In-reply-to: <002901cf3a09$6b6520a0$422f61e0$%jun@samsung.com> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Seungwon Jeon , linux-mmc@vger.kernel.org Cc: 'Chris Ball' , 'Ulf Hansson' Acked-by: Jaehoon Chung Best Regards, Jaehoon Chung On 03/07/2014 10:30 PM, Seungwon Jeon wrote: > This change distinguishes DDR timing mode of current > mixed usage to clarify device type. > > Signed-off-by: Seungwon Jeon > Acked-by: Ulf Hansson > --- > drivers/mmc/core/debugfs.c | 3 +++ > drivers/mmc/core/mmc.c | 2 +- > include/linux/mmc/host.h | 3 ++- > 3 files changed, 6 insertions(+), 2 deletions(-) > > diff --git a/drivers/mmc/core/debugfs.c b/drivers/mmc/core/debugfs.c > index 54829c0..509229b 100644 > --- a/drivers/mmc/core/debugfs.c > +++ b/drivers/mmc/core/debugfs.c > @@ -135,6 +135,9 @@ static int mmc_ios_show(struct seq_file *s, void *data) > case MMC_TIMING_UHS_DDR50: > str = "sd uhs DDR50"; > break; > + case MMC_TIMING_MMC_DDR52: > + str = "mmc DDR52"; > + break; > case MMC_TIMING_MMC_HS200: > str = "mmc high-speed SDR200"; > break; > diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c > index 1ab5f3a..e22d851 100644 > --- a/drivers/mmc/core/mmc.c > +++ b/drivers/mmc/core/mmc.c > @@ -1264,7 +1264,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, > goto err; > } > mmc_card_set_ddr_mode(card); > - mmc_set_timing(card->host, MMC_TIMING_UHS_DDR50); > + mmc_set_timing(card->host, MMC_TIMING_MMC_DDR52); > mmc_set_bus_width(card->host, bus_width); > } > } > diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h > index cb61ea4..3535420 100644 > --- a/include/linux/mmc/host.h > +++ b/include/linux/mmc/host.h > @@ -58,7 +58,8 @@ struct mmc_ios { > #define MMC_TIMING_UHS_SDR50 5 > #define MMC_TIMING_UHS_SDR104 6 > #define MMC_TIMING_UHS_DDR50 7 > -#define MMC_TIMING_MMC_HS200 8 > +#define MMC_TIMING_MMC_DDR52 8 > +#define MMC_TIMING_MMC_HS200 9 > > #define MMC_SDR_MODE 0 > #define MMC_1_2V_DDR_MODE 1 >