From: jh80.chung@samsung.com (Jaehoon Chung)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/2] Support SD UHS for hikey-mainline-rebase
Date: Tue, 19 Jul 2016 17:13:01 +0900 [thread overview]
Message-ID: <578DE10D.3020401@samsung.com> (raw)
In-Reply-To: <1468914713-63347-1-git-send-email-kid.jin@hisilicon.com>
Hi,
Removed the unnecessary CC'd.
On 07/19/2016 04:51 PM, Jin Guojun wrote:
> From: j00226943 <j00226943@notesmail.huawei.com>
What is j00226943?
When you send the patch for dw_mmc controller, plz use the prefix "mmc: dw_mmc: ".
>
> Two more changes:
>
> Before we send cmd,we need to set CMD bit29 to
> 1 so that CMD and DATA sent to card through the HOLD Register,
> This is the explication in synosys host:To meet the relatively
> high Input Hold Time requirement for SDR12, SDR25, and other MMC
> speed modes, you should program bit[29]use_hold_Reg of the CMD
> register to 1'b1; the output data is then registered again in the
> cclk_in_drv domain by using the Hold Register as shown in Path B
> of Figure 10-8. However, for the higher speed modes of SDR104, SDR50
> and DDR50, you can meet the much smaller Input Hold Time requirement
> of 0.8ns by bypassing the Hold Register (Path A in Figure 10-8,
> programming CMD.use_hold_reg = 1'b0) and then adding delay elements
> on the output path as indicated
>
> We have no tuning function in our drivers,so we must do the
> Function piling when we init UHS card.
Sorry..this patch is NACK.
SDMMC_CMD_USE_HOLD_REG is already used by default in dw_mmc.c
Which kernel version did you use?
>
> Signed-off-by: Jin Guojun <kid.jin@hisilicon.com>
> ---
> drivers/mmc/host/dw_mmc-k3.c | 6 ++++++
> drivers/mmc/host/dw_mmc.c | 2 ++
> 2 files changed, 8 insertions(+)
>
> diff --git a/drivers/mmc/host/dw_mmc-k3.c b/drivers/mmc/host/dw_mmc-k3.c
> index 63c2e2e..2cbfcc7 100644
> --- a/drivers/mmc/host/dw_mmc-k3.c
> +++ b/drivers/mmc/host/dw_mmc-k3.c
> @@ -125,10 +125,16 @@ static void dw_mci_hi6220_set_ios(struct dw_mci *host, struct mmc_ios *ios)
> host->bus_hz = clk_get_rate(host->biu_clk);
> }
>
> +static void dw_mci_hi6220_prepare_command(struct dw_mci *host, u32 *cmdr)
> +{
> + *cmdr |= SDMMC_CMD_USE_HOLD_REG;
> +}
> +
> static const struct dw_mci_drv_data hi6220_data = {
> .switch_voltage = dw_mci_hi6220_switch_voltage,
> .set_ios = dw_mci_hi6220_set_ios,
> .parse_dt = dw_mci_hi6220_parse_dt,
> + .prepare_command = dw_mci_hi6220_prepare_command,
> };
There is no "prepare_command" hooks.
Best Regards,
Jaehoon Chung
>
> static const struct of_device_id dw_mci_k3_match[] = {
> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
> index 9dd1bd3..047e116 100644
> --- a/drivers/mmc/host/dw_mmc.c
> +++ b/drivers/mmc/host/dw_mmc.c
> @@ -1564,6 +1564,8 @@ static int dw_mci_execute_tuning(struct mmc_host *mmc, u32 opcode)
>
> if (drv_data && drv_data->execute_tuning)
> err = drv_data->execute_tuning(slot, opcode);
> + else
> + err = 0;
> return err;
> }
>
>
next prev parent reply other threads:[~2016-07-19 8:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20160719075706epcas1p169dc5e5e0f7179f71f92a56e57e373c4@epcas1p1.samsung.com>
2016-07-19 7:51 ` [PATCH 1/2] Support SD UHS for hikey-mainline-rebase Jin Guojun
2016-07-19 7:51 ` [PATCH 2/2] Enable SD UHS mode " Jin Guojun
2016-07-19 8:13 ` Jaehoon Chung [this message]
2016-07-19 12:28 ` [PATCH 1/2] Support SD UHS " Jinguojun
2016-07-20 1:09 ` Shawn Lin
2016-07-31 1:45 ` kbuild test robot
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=578DE10D.3020401@samsung.com \
--to=jh80.chung@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).