All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/8] mmc: core: add the property for hs200
@ 2014-02-03 11:15 Jaehoon Chung
  2014-02-14 11:31 ` Ulf Hansson
  0 siblings, 1 reply; 4+ messages in thread
From: Jaehoon Chung @ 2014-02-03 11:15 UTC (permalink / raw)
  To: linux-mmc; +Cc: Chris Ball, Ulf Hansson, Seungwon Jeon, Olof Johansson

mmc-hs200-1.8v and mmc-hs200-1.2v can be used to the general capability.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
Changelog V3:
	- Use the "len" instead of "NULL"
Changelog V2:
	- Rename the mmc-hs200-1_8v/1_2v instead of "_caps2_"
	- Add the properties into Documentation/devicetree/bindings/mmc/mmc.txt

 Documentation/devicetree/bindings/mmc/mmc.txt |    2 ++
 drivers/mmc/core/host.c                       |    4 ++++
 2 files changed, 6 insertions(+)

diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt
index 458b57f..4bb3894 100644
--- a/Documentation/devicetree/bindings/mmc/mmc.txt
+++ b/Documentation/devicetree/bindings/mmc/mmc.txt
@@ -29,6 +29,8 @@ Optional properties:
 - cap-power-off-card: powering off the card is safe
 - cap-sdio-irq: enable SDIO IRQ signalling on this interface
 - full-pwr-cycle: full power cycle of the card is supported
+- mmc-hs200-1_8v: HS200 mode(1.8V I/O) is supported
+- mmc-hs200-1_2v: HS200 mode(1.2V I/O) is supported
 
 *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line
 polarity properties, we have to fix the meaning of the "normal" and "inverted"
diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
index 49bc403..4b81c93 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, "mmc-hs200-1_8v", &len))
+		host->caps2 |= MMC_CAP2_HS200_1_8V_SDR;
+	if (of_find_property(np, "mmc-hs200-1_2v", &len))
+		host->caps2 |= MMC_CAP2_HS200_1_2V_SDR;
 
 	return 0;
 
-- 
1.7.9.5

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

* Re: [PATCH v3 1/8] mmc: core: add the property for hs200
  2014-02-03 11:15 [PATCH v3 1/8] mmc: core: add the property for hs200 Jaehoon Chung
@ 2014-02-14 11:31 ` Ulf Hansson
  2014-02-14 12:30   ` Ulf Hansson
  0 siblings, 1 reply; 4+ messages in thread
From: Ulf Hansson @ 2014-02-14 11:31 UTC (permalink / raw)
  To: Jaehoon Chung; +Cc: linux-mmc, Chris Ball, Seungwon Jeon, Olof Johansson

On 3 February 2014 12:15, Jaehoon Chung <jh80.chung@samsung.com> wrote:
> mmc-hs200-1.8v and mmc-hs200-1.2v can be used to the general capability.
>
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>

Acked-by: Ulf Hansson <ulf.hansson@linaro.org>

> ---
> Changelog V3:
>         - Use the "len" instead of "NULL"
> Changelog V2:
>         - Rename the mmc-hs200-1_8v/1_2v instead of "_caps2_"
>         - Add the properties into Documentation/devicetree/bindings/mmc/mmc.txt
>
>  Documentation/devicetree/bindings/mmc/mmc.txt |    2 ++
>  drivers/mmc/core/host.c                       |    4 ++++
>  2 files changed, 6 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt
> index 458b57f..4bb3894 100644
> --- a/Documentation/devicetree/bindings/mmc/mmc.txt
> +++ b/Documentation/devicetree/bindings/mmc/mmc.txt
> @@ -29,6 +29,8 @@ Optional properties:
>  - cap-power-off-card: powering off the card is safe
>  - cap-sdio-irq: enable SDIO IRQ signalling on this interface
>  - full-pwr-cycle: full power cycle of the card is supported
> +- mmc-hs200-1_8v: HS200 mode(1.8V I/O) is supported
> +- mmc-hs200-1_2v: HS200 mode(1.2V I/O) is supported
>
>  *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line
>  polarity properties, we have to fix the meaning of the "normal" and "inverted"
> diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
> index 49bc403..4b81c93 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, "mmc-hs200-1_8v", &len))
> +               host->caps2 |= MMC_CAP2_HS200_1_8V_SDR;
> +       if (of_find_property(np, "mmc-hs200-1_2v", &len))
> +               host->caps2 |= MMC_CAP2_HS200_1_2V_SDR;
>
>         return 0;
>
> --
> 1.7.9.5

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

* Re: [PATCH v3 1/8] mmc: core: add the property for hs200
  2014-02-14 11:31 ` Ulf Hansson
@ 2014-02-14 12:30   ` Ulf Hansson
  2014-02-17  3:17     ` Jaehoon Chung
  0 siblings, 1 reply; 4+ messages in thread
From: Ulf Hansson @ 2014-02-14 12:30 UTC (permalink / raw)
  To: Jaehoon Chung; +Cc: linux-mmc, Chris Ball, Seungwon Jeon, Olof Johansson

On 14 February 2014 12:31, Ulf Hansson <ulf.hansson@linaro.org> wrote:
> On 3 February 2014 12:15, Jaehoon Chung <jh80.chung@samsung.com> wrote:
>> mmc-hs200-1.8v and mmc-hs200-1.2v can be used to the general capability.
>>
>> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
>
> Acked-by: Ulf Hansson <ulf.hansson@linaro.org>

Hi Jaehoon,

While I was adding some more DT bindings for mmc, I decided to rebase
and fold in this patch into my patchset.

Hope your fine with it, otherwise just let me know.

Kind regards
Ulf Hansson


>
>> ---
>> Changelog V3:
>>         - Use the "len" instead of "NULL"
>> Changelog V2:
>>         - Rename the mmc-hs200-1_8v/1_2v instead of "_caps2_"
>>         - Add the properties into Documentation/devicetree/bindings/mmc/mmc.txt
>>
>>  Documentation/devicetree/bindings/mmc/mmc.txt |    2 ++
>>  drivers/mmc/core/host.c                       |    4 ++++
>>  2 files changed, 6 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt
>> index 458b57f..4bb3894 100644
>> --- a/Documentation/devicetree/bindings/mmc/mmc.txt
>> +++ b/Documentation/devicetree/bindings/mmc/mmc.txt
>> @@ -29,6 +29,8 @@ Optional properties:
>>  - cap-power-off-card: powering off the card is safe
>>  - cap-sdio-irq: enable SDIO IRQ signalling on this interface
>>  - full-pwr-cycle: full power cycle of the card is supported
>> +- mmc-hs200-1_8v: HS200 mode(1.8V I/O) is supported
>> +- mmc-hs200-1_2v: HS200 mode(1.2V I/O) is supported
>>
>>  *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line
>>  polarity properties, we have to fix the meaning of the "normal" and "inverted"
>> diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
>> index 49bc403..4b81c93 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, "mmc-hs200-1_8v", &len))
>> +               host->caps2 |= MMC_CAP2_HS200_1_8V_SDR;
>> +       if (of_find_property(np, "mmc-hs200-1_2v", &len))
>> +               host->caps2 |= MMC_CAP2_HS200_1_2V_SDR;
>>
>>         return 0;
>>
>> --
>> 1.7.9.5

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

* Re: [PATCH v3 1/8] mmc: core: add the property for hs200
  2014-02-14 12:30   ` Ulf Hansson
@ 2014-02-17  3:17     ` Jaehoon Chung
  0 siblings, 0 replies; 4+ messages in thread
From: Jaehoon Chung @ 2014-02-17  3:17 UTC (permalink / raw)
  To: Ulf Hansson, Jaehoon Chung
  Cc: linux-mmc, Chris Ball, Seungwon Jeon, Olof Johansson

Hi Ulf,

On 02/14/2014 09:30 PM, Ulf Hansson wrote:
> On 14 February 2014 12:31, Ulf Hansson <ulf.hansson@linaro.org> wrote:
>> On 3 February 2014 12:15, Jaehoon Chung <jh80.chung@samsung.com> wrote:
>>> mmc-hs200-1.8v and mmc-hs200-1.2v can be used to the general capability.
>>>
>>> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
>>
>> Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
> 
> Hi Jaehoon,
> 
> While I was adding some more DT bindings for mmc, I decided to rebase
> and fold in this patch into my patchset.
> 
> Hope your fine with it, otherwise just let me know.
Thanks for adding patch at your patchset.

Best Regards,
Jaehoon Chung
> 
> Kind regards
> Ulf Hansson
> 
> 
>>
>>> ---
>>> Changelog V3:
>>>         - Use the "len" instead of "NULL"
>>> Changelog V2:
>>>         - Rename the mmc-hs200-1_8v/1_2v instead of "_caps2_"
>>>         - Add the properties into Documentation/devicetree/bindings/mmc/mmc.txt
>>>
>>>  Documentation/devicetree/bindings/mmc/mmc.txt |    2 ++
>>>  drivers/mmc/core/host.c                       |    4 ++++
>>>  2 files changed, 6 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/mmc/mmc.txt b/Documentation/devicetree/bindings/mmc/mmc.txt
>>> index 458b57f..4bb3894 100644
>>> --- a/Documentation/devicetree/bindings/mmc/mmc.txt
>>> +++ b/Documentation/devicetree/bindings/mmc/mmc.txt
>>> @@ -29,6 +29,8 @@ Optional properties:
>>>  - cap-power-off-card: powering off the card is safe
>>>  - cap-sdio-irq: enable SDIO IRQ signalling on this interface
>>>  - full-pwr-cycle: full power cycle of the card is supported
>>> +- mmc-hs200-1_8v: HS200 mode(1.8V I/O) is supported
>>> +- mmc-hs200-1_2v: HS200 mode(1.2V I/O) is supported
>>>
>>>  *NOTE* on CD and WP polarity. To use common for all SD/MMC host controllers line
>>>  polarity properties, we have to fix the meaning of the "normal" and "inverted"
>>> diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c
>>> index 49bc403..4b81c93 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, "mmc-hs200-1_8v", &len))
>>> +               host->caps2 |= MMC_CAP2_HS200_1_8V_SDR;
>>> +       if (of_find_property(np, "mmc-hs200-1_2v", &len))
>>> +               host->caps2 |= MMC_CAP2_HS200_1_2V_SDR;
>>>
>>>         return 0;
>>>
>>> --
>>> 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
> 


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

end of thread, other threads:[~2014-02-17  3:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-03 11:15 [PATCH v3 1/8] mmc: core: add the property for hs200 Jaehoon Chung
2014-02-14 11:31 ` Ulf Hansson
2014-02-14 12:30   ` Ulf Hansson
2014-02-17  3:17     ` Jaehoon Chung

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.