From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754800AbcHDCSS (ORCPT ); Wed, 3 Aug 2016 22:18:18 -0400 Received: from szxga02-in.huawei.com ([119.145.14.65]:25421 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752855AbcHDCSR (ORCPT ); Wed, 3 Aug 2016 22:18:17 -0400 From: Jin Guojun To: , , , , , , , , , , CC: , , Subject: [PATCH V4]mmc: dw_mmc-k3: UHS-SD card for Hisilicon Hikey Date: Thu, 4 Aug 2016 10:16:13 +0800 Message-ID: <1470276973-41683-1-git-send-email-kid.jin@hisilicon.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.177.167.7] X-CFilter-Loop: Reflected X-Mirapoint-Virus-RAPID-Raw: score=unknown(0), refid=str=0001.0A020206.57A2A578.00F2,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0, ip=0.0.0.0, so=2013-06-18 04:22:30, dmn=2013-03-21 17:37:32 X-Mirapoint-Loop-Id: d77853093efc8be1e1f747fc751adf59 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org mmc: dw_mmc-k3: Hisilicon Hikey have no tuning function in dw_mmc-k3.c,so we must do the tuning function stub when we init UHS card. V1:add .prepare_command in dw_mmc.c V2:delete .prepare_command, add err = 0 in dw_mci_execute_tuning V3:delete err = 0 in dw_mci_execute_tuning,add .execute_tuning in dw_mmc-k3.c V4:add "linux-mmc@vger.kernel.org", patch version, Changelog, etc.. Signed-off-by: Jin Guojun --- drivers/mmc/host/dw_mmc-k3.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/mmc/host/dw_mmc-k3.c b/drivers/mmc/host/dw_mmc-k3.c index 8e9d886..6247894 100644 --- a/drivers/mmc/host/dw_mmc-k3.c +++ b/drivers/mmc/host/dw_mmc-k3.c @@ -131,11 +131,17 @@ 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 int dw_mci_hi6220_execute_tuning(struct dw_mci_slot *slot, u32 opcode) +{ + return 0; +} + static const struct dw_mci_drv_data hi6220_data = { .caps = dw_mci_hi6220_caps, .switch_voltage = dw_mci_hi6220_switch_voltage, .set_ios = dw_mci_hi6220_set_ios, .parse_dt = dw_mci_hi6220_parse_dt, + .execute_tuning = dw_mci_hi6220_execute_tuning, }; static const struct of_device_id dw_mci_k3_match[] = { -- 1.9.1