public inbox for linux-i2c@vger.kernel.org
 help / color / mirror / Atom feed
From: Shawn Guo <shawn.guo-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
To: Richard Zhao <richard.zhao-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Cc: Barry Song <21cnbao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Russell King - ARM Linux
	<linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>,
	Xiangzhen Ye <Xiangzhen.Ye-kQvG35nSl+M@public.gmane.org>,
	w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org,
	workgroup.linux-kQvG35nSl+M@public.gmane.org,
	Zhiwu Song <Zhiwu.Song-kQvG35nSl+M@public.gmane.org>,
	omaplinuxkernel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
	ben-i2c-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org,
	Barry Song <Barry.Song-kQvG35nSl+M@public.gmane.org>,
	Barry Song <Baohua.Song-kQvG35nSl+M@public.gmane.org>,
	jamie-wmLquQDDieKakBO8gow8eQ@public.gmane.org,
	Yuping Luo <Yuping.Luo-kQvG35nSl+M@public.gmane.org>,
	linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org,
	linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH v4] I2C: add CSR SiRFprimaII on-chip I2C controllers driver
Date: Wed, 21 Dec 2011 11:47:54 +0800	[thread overview]
Message-ID: <20111221034753.GC5983@S2101-09.ap.freescale.net> (raw)
In-Reply-To: <20111221033444.GH15863-iWYTGMXpHj9ITqJhDdzsOjpauB2SiJktrE5yTffgRl4@public.gmane.org>

On Wed, Dec 21, 2011 at 11:34:45AM +0800, Richard Zhao wrote:
> On Wed, Dec 21, 2011 at 11:29:29AM +0800, Barry Song wrote:
> > 2011/12/21 Russell King - ARM Linux <linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org>:
> > > On Wed, Dec 14, 2011 at 04:55:27PM +0800, Barry Song wrote:
> > >> +static int __devinit i2c_sirfsoc_probe(struct platform_device *pdev)
> > >> +{
> > >> +     struct clk *clk;
> > >> +
> > >> +     clk = clk_get(&pdev->dev, NULL);
> > >> +     err = clk_prepare(clk);
> > >> +     err = clk_enable(clk);
> > > ...
> > >> +     clk_disable(clk);
> > >> +
> > >> +     dev_info(&pdev->dev, " I2C adapter ready to operate\n");
> > >> +
> > >> +     return 0;
> > >> +}
> > >> +
> > >> +static int __devexit i2c_sirfsoc_remove(struct platform_device *pdev)
> > >> +{
> > >> +     clk_disable(siic->clk);
> > >> +     clk_unprepare(siic->clk);
> > >> +     clk_put(siic->clk);
> > >
> There's a handy clk_disable_unprepare function in the patch I ever sent
> out. It's in Sascha or Shawn's tree.
> 
We cannot really ask people to use that before it hits Linus' tree.

-- 
Regards,
Shawn

  parent reply	other threads:[~2011-12-21  3:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-14  8:55 [PATCH v4] I2C: add CSR SiRFprimaII on-chip I2C controllers driver Barry Song
     [not found] ` <1323852927-13521-1-git-send-email-Barry.Song-kQvG35nSl+M@public.gmane.org>
2011-12-20 13:11   ` Barry Song
2011-12-20 20:07   ` Russell King - ARM Linux
     [not found]     ` <20111220200750.GA2577-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2011-12-21  3:29       ` Barry Song
     [not found]         ` <CAGsJ_4y8vwrK=UD8a10gf2aN=O3hs_R_jYBKeFYf0v+gk0hiuQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-21  3:34           ` Richard Zhao
     [not found]             ` <20111221033444.GH15863-iWYTGMXpHj9ITqJhDdzsOjpauB2SiJktrE5yTffgRl4@public.gmane.org>
2011-12-21  3:47               ` Shawn Guo [this message]
     [not found]                 ` <20111221034753.GC5983-rvtDTF3kK1ictlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org>
2011-12-22 12:08                   ` Barry Song

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=20111221034753.GC5983@S2101-09.ap.freescale.net \
    --to=shawn.guo-kzfg59tc24xl57midrcfdg@public.gmane.org \
    --cc=21cnbao-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=Baohua.Song-kQvG35nSl+M@public.gmane.org \
    --cc=Barry.Song-kQvG35nSl+M@public.gmane.org \
    --cc=Xiangzhen.Ye-kQvG35nSl+M@public.gmane.org \
    --cc=Yuping.Luo-kQvG35nSl+M@public.gmane.org \
    --cc=Zhiwu.Song-kQvG35nSl+M@public.gmane.org \
    --cc=ben-i2c-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org \
    --cc=jamie-wmLquQDDieKakBO8gow8eQ@public.gmane.org \
    --cc=linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org \
    --cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-lFZ/pmaqli7XmaaqVzeoHQ@public.gmane.org \
    --cc=omaplinuxkernel-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=richard.zhao-KZfg59tc24xl57MIdRCFDg@public.gmane.org \
    --cc=w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org \
    --cc=workgroup.linux-kQvG35nSl+M@public.gmane.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