All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: linux-arm-kernel@lists.infradead.org,
	Baruch Siach <baruch@tkos.co.il>,
	linux-media@vger.kernel.org
Subject: Re: [PATCH] media i.MX27 camera: remove legacy dma support
Date: Wed, 7 Sep 2011 22:47:38 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.64.1109072246320.31156@axis700.grange> (raw)
In-Reply-To: <20110824073614.GU31404@pengutronix.de>

Hi Sascha

(hope, you've had good holidays:-))

Any update on this? Do we want this for 3.2?

Thanks
Guennadi

On Wed, 24 Aug 2011, Sascha Hauer wrote:

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

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

WARNING: multiple messages have this Message-ID (diff)
From: g.liakhovetski@gmx.de (Guennadi Liakhovetski)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] media i.MX27 camera: remove legacy dma support
Date: Wed, 7 Sep 2011 22:47:38 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.64.1109072246320.31156@axis700.grange> (raw)
In-Reply-To: <20110824073614.GU31404@pengutronix.de>

Hi Sascha

(hope, you've had good holidays:-))

Any update on this? Do we want this for 3.2?

Thanks
Guennadi

On Wed, 24 Aug 2011, Sascha Hauer wrote:

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

---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/

  reply	other threads:[~2011-09-07 20:47 UTC|newest]

Thread overview: 12+ 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  6:24 ` Sascha Hauer
2011-08-24  7:19 ` Guennadi Liakhovetski
2011-08-24  7:19   ` Guennadi Liakhovetski
2011-08-24  7:36   ` Sascha Hauer
2011-08-24  7:36     ` Sascha Hauer
2011-09-07 20:47     ` Guennadi Liakhovetski [this message]
2011-09-07 20:47       ` Guennadi Liakhovetski
2011-09-08  6:39       ` Robert Schwebel
2011-09-08  6:39         ` Robert Schwebel
2011-08-28 18:43   ` Baruch Siach
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=Pine.LNX.4.64.1109072246320.31156@axis700.grange \
    --to=g.liakhovetski@gmx.de \
    --cc=baruch@tkos.co.il \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-media@vger.kernel.org \
    --cc=s.hauer@pengutronix.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.