linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V6] SDHCI: S3C: Use generic clock names for sdhci bus clock options
@ 2011-10-31  5:44 Rajeshwari Shinde
  2011-11-02 12:12 ` Kukjin Kim
  2011-11-02 20:41 ` Thomas Abraham
  0 siblings, 2 replies; 5+ messages in thread
From: Rajeshwari Shinde @ 2011-10-31  5:44 UTC (permalink / raw)
  To: linux-arm-kernel

This patch modifies the driver to stop depending on the clock names
being passed from the platform and switch over to bus clock lookup
using generic clock names.

V6 Changes:
Changed sprintf to snprintf as suggested by Chris Ball.

Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
---
 drivers/mmc/host/sdhci-s3c.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c
index 82709b6..488223c 100644
--- a/drivers/mmc/host/sdhci-s3c.c
+++ b/drivers/mmc/host/sdhci-s3c.c
@@ -435,14 +435,11 @@ static int __devinit sdhci_s3c_probe(struct platform_device *pdev)
 
 	for (clks = 0, ptr = 0; ptr < MAX_BUS_CLK; ptr++) {
 		struct clk *clk;
-		char *name = pdata->clocks[ptr];
-
-		if (name == NULL)
-			continue;
+		char name[14];
 
+		snprintf(name, 14, "mmc_busclk.%d", ptr);
 		clk = clk_get(dev, name);
 		if (IS_ERR(clk)) {
-			dev_err(dev, "failed to get clock %s\n", name);
 			continue;
 		}
 
-- 
1.7.4.4

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

* [PATCH V6] SDHCI: S3C: Use generic clock names for sdhci bus clock options
  2011-10-31  5:44 [PATCH V6] SDHCI: S3C: Use generic clock names for sdhci bus clock options Rajeshwari Shinde
@ 2011-11-02 12:12 ` Kukjin Kim
  2011-11-02 17:56   ` Chris Ball
  2011-11-02 20:41 ` Thomas Abraham
  1 sibling, 1 reply; 5+ messages in thread
From: Kukjin Kim @ 2011-11-02 12:12 UTC (permalink / raw)
  To: linux-arm-kernel

Rajeshwari Shinde wrote:
> 
> This patch modifies the driver to stop depending on the clock names
> being passed from the platform and switch over to bus clock lookup
> using generic clock names.
> 
> V6 Changes:
> Changed sprintf to snprintf as suggested by Chris Ball.
> 
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>

Acked-by: Kukjin Kim <kgene.kim@samsung.com>

Hi Chirs,

Could you please pick this up in your tree for this merge window?

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

> ---
>  drivers/mmc/host/sdhci-s3c.c |    7 ++-----
>  1 files changed, 2 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c
> index 82709b6..488223c 100644
> --- a/drivers/mmc/host/sdhci-s3c.c
> +++ b/drivers/mmc/host/sdhci-s3c.c
> @@ -435,14 +435,11 @@ static int __devinit sdhci_s3c_probe(struct
> platform_device *pdev)
> 
>  	for (clks = 0, ptr = 0; ptr < MAX_BUS_CLK; ptr++) {
>  		struct clk *clk;
> -		char *name = pdata->clocks[ptr];
> -
> -		if (name == NULL)
> -			continue;
> +		char name[14];
> 
> +		snprintf(name, 14, "mmc_busclk.%d", ptr);
>  		clk = clk_get(dev, name);
>  		if (IS_ERR(clk)) {
> -			dev_err(dev, "failed to get clock %s\n", name);
>  			continue;
>  		}
> 
> --
> 1.7.4.4

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

* [PATCH V6] SDHCI: S3C: Use generic clock names for sdhci bus clock options
  2011-11-02 12:12 ` Kukjin Kim
@ 2011-11-02 17:56   ` Chris Ball
  2011-11-03  2:14     ` Kukjin Kim
  0 siblings, 1 reply; 5+ messages in thread
From: Chris Ball @ 2011-11-02 17:56 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Kukjin,

On Wed, Nov 02 2011, Kukjin Kim wrote:
>> This patch modifies the driver to stop depending on the clock names
>> being passed from the platform and switch over to bus clock lookup
>> using generic clock names.
>> 
>> V6 Changes:
>> Changed sprintf to snprintf as suggested by Chris Ball.
>> 
>> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
>
> Acked-by: Kukjin Kim <kgene.kim@samsung.com>
>
> Hi Chirs,
>
> Could you please pick this up in your tree for this merge window?

Might be easier to have you send this, if you don't mind, since I'm
still traveling and have already sent my main pull request.  Thanks!

Acked-by: Chris Ball <cjb@laptop.org>

- Chris.
-- 
Chris Ball   <cjb@laptop.org>   <http://printf.net/>
One Laptop Per Child

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

* [PATCH V6] SDHCI: S3C: Use generic clock names for sdhci bus clock options
  2011-10-31  5:44 [PATCH V6] SDHCI: S3C: Use generic clock names for sdhci bus clock options Rajeshwari Shinde
  2011-11-02 12:12 ` Kukjin Kim
@ 2011-11-02 20:41 ` Thomas Abraham
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Abraham @ 2011-11-02 20:41 UTC (permalink / raw)
  To: linux-arm-kernel

On 31 October 2011 11:14, Rajeshwari Shinde <rajeshwari.s@samsung.com> wrote:
> This patch modifies the driver to stop depending on the clock names
> being passed from the platform and switch over to bus clock lookup
> using generic clock names.
>
> V6 Changes:
> Changed sprintf to snprintf as suggested by Chris Ball.

The above two lines can be removed from the commit message.

>
> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
> ---
> ?drivers/mmc/host/sdhci-s3c.c | ? ?7 ++-----
> ?1 files changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/mmc/host/sdhci-s3c.c b/drivers/mmc/host/sdhci-s3c.c
> index 82709b6..488223c 100644
> --- a/drivers/mmc/host/sdhci-s3c.c
> +++ b/drivers/mmc/host/sdhci-s3c.c
> @@ -435,14 +435,11 @@ static int __devinit sdhci_s3c_probe(struct platform_device *pdev)

[...]

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

* [PATCH V6] SDHCI: S3C: Use generic clock names for sdhci bus clock options
  2011-11-02 17:56   ` Chris Ball
@ 2011-11-03  2:14     ` Kukjin Kim
  0 siblings, 0 replies; 5+ messages in thread
From: Kukjin Kim @ 2011-11-03  2:14 UTC (permalink / raw)
  To: linux-arm-kernel

Chris Ball wrote:
> 
> Hi Kukjin,
> 
> On Wed, Nov 02 2011, Kukjin Kim wrote:
> >> This patch modifies the driver to stop depending on the clock names
> >> being passed from the platform and switch over to bus clock lookup
> >> using generic clock names.
> >>
> >> V6 Changes:
> >> Changed sprintf to snprintf as suggested by Chris Ball.
> >>
> >> Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com>
> >
> > Acked-by: Kukjin Kim <kgene.kim@samsung.com>
> >
> > Hi Chirs,
> >
> > Could you please pick this up in your tree for this merge window?
> 
> Might be easier to have you send this, if you don't mind, since I'm
> still traveling and have already sent my main pull request.  Thanks!
> 
> Acked-by: Chris Ball <cjb@laptop.org>
> 
Hi Chris,

OK, I picked this up in my tree.
Thanks.

Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

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

end of thread, other threads:[~2011-11-03  2:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-31  5:44 [PATCH V6] SDHCI: S3C: Use generic clock names for sdhci bus clock options Rajeshwari Shinde
2011-11-02 12:12 ` Kukjin Kim
2011-11-02 17:56   ` Chris Ball
2011-11-03  2:14     ` Kukjin Kim
2011-11-02 20:41 ` Thomas Abraham

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