diff mbox

[v3,2/2] mmc4.5: host: poweroff notify rework

Message ID 1336398084-23203-2-git-send-email-girish.shivananjappa@linaro.org
State New
Headers show

Commit Message

Girish K S May 7, 2012, 1:41 p.m. UTC
This patch changes the structure member name to maintain consistency
of name for the poweroff notify feature

Signed-off-by: Girish K S <girish.shivananjappa@linaro.org>
---
 drivers/mmc/host/dw_mmc.c |    4 ++--
 drivers/mmc/host/sdhci.c  |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

Comments

Ulf Hansson May 14, 2012, 7:20 a.m. UTC | #1
Hi Girish,

In patch 1/2 you break the compilation of these host drivers. In this 
patch 2/2 you fix it again. I would prefer you include these fixes in 
the same patch instead of splitting them into two pieces.

Kind regards
Ulf Hansson

On 05/07/2012 03:41 PM, Girish K S wrote:
> This patch changes the structure member name to maintain consistency
> of name for the poweroff notify feature
>
> Signed-off-by: Girish K S<girish.shivananjappa@linaro.org>
> ---
>   drivers/mmc/host/dw_mmc.c |    4 ++--
>   drivers/mmc/host/sdhci.c  |    4 ++--
>   2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
> index ab3fc46..09ac734 100644
> --- a/drivers/mmc/host/dw_mmc.c
> +++ b/drivers/mmc/host/dw_mmc.c
> @@ -1791,9 +1791,9 @@ static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id)
>   		mmc->caps |= MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED;
>
>   	if (mmc->caps2&  MMC_CAP2_POWEROFF_NOTIFY)
> -		mmc->power_notify_type = MMC_HOST_PW_NOTIFY_SHORT;
> +		mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_SHORT;
>   	else
> -		mmc->power_notify_type = MMC_HOST_PW_NOTIFY_NONE;
> +		mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_NONE;
>
>   	if (host->pdata->blk_settings) {
>   		mmc->max_segs = host->pdata->blk_settings->max_segs;
> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
> index e626732..958e5fe 100644
> --- a/drivers/mmc/host/sdhci.c
> +++ b/drivers/mmc/host/sdhci.c
> @@ -2817,9 +2817,9 @@ int sdhci_add_host(struct sdhci_host *host)
>   	 * set notify to short power off notify timeout value.
>   	 */
>   	if (mmc->caps2&  MMC_CAP2_POWEROFF_NOTIFY)
> -		mmc->power_notify_type = MMC_HOST_PW_NOTIFY_SHORT;
> +		mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_SHORT;
>   	else
> -		mmc->power_notify_type = MMC_HOST_PW_NOTIFY_NONE;
> +		mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_NONE;
>
>   	/* Initial value for re-tuning timer count */
>   	host->tuning_count = (caps[1]&  SDHCI_RETUNING_TIMER_COUNT_MASK)>>
Girish K S May 14, 2012, 8:56 a.m. UTC | #2
On 14 May 2012 12:50, Ulf Hansson <ulf.hansson@stericsson.com> wrote:
> Hi Girish,
>
> In patch 1/2 you break the compilation of these host drivers. In this patch
> 2/2 you fix it again. I would prefer you include these fixes in the same
> patch instead of splitting them into two pieces.
It is a patch series. I have no issue in making it as a single patch.
>
> Kind regards
> Ulf Hansson
>
>
> On 05/07/2012 03:41 PM, Girish K S wrote:
>>
>> This patch changes the structure member name to maintain consistency
>> of name for the poweroff notify feature
>>
>> Signed-off-by: Girish K S<girish.shivananjappa@linaro.org>
>> ---
>>  drivers/mmc/host/dw_mmc.c |    4 ++--
>>  drivers/mmc/host/sdhci.c  |    4 ++--
>>  2 files changed, 4 insertions(+), 4 deletions(-)
>>
>> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
>> index ab3fc46..09ac734 100644
>> --- a/drivers/mmc/host/dw_mmc.c
>> +++ b/drivers/mmc/host/dw_mmc.c
>> @@ -1791,9 +1791,9 @@ static int __init dw_mci_init_slot(struct dw_mci
>> *host, unsigned int id)
>>                mmc->caps |= MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED;
>>
>>        if (mmc->caps2&  MMC_CAP2_POWEROFF_NOTIFY)
>>
>> -               mmc->power_notify_type = MMC_HOST_PW_NOTIFY_SHORT;
>> +               mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_SHORT;
>>        else
>> -               mmc->power_notify_type = MMC_HOST_PW_NOTIFY_NONE;
>> +               mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_NONE;
>>
>>        if (host->pdata->blk_settings) {
>>                mmc->max_segs = host->pdata->blk_settings->max_segs;
>> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
>> index e626732..958e5fe 100644
>> --- a/drivers/mmc/host/sdhci.c
>> +++ b/drivers/mmc/host/sdhci.c
>> @@ -2817,9 +2817,9 @@ int sdhci_add_host(struct sdhci_host *host)
>>         * set notify to short power off notify timeout value.
>>         */
>>        if (mmc->caps2&  MMC_CAP2_POWEROFF_NOTIFY)
>>
>> -               mmc->power_notify_type = MMC_HOST_PW_NOTIFY_SHORT;
>> +               mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_SHORT;
>>        else
>> -               mmc->power_notify_type = MMC_HOST_PW_NOTIFY_NONE;
>> +               mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_NONE;
>>
>>        /* Initial value for re-tuning timer count */
>>        host->tuning_count = (caps[1]&  SDHCI_RETUNING_TIMER_COUNT_MASK)>>
>
>
Girish K S May 14, 2012, 9 a.m. UTC | #3
On 14 May 2012 14:26, Girish K S <girish.shivananjappa@linaro.org> wrote:
> On 14 May 2012 12:50, Ulf Hansson <ulf.hansson@stericsson.com> wrote:
>> Hi Girish,
>>
>> In patch 1/2 you break the compilation of these host drivers. In this patch
>> 2/2 you fix it again. I would prefer you include these fixes in the same
>> patch instead of splitting them into two pieces.
> It is a patch series. I have no issue in making it as a single patch.
I will make the changes affecting the host as a separate patch.
>>
>> Kind regards
>> Ulf Hansson
>>
>>
>> On 05/07/2012 03:41 PM, Girish K S wrote:
>>>
>>> This patch changes the structure member name to maintain consistency
>>> of name for the poweroff notify feature
>>>
>>> Signed-off-by: Girish K S<girish.shivananjappa@linaro.org>
>>> ---
>>>  drivers/mmc/host/dw_mmc.c |    4 ++--
>>>  drivers/mmc/host/sdhci.c  |    4 ++--
>>>  2 files changed, 4 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
>>> index ab3fc46..09ac734 100644
>>> --- a/drivers/mmc/host/dw_mmc.c
>>> +++ b/drivers/mmc/host/dw_mmc.c
>>> @@ -1791,9 +1791,9 @@ static int __init dw_mci_init_slot(struct dw_mci
>>> *host, unsigned int id)
>>>                mmc->caps |= MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED;
>>>
>>>        if (mmc->caps2&  MMC_CAP2_POWEROFF_NOTIFY)
>>>
>>> -               mmc->power_notify_type = MMC_HOST_PW_NOTIFY_SHORT;
>>> +               mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_SHORT;
>>>        else
>>> -               mmc->power_notify_type = MMC_HOST_PW_NOTIFY_NONE;
>>> +               mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_NONE;
>>>
>>>        if (host->pdata->blk_settings) {
>>>                mmc->max_segs = host->pdata->blk_settings->max_segs;
>>> diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
>>> index e626732..958e5fe 100644
>>> --- a/drivers/mmc/host/sdhci.c
>>> +++ b/drivers/mmc/host/sdhci.c
>>> @@ -2817,9 +2817,9 @@ int sdhci_add_host(struct sdhci_host *host)
>>>         * set notify to short power off notify timeout value.
>>>         */
>>>        if (mmc->caps2&  MMC_CAP2_POWEROFF_NOTIFY)
>>>
>>> -               mmc->power_notify_type = MMC_HOST_PW_NOTIFY_SHORT;
>>> +               mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_SHORT;
>>>        else
>>> -               mmc->power_notify_type = MMC_HOST_PW_NOTIFY_NONE;
>>> +               mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_NONE;
>>>
>>>        /* Initial value for re-tuning timer count */
>>>        host->tuning_count = (caps[1]&  SDHCI_RETUNING_TIMER_COUNT_MASK)>>
>>
>>
diff mbox

Patch

diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index ab3fc46..09ac734 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -1791,9 +1791,9 @@  static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id)
 		mmc->caps |= MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED;
 
 	if (mmc->caps2 & MMC_CAP2_POWEROFF_NOTIFY)
-		mmc->power_notify_type = MMC_HOST_PW_NOTIFY_SHORT;
+		mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_SHORT;
 	else
-		mmc->power_notify_type = MMC_HOST_PW_NOTIFY_NONE;
+		mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_NONE;
 
 	if (host->pdata->blk_settings) {
 		mmc->max_segs = host->pdata->blk_settings->max_segs;
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index e626732..958e5fe 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -2817,9 +2817,9 @@  int sdhci_add_host(struct sdhci_host *host)
 	 * set notify to short power off notify timeout value.
 	 */
 	if (mmc->caps2 & MMC_CAP2_POWEROFF_NOTIFY)
-		mmc->power_notify_type = MMC_HOST_PW_NOTIFY_SHORT;
+		mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_SHORT;
 	else
-		mmc->power_notify_type = MMC_HOST_PW_NOTIFY_NONE;
+		mmc->poweroff_notify_type = MMC_HOST_PW_OFF_NOTIFY_NONE;
 
 	/* Initial value for re-tuning timer count */
 	host->tuning_count = (caps[1] & SDHCI_RETUNING_TIMER_COUNT_MASK) >>