All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: sdhci: Remove ->platform_init() callback as it's no longer used
@ 2016-08-30 10:02 Ulf Hansson
  2016-08-30 10:20 ` Adrian Hunter
  0 siblings, 1 reply; 4+ messages in thread
From: Ulf Hansson @ 2016-08-30 10:02 UTC (permalink / raw)
  To: linux-mmc, Ulf Hansson, Adrian Hunter

The commit 1ef5e49e46b9 ("mmc: sdhci-of-esdhc: add/remove some quirks
according to vendor version") moved sdhci-of-esdhc away from using the
->platform_init() callback.

As it was the only user of it and that it seems reasonable to believe that
it won't be needed again, let's remove just remove it.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---
 drivers/mmc/host/sdhci-pltfm.c | 7 -------
 drivers/mmc/host/sdhci.h       | 1 -
 2 files changed, 8 deletions(-)

diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
index 1d17dcf..ad49bfa 100644
--- a/drivers/mmc/host/sdhci-pltfm.c
+++ b/drivers/mmc/host/sdhci-pltfm.c
@@ -156,13 +156,6 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
 		host->quirks2 = pdata->quirks2;
 	}
 
-	/*
-	 * Some platforms need to probe the controller to be able to
-	 * determine which caps should be used.
-	 */
-	if (host->ops && host->ops->platform_init)
-		host->ops->platform_init(host);
-
 	platform_set_drvdata(pdev, host);
 
 	return host;
diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
index 0411c9f..a2bc9e1 100644
--- a/drivers/mmc/host/sdhci.h
+++ b/drivers/mmc/host/sdhci.h
@@ -555,7 +555,6 @@ struct sdhci_ops {
 	void	(*set_uhs_signaling)(struct sdhci_host *host, unsigned int uhs);
 	void	(*hw_reset)(struct sdhci_host *host);
 	void    (*adma_workaround)(struct sdhci_host *host, u32 intmask);
-	void	(*platform_init)(struct sdhci_host *host);
 	void    (*card_event)(struct sdhci_host *host);
 	void	(*voltage_switch)(struct sdhci_host *host);
 	int	(*select_drive_strength)(struct sdhci_host *host,
-- 
1.9.1


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

* Re: [PATCH] mmc: sdhci: Remove ->platform_init() callback as it's no longer used
  2016-08-30 10:02 [PATCH] mmc: sdhci: Remove ->platform_init() callback as it's no longer used Ulf Hansson
@ 2016-08-30 10:20 ` Adrian Hunter
  2016-08-30 10:40   ` Ulf Hansson
  0 siblings, 1 reply; 4+ messages in thread
From: Adrian Hunter @ 2016-08-30 10:20 UTC (permalink / raw)
  To: Ulf Hansson, linux-mmc

On 30/08/16 13:02, Ulf Hansson wrote:
> The commit 1ef5e49e46b9 ("mmc: sdhci-of-esdhc: add/remove some quirks
> according to vendor version") moved sdhci-of-esdhc away from using the
> ->platform_init() callback.
> 
> As it was the only user of it and that it seems reasonable to believe that
> it won't be needed again, let's remove just remove it.
> 
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

Have been meaning to do that, but didn't have time:

Acked-by: Adrian Hunter <adrian.hunter@intel.com>

However if you have spare time ;-) you could take a look at the Software
Command Queue patches, at least the support for sending commands during data
transfer:

	http://marc.info/?l=linux-mmc&m=147134458618542

> ---
>  drivers/mmc/host/sdhci-pltfm.c | 7 -------
>  drivers/mmc/host/sdhci.h       | 1 -
>  2 files changed, 8 deletions(-)
> 
> diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
> index 1d17dcf..ad49bfa 100644
> --- a/drivers/mmc/host/sdhci-pltfm.c
> +++ b/drivers/mmc/host/sdhci-pltfm.c
> @@ -156,13 +156,6 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
>  		host->quirks2 = pdata->quirks2;
>  	}
>  
> -	/*
> -	 * Some platforms need to probe the controller to be able to
> -	 * determine which caps should be used.
> -	 */
> -	if (host->ops && host->ops->platform_init)
> -		host->ops->platform_init(host);
> -
>  	platform_set_drvdata(pdev, host);
>  
>  	return host;
> diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
> index 0411c9f..a2bc9e1 100644
> --- a/drivers/mmc/host/sdhci.h
> +++ b/drivers/mmc/host/sdhci.h
> @@ -555,7 +555,6 @@ struct sdhci_ops {
>  	void	(*set_uhs_signaling)(struct sdhci_host *host, unsigned int uhs);
>  	void	(*hw_reset)(struct sdhci_host *host);
>  	void    (*adma_workaround)(struct sdhci_host *host, u32 intmask);
> -	void	(*platform_init)(struct sdhci_host *host);
>  	void    (*card_event)(struct sdhci_host *host);
>  	void	(*voltage_switch)(struct sdhci_host *host);
>  	int	(*select_drive_strength)(struct sdhci_host *host,
> 


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

* Re: [PATCH] mmc: sdhci: Remove ->platform_init() callback as it's no longer used
  2016-08-30 10:20 ` Adrian Hunter
@ 2016-08-30 10:40   ` Ulf Hansson
  2016-08-30 14:21     ` Ritesh Harjani
  0 siblings, 1 reply; 4+ messages in thread
From: Ulf Hansson @ 2016-08-30 10:40 UTC (permalink / raw)
  To: Adrian Hunter; +Cc: linux-mmc

On 30 August 2016 at 12:20, Adrian Hunter <adrian.hunter@intel.com> wrote:
> On 30/08/16 13:02, Ulf Hansson wrote:
>> The commit 1ef5e49e46b9 ("mmc: sdhci-of-esdhc: add/remove some quirks
>> according to vendor version") moved sdhci-of-esdhc away from using the
>> ->platform_init() callback.
>>
>> As it was the only user of it and that it seems reasonable to believe that
>> it won't be needed again, let's remove just remove it.
>>
>> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
>
> Have been meaning to do that, but didn't have time:
>
> Acked-by: Adrian Hunter <adrian.hunter@intel.com>
>
> However if you have spare time ;-) you could take a look at the Software
> Command Queue patches, at least the support for sending commands during data
> transfer:

Yes, I have briefly started. I postponed some of the more heavy
reviews to be able to catch up with all the simpler changes.

Allow me to get few more days, then I will respond to them!

BTW, I was also hoping Ritesh could help to review the changes.
Perhaps you can ping him as well.

Thanks and kind regards
Uffe

>
>         http://marc.info/?l=linux-mmc&m=147134458618542
>
>> ---
>>  drivers/mmc/host/sdhci-pltfm.c | 7 -------
>>  drivers/mmc/host/sdhci.h       | 1 -
>>  2 files changed, 8 deletions(-)
>>
>> diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
>> index 1d17dcf..ad49bfa 100644
>> --- a/drivers/mmc/host/sdhci-pltfm.c
>> +++ b/drivers/mmc/host/sdhci-pltfm.c
>> @@ -156,13 +156,6 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
>>               host->quirks2 = pdata->quirks2;
>>       }
>>
>> -     /*
>> -      * Some platforms need to probe the controller to be able to
>> -      * determine which caps should be used.
>> -      */
>> -     if (host->ops && host->ops->platform_init)
>> -             host->ops->platform_init(host);
>> -
>>       platform_set_drvdata(pdev, host);
>>
>>       return host;
>> diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
>> index 0411c9f..a2bc9e1 100644
>> --- a/drivers/mmc/host/sdhci.h
>> +++ b/drivers/mmc/host/sdhci.h
>> @@ -555,7 +555,6 @@ struct sdhci_ops {
>>       void    (*set_uhs_signaling)(struct sdhci_host *host, unsigned int uhs);
>>       void    (*hw_reset)(struct sdhci_host *host);
>>       void    (*adma_workaround)(struct sdhci_host *host, u32 intmask);
>> -     void    (*platform_init)(struct sdhci_host *host);
>>       void    (*card_event)(struct sdhci_host *host);
>>       void    (*voltage_switch)(struct sdhci_host *host);
>>       int     (*select_drive_strength)(struct sdhci_host *host,
>>
>

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

* Re: [PATCH] mmc: sdhci: Remove ->platform_init() callback as it's no longer used
  2016-08-30 10:40   ` Ulf Hansson
@ 2016-08-30 14:21     ` Ritesh Harjani
  0 siblings, 0 replies; 4+ messages in thread
From: Ritesh Harjani @ 2016-08-30 14:21 UTC (permalink / raw)
  To: Ulf Hansson, Adrian Hunter; +Cc: linux-mmc

Hi Ulf & Adrian,


On 8/30/2016 4:10 PM, Ulf Hansson wrote:
> On 30 August 2016 at 12:20, Adrian Hunter <adrian.hunter@intel.com> wrote:
>> On 30/08/16 13:02, Ulf Hansson wrote:
>>> The commit 1ef5e49e46b9 ("mmc: sdhci-of-esdhc: add/remove some quirks
>>> according to vendor version") moved sdhci-of-esdhc away from using the
>>> ->platform_init() callback.
>>>
>>> As it was the only user of it and that it seems reasonable to believe that
>>> it won't be needed again, let's remove just remove it.
>>>
>>> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
>>
>> Have been meaning to do that, but didn't have time:
>>
>> Acked-by: Adrian Hunter <adrian.hunter@intel.com>
>>
>> However if you have spare time ;-) you could take a look at the Software
>> Command Queue patches, at least the support for sending commands during data
>> transfer:
>
> Yes, I have briefly started. I postponed some of the more heavy
> reviews to be able to catch up with all the simpler changes.
>
> Allow me to get few more days, then I will respond to them!
>
> BTW, I was also hoping Ritesh could help to review the changes.
> Perhaps you can ping him as well.
Yes, I had started looking at those patches till sending commands during 
data transfer.
I will get back on those, once I am completed with the current patches 
on my name. Sorry about the delay.

Regards
Ritesh


>
> Thanks and kind regards
> Uffe
>
>>
>>         http://marc.info/?l=linux-mmc&m=147134458618542
>>
>>> ---
>>>  drivers/mmc/host/sdhci-pltfm.c | 7 -------
>>>  drivers/mmc/host/sdhci.h       | 1 -
>>>  2 files changed, 8 deletions(-)
>>>
>>> diff --git a/drivers/mmc/host/sdhci-pltfm.c b/drivers/mmc/host/sdhci-pltfm.c
>>> index 1d17dcf..ad49bfa 100644
>>> --- a/drivers/mmc/host/sdhci-pltfm.c
>>> +++ b/drivers/mmc/host/sdhci-pltfm.c
>>> @@ -156,13 +156,6 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
>>>               host->quirks2 = pdata->quirks2;
>>>       }
>>>
>>> -     /*
>>> -      * Some platforms need to probe the controller to be able to
>>> -      * determine which caps should be used.
>>> -      */
>>> -     if (host->ops && host->ops->platform_init)
>>> -             host->ops->platform_init(host);
>>> -
>>>       platform_set_drvdata(pdev, host);
>>>
>>>       return host;
>>> diff --git a/drivers/mmc/host/sdhci.h b/drivers/mmc/host/sdhci.h
>>> index 0411c9f..a2bc9e1 100644
>>> --- a/drivers/mmc/host/sdhci.h
>>> +++ b/drivers/mmc/host/sdhci.h
>>> @@ -555,7 +555,6 @@ struct sdhci_ops {
>>>       void    (*set_uhs_signaling)(struct sdhci_host *host, unsigned int uhs);
>>>       void    (*hw_reset)(struct sdhci_host *host);
>>>       void    (*adma_workaround)(struct sdhci_host *host, u32 intmask);
>>> -     void    (*platform_init)(struct sdhci_host *host);
>>>       void    (*card_event)(struct sdhci_host *host);
>>>       void    (*voltage_switch)(struct sdhci_host *host);
>>>       int     (*select_drive_strength)(struct sdhci_host *host,
>>>
>>
> --
> 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:[~2016-08-30 14:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-30 10:02 [PATCH] mmc: sdhci: Remove ->platform_init() callback as it's no longer used Ulf Hansson
2016-08-30 10:20 ` Adrian Hunter
2016-08-30 10:40   ` Ulf Hansson
2016-08-30 14:21     ` Ritesh Harjani

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.