From: s.hauer@pengutronix.de (Sascha Hauer)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] media i.MX27 camera: remove legacy dma support
Date: Wed, 24 Aug 2011 09:36:14 +0200 [thread overview]
Message-ID: <20110824073614.GU31404@pengutronix.de> (raw)
In-Reply-To: <Pine.LNX.4.64.1108240843001.8985@axis700.grange>
Hi Guennadi,
On Wed, Aug 24, 2011 at 09:19:24AM +0200, Guennadi Liakhovetski wrote:
> Sure, if it's broken, let's remove it. But there are a couple of points,
> that we have to fix in this patch. Sorry, a stupid question: has this been
> tested on i.MX27?
Nope, I currently do not have mainline board support for this driver.
Could be a good opportunity to add some...
Your other points are totally valid and I will fix them in the next
round. Let's first see if someone proves me wrong and says this dma
support is indeed working.
> > - return IRQ_HANDLED;
> > -}
> > -#else
> > static irqreturn_t mx27_camera_irq(int irq_csi, void *data)
> > {
> > return IRQ_NONE;
> > }
>
> If this is really all, what's needed for i.MX27 ISR, let's remove it
> completely. But maybe you could explain to me, how it is now supposed to
> work on i.MX27. In probe() we have
>
> irq_handler_t mx2_cam_irq_handler = cpu_is_mx25() ? mx25_camera_irq
> : mx27_camera_irq;
>
> ...
>
> err = request_irq(pcdev->irq_csi, mx2_cam_irq_handler, 0,
> MX2_CAM_DRV_NAME, pcdev);
>
> So, after this patch i.MX27 will always have a dummy camera ISR and just
> use EMMA, right?
Yes, only the EMMA irq is used, we can remove this one.
> Then maybe we have to make EMMA resource availability
> compulsory on those SoCs, and not optional, as now? You'll have to make
> emma the only possibility on i.MX27, then pcdev->use_emma will disappear,
> locations like
ok.
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:[~2011-08-24 7:36 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-24 6:24 [PATCH] media i.MX27 camera: remove legacy dma support Sascha Hauer
2011-08-24 7:19 ` Guennadi Liakhovetski
2011-08-24 7:36 ` Sascha Hauer [this message]
2011-09-07 20:47 ` Guennadi Liakhovetski
2011-09-08 6:39 ` Robert Schwebel
2011-08-28 18:43 ` Baruch Siach
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=20110824073614.GU31404@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).