From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jaehoon Chung Subject: Re: [PATCH] mmc: dw_mmc: add specified capabilities2 of the controller Date: Mon, 12 Aug 2013 10:28:24 +0900 Message-ID: <52083A38.2040104@samsung.com> References: <51FA7AFB.9040703@samsung.com> <001701ce9504$c919c480$5b4d4d80$%jun@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from mailout1.samsung.com ([203.254.224.24]:9869 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755268Ab3HLB2T (ORCPT ); Sun, 11 Aug 2013 21:28:19 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MRE004B39F3SGG0@mailout1.samsung.com> for linux-mmc@vger.kernel.org; Mon, 12 Aug 2013 10:28:16 +0900 (KST) In-reply-to: <001701ce9504$c919c480$5b4d4d80$%jun@samsung.com> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Seungwon Jeon Cc: 'Jaehoon Chung' , linux-mmc@vger.kernel.org, 'Chris Ball' , 'James Hogan' On 08/09/2013 10:31 PM, Seungwon Jeon wrote: > On Fri, August 02, 2013, Jaehoon Chung wrote: >> Add the capabilities2 of controller to use MMC_CAP2_* >> In future, we can use the capability like packed command with caps2. >> >> Signed-off-by: Jaehoon Chung >> --- >> drivers/mmc/host/dw_mmc.c | 3 +++ >> drivers/mmc/host/dw_mmc.h | 2 ++ >> 2 files changed, 5 insertions(+) >> >> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c >> index ee5f167..17fe90c 100644 >> --- a/drivers/mmc/host/dw_mmc.c >> +++ b/drivers/mmc/host/dw_mmc.c >> @@ -1951,6 +1951,9 @@ static int dw_mci_init_slot(struct dw_mci *host, unsigned int id) >> if (host->pdata->caps2) >> mmc->caps2 = host->pdata->caps2; >> >> + if (drv_data && drv_data->caps2) >> + mmc->caps2 |= drv_data->caps[ctrl_id]; > drv_data->caps2? Sorry, Will fix.. Best Regards, Jaehoon Chung > > Thanks, > Seungwon Jeon > >> + >> if (host->pdata->get_bus_wd) >> bus_width = host->pdata->get_bus_wd(slot->id); >> else if (host->dev->of_node) >> diff --git a/drivers/mmc/host/dw_mmc.h b/drivers/mmc/host/dw_mmc.h >> index 81b2994..1f0a9ad 100644 >> --- a/drivers/mmc/host/dw_mmc.h >> +++ b/drivers/mmc/host/dw_mmc.h >> @@ -186,6 +186,7 @@ extern int dw_mci_resume(struct dw_mci *host); >> /** >> * dw_mci driver data - dw-mshc implementation specific driver data. >> * @caps: mmc subsystem specified capabilities of the controller(s). >> + * @caps2: mmc subsystem specified capabilities2 of the controller(s). >> * @init: early implementation specific initialization. >> * @setup_clock: implementation specific clock configuration. >> * @prepare_command: handle CMD register extensions. >> @@ -198,6 +199,7 @@ extern int dw_mci_resume(struct dw_mci *host); >> */ >> struct dw_mci_drv_data { >> unsigned long *caps; >> + unsigned long *caps2; >> int (*init)(struct dw_mci *host); >> int (*setup_clock)(struct dw_mci *host); >> void (*prepare_command)(struct dw_mci *host, u32 *cmdr); >> -- >> 1.7.9.5 >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- > To unsubscribe from this list: send the line "unsubscribe linux-mmc" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >