From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 4/4] media: mx2_camera: Fix clock handling for i.MX27.
Date: Tue, 31 Jul 2012 19:49:01 +0200 [thread overview]
Message-ID: <20120731174901.GD30009@pengutronix.de> (raw)
In-Reply-To: <Pine.LNX.4.64.1207311644590.27888@axis700.grange>
Hi Guennadi,
On Tue, Jul 31, 2012 at 05:14:25PM +0200, Guennadi Liakhovetski wrote:
> Hi Javier
>
> > @@ -436,7 +436,8 @@ static void mx2_camera_deactivate(struct mx2_camera_dev *pcdev)
> > {
> > unsigned long flags;
> >
> > - clk_disable(pcdev->clk_csi);
> > + if (cpu_is_mx27())
> > + clk_disable_unprepare(pcdev->clk_csi);
>
> This tells me, there are already 2 things going on here:
>
> 1. add clock-(un)prepare operations to enable / disable. Is this a problem
> atm? is the driver non-functional without this change or is it just an API
> correctness change? I thought you replied to this already, but
> unfortunately I couldn't find that your reply again, sorry.
Since the common clock framework clk_prepare is mandatory.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2012-07-31 17:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-26 11:20 [PATCH 0/4] Fix clocks for i.MX27 in mx2_camera.c Javier Martin
2012-07-26 11:20 ` [PATCH 1/4] i.MX27: Fix emma-prp and csi clocks Javier Martin
2012-07-26 11:20 ` [PATCH 2/4] media: mx2_camera: Mark i.MX25 support as BROKEN Javier Martin
2012-07-26 11:20 ` [PATCH 3/4] Schedule removal of i.MX25 support in mx2_camera.c Javier Martin
2012-07-26 11:20 ` [PATCH 4/4] media: mx2_camera: Fix clock handling for i.MX27 Javier Martin
2012-07-31 15:14 ` Guennadi Liakhovetski
2012-07-31 17:49 ` Sascha Hauer [this message]
2012-08-01 7:02 ` Guennadi Liakhovetski
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=20120731174901.GD30009@pengutronix.de \
--to=s.hauer@pengutronix.de \
--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).