From: kgene.kim@samsung.com (Kukjin Kim)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/7] SPI: S3C64XX: Use bus clocks created using clkdev
Date: Tue, 27 Sep 2011 08:22:46 +0900 [thread overview]
Message-ID: <003301cc7ca3$3314dae0$993e90a0$%kim@samsung.com> (raw)
In-Reply-To: <20110923231233.GE24631@ponder.secretlab.ca>
Grant Likely wrote:
>
> On Fri, Sep 23, 2011 at 05:23:41PM +0530, Padmavathi Venna wrote:
> > This patch modifies the driver to stop depending on the
> > clock names being passed from platform and switch over
> > to lookup clocks generic names using clkdev
> >
> > Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
>
> Looks okay to me.
>
> Acked-by: Grant Likely <grant.likely@secretlab.ca>
>
> This series I imagine should go in via the arm-soc tree.
>
OK, if others ok to me, I will pick up this series so that it will be sent
to upstream via arm-soc.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
>
> > ---
> > drivers/spi/spi-s3c64xx.c | 14 +++++---------
> > 1 files changed, 5 insertions(+), 9 deletions(-)
> >
> > diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c
> > index 019a716..dcf7e10 100644
> > --- a/drivers/spi/spi-s3c64xx.c
> > +++ b/drivers/spi/spi-s3c64xx.c
> > @@ -971,6 +971,7 @@ static int __init s3c64xx_spi_probe(struct
> platform_device *pdev)
> > struct s3c64xx_spi_info *sci;
> > struct spi_master *master;
> > int ret;
> > + char clk_name[16];
> >
> > if (pdev->id < 0) {
> > dev_err(&pdev->dev,
> > @@ -984,11 +985,6 @@ static int __init s3c64xx_spi_probe(struct
> platform_device *pdev)
> > }
> >
> > sci = pdev->dev.platform_data;
> > - if (!sci->src_clk_name) {
> > - dev_err(&pdev->dev,
> > - "Board init must call s3c64xx_spi_set_info()\n");
> > - return -EINVAL;
> > - }
> >
> > /* Check for availability of necessary resource */
> >
> > @@ -1073,17 +1069,17 @@ static int __init s3c64xx_spi_probe(struct
> platform_device *pdev)
> > goto err4;
> > }
> >
> > - sdd->src_clk = clk_get(&pdev->dev, sci->src_clk_name);
> > + sprintf(clk_name, "spi_busclk%d", sci->src_clk_nr);
> > + sdd->src_clk = clk_get(&pdev->dev, clk_name);
> > if (IS_ERR(sdd->src_clk)) {
> > dev_err(&pdev->dev,
> > - "Unable to acquire clock '%s'\n",
sci->src_clk_name);
> > + "Unable to acquire clock '%s'\n", clk_name);
> > ret = PTR_ERR(sdd->src_clk);
> > goto err5;
> > }
> >
> > if (clk_enable(sdd->src_clk)) {
> > - dev_err(&pdev->dev, "Couldn't enable clock '%s'\n",
> > - sci->src_clk_name);
> > + dev_err(&pdev->dev, "Couldn't enable clock '%s'\n",
clk_name);
> > ret = -EBUSY;
> > goto err6;
> > }
> > --
> > 1.7.4.4
> >
next prev parent reply other threads:[~2011-09-26 23:22 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-23 11:53 [PATCH 0/7]: ARM: SAMSUNG: Add SPI clkdev support Padmavathi Venna
2011-09-23 11:53 ` [PATCH 1/7] SPI: S3C64XX: Use bus clocks created using clkdev Padmavathi Venna
2011-09-23 23:12 ` Grant Likely
2011-09-26 23:22 ` Kukjin Kim [this message]
2011-11-01 7:41 ` padma venkat
2011-11-02 11:15 ` Kukjin Kim
2011-09-23 11:53 ` [PATCH 2/7] ARM: SAMSUNG: Add CLK Macro for clkdev support Padmavathi Venna
2011-09-23 20:26 ` Russell King - ARM Linux
2011-09-28 4:25 ` padma venkat
2011-09-23 11:53 ` [PATCH 3/7] ARM: S3C64XX: Add SPI " Padmavathi Venna
2011-09-23 11:53 ` [PATCH 4/7] ARM: S5PC100: " Padmavathi Venna
2011-09-23 11:53 ` [PATCH 5/7] ARM: S5P64X0: " Padmavathi Venna
2011-09-23 11:53 ` [PATCH 6/7] ARM: S5PV210: " Padmavathi Venna
2011-09-23 11:53 ` [PATCH 7/7] ARM: SAMSUNG: Remove SPI bus clocks from platform data Padmavathi Venna
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='003301cc7ca3$3314dae0$993e90a0$%kim@samsung.com' \
--to=kgene.kim@samsung.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).