linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mmc: omap_hsmmc: support more DT properties
@ 2014-02-17 11:36 Daniel Mack
  2014-02-18 14:36 ` Balaji T K
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Mack @ 2014-02-17 11:36 UTC (permalink / raw)
  To: balajitk, chris; +Cc: linux-mmc, linux-omap, Daniel Mack

This should probably be done implicitly through mmc_of_parse(), but that
doesn't play well along with the multi-slot model the hsmmc driver
features. Hence, for now, do it manually. The properties are already
documented in Documentation/devicetree/bindings/mmc/mmc.txt.

Signed-off-by: Daniel Mack <zonque@gmail.com>
---
 drivers/mmc/host/omap_hsmmc.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
index 2815de6..a5a38cc 100644
--- a/drivers/mmc/host/omap_hsmmc.c
+++ b/drivers/mmc/host/omap_hsmmc.c
@@ -1765,6 +1765,12 @@ static struct omap_mmc_platform_data *of_get_hsmmc_pdata(struct device *dev)
 	if (of_find_property(np, "ti,needs-special-hs-handling", NULL))
 		pdata->slots[0].features |= HSMMC_HAS_HSPE_SUPPORT;
 
+	if (of_find_property(np, "keep-power-in-suspend", NULL))
+		pdata->slots[0].pm_caps |= MMC_PM_KEEP_POWER;
+
+	if (of_find_property(np, "enable-sdio-wakeup", NULL))
+		pdata->slots[0].pm_caps |= MMC_PM_WAKE_SDIO_IRQ;
+
 	return pdata;
 }
 #else
-- 
1.8.5.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] mmc: omap_hsmmc: support more DT properties
  2014-02-17 11:36 [PATCH] mmc: omap_hsmmc: support more DT properties Daniel Mack
@ 2014-02-18 14:36 ` Balaji T K
  2014-02-24 15:31   ` Daniel Mack
  0 siblings, 1 reply; 3+ messages in thread
From: Balaji T K @ 2014-02-18 14:36 UTC (permalink / raw)
  To: Daniel Mack; +Cc: chris, linux-mmc, linux-omap

On Monday 17 February 2014 05:06 PM, Daniel Mack wrote:
> This should probably be done implicitly through mmc_of_parse(), but that
> doesn't play well along with the multi-slot model the hsmmc driver
> features. Hence, for now, do it manually. The properties are already
> documented in Documentation/devicetree/bindings/mmc/mmc.txt.
>
> Signed-off-by: Daniel Mack <zonque@gmail.com>

looks good to me
Acked-by: Balaji T K <balajitk@ti.com>

> ---
>   drivers/mmc/host/omap_hsmmc.c | 6 ++++++
>   1 file changed, 6 insertions(+)
>
> diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
> index 2815de6..a5a38cc 100644
> --- a/drivers/mmc/host/omap_hsmmc.c
> +++ b/drivers/mmc/host/omap_hsmmc.c
> @@ -1765,6 +1765,12 @@ static struct omap_mmc_platform_data *of_get_hsmmc_pdata(struct device *dev)
>   	if (of_find_property(np, "ti,needs-special-hs-handling", NULL))
>   		pdata->slots[0].features |= HSMMC_HAS_HSPE_SUPPORT;
>
> +	if (of_find_property(np, "keep-power-in-suspend", NULL))
> +		pdata->slots[0].pm_caps |= MMC_PM_KEEP_POWER;
> +
> +	if (of_find_property(np, "enable-sdio-wakeup", NULL))
> +		pdata->slots[0].pm_caps |= MMC_PM_WAKE_SDIO_IRQ;
> +
>   	return pdata;
>   }
>   #else
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mmc: omap_hsmmc: support more DT properties
  2014-02-18 14:36 ` Balaji T K
@ 2014-02-24 15:31   ` Daniel Mack
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Mack @ 2014-02-24 15:31 UTC (permalink / raw)
  To: Balaji T K; +Cc: chris, linux-mmc, linux-omap

On 02/18/2014 03:36 PM, Balaji T K wrote:
> On Monday 17 February 2014 05:06 PM, Daniel Mack wrote:
>> This should probably be done implicitly through mmc_of_parse(), but that
>> doesn't play well along with the multi-slot model the hsmmc driver
>> features. Hence, for now, do it manually. The properties are already
>> documented in Documentation/devicetree/bindings/mmc/mmc.txt.
>>
>> Signed-off-by: Daniel Mack <zonque@gmail.com>
> 
> looks good to me
> Acked-by: Balaji T K <balajitk@ti.com>

Thanks for the review! Did it land in any tree yet?


Best regards,
Daniel

>> ---
>>   drivers/mmc/host/omap_hsmmc.c | 6 ++++++
>>   1 file changed, 6 insertions(+)
>>
>> diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c
>> index 2815de6..a5a38cc 100644
>> --- a/drivers/mmc/host/omap_hsmmc.c
>> +++ b/drivers/mmc/host/omap_hsmmc.c
>> @@ -1765,6 +1765,12 @@ static struct omap_mmc_platform_data *of_get_hsmmc_pdata(struct device *dev)
>>   	if (of_find_property(np, "ti,needs-special-hs-handling", NULL))
>>   		pdata->slots[0].features |= HSMMC_HAS_HSPE_SUPPORT;
>>
>> +	if (of_find_property(np, "keep-power-in-suspend", NULL))
>> +		pdata->slots[0].pm_caps |= MMC_PM_KEEP_POWER;
>> +
>> +	if (of_find_property(np, "enable-sdio-wakeup", NULL))
>> +		pdata->slots[0].pm_caps |= MMC_PM_WAKE_SDIO_IRQ;
>> +
>>   	return pdata;
>>   }
>>   #else
>>
> 


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-24 15:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-17 11:36 [PATCH] mmc: omap_hsmmc: support more DT properties Daniel Mack
2014-02-18 14:36 ` Balaji T K
2014-02-24 15:31   ` Daniel Mack

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).