From: Arnd Bergmann Subject: Re: [PATCH 1/7] mmc: core add the property for hs200 Date: Tue, 21 Jan 2014 11:30:29 +0100 Message-ID: <3339329.LQJLrAHSHx@wuerfel> References: <52DE4916.4090603@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from moutng.kundenserver.de ([212.227.17.9]:59888 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754021AbaAUKad (ORCPT ); Tue, 21 Jan 2014 05:30:33 -0500 In-Reply-To: <52DE4916.4090603@samsung.com> Sender: linux-mmc-owner@vger.kernel.org List-Id: linux-mmc@vger.kernel.org To: Jaehoon Chung Cc: "linux-mmc@vger.kernel.org" , Chris Ball , Ulf Hansson , Seungwon Jeon , Guennadi Liakhovetski On Tuesday 21 January 2014 19:16:54 Jaehoon Chung wrote: > caps2-mmc-hs200-1.8v and caps2-mmc-hs200-1.2v can be used to the general capability. > > Signed-off-by: Jaehoon Chung > --- > drivers/mmc/core/host.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c > index 49bc403..96ac4c1 100644 > --- a/drivers/mmc/core/host.c > +++ b/drivers/mmc/core/host.c > @@ -429,6 +429,10 @@ int mmc_of_parse(struct mmc_host *host) > host->pm_caps |= MMC_PM_KEEP_POWER; > if (of_find_property(np, "enable-sdio-wakeup", &len)) > host->pm_caps |= MMC_PM_WAKE_SDIO_IRQ; > + if (of_find_property(np, "caps2-mmc-hs200-1_8v", NULL)) > + host->caps2 |= MMC_CAP2_HS200_1_8V_SDR; > + if (of_find_property(np, "caps2-mmc-hs200-1_2v", NULL)) > + host->caps2 |= MMC_CAP2_HS200_1_2V_SDR; > > return 0; If we do this, the strings also need to be documented in bindings/mmc/mmc.txt. Unfortunately, the names are not particularly intuitive (the caps2 part in particular), but it's probably better to stick with that now. Arnd