Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754790AbbFTN33 (ORCPT ); Sat, 20 Jun 2015 09:29:29 -0400 Received: from mout.gmx.net ([212.227.15.19]:51951 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753464AbbFTN3W (ORCPT ); Sat, 20 Jun 2015 09:29:22 -0400 Date: Sat, 20 Jun 2015 15:29:00 +0200 (CEST) From: Guennadi Liakhovetski X-X-Sender: lyakh@axis700.grange To: Robert Jarzmik cc: Mauro Carvalho Chehab , Jiri Kosina , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Mack , Robert Jarzmik Subject: Re: [PATCH 3/4] media: pxa_camera: trivial move of dma irq functions In-Reply-To: <1426980085-12281-4-git-send-email-robert.jarzmik@free.fr> Message-ID: References: <1426980085-12281-1-git-send-email-robert.jarzmik@free.fr> <1426980085-12281-4-git-send-email-robert.jarzmik@free.fr> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Provags-ID: V03:K0:f1CNv+wzqjOwaaKjSuEKTTY9vZnFVOTixO48qibyUNx0jogqZn/ P1UhuUZDfaEYp148WBw05OCqYNJs3Qthu9E9/yYx8ACobmLn4IAA2d0+D6v/N6AfQZUScNN VNxNuDr14leQfOGjtEv0qpepxwCQc0GrBL+PyoWcd8Yong0ovPJdLHvvgPQHYzk9Ki/EZTt L/SxIDy7VrUpvllnUQrRA== X-UI-Out-Filterresults: notjunk:1;V01:K0:NTXVpbZ1SWE=:Fe6gdX2vIu9FdIc2O6BAjn tnINFbDJ2l0sEcIfWxy2wkGm1Ha+m2QDDwiiy1G97/uug+6Hdr6+qrhJXT7qapWBvIo0r+skw X5V8R0ShjNIq5gCvPBfmxu61RZPgVN1CNMuarVcUW8hcd0ZMPWqBTyw8qvG0c79Q0CTqvWopO 90l1DXmJ8quOTu6hMN1H/jB2Ie/Oya8xKxiFkkyecN+UCJQ5Ci8I+PdRS6CQf1EfciKITR5Kd tu6vsRWw+qVrUX6Fr+dBL8xCrdxl1ZbbqdCt/hnVvCZhBHEUmklatIxVXefiEOe+DYq+G+UkF nsELN/7xiK0NBqslBjywYyJySEx8fF22AKxUderXl8LrQ1VcJksVXeIOKDKyLusmBFeKj9USN rnHt1TWOjyKtTrniiGkO+AZ3bD88Tun0hpwu6odyU861GSMbQFniWCvaWWU5Ii4NYqVijnbDz ZYrFWxWclE7WhpdJkd0eDB8IdII7SnnBs6CGqmNENDbv8is6b5raLTcW1Ev1o5CC1gAez9Kox JcJOiQSx+vv9NMMe5NDZP2CjhOeRXaEnknNskOPjeRV2XkVBkjI988amhElRcDcLjefwEznk3 eDZffPUT1sVTat7JwZcNXohivBOs4vGZYRXKUCO+abkx3TdNs7oMoIBWX3TE2YOyikObvYR6W uSTWkcxAA1oS9g/FfecSK3bjKwVM5u3AdNi2TXmiWoSdn7LxatH45rZDEIDB/TuDMqdk= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2578 Lines: 86 On Sun, 22 Mar 2015, Robert Jarzmik wrote: > From: Robert Jarzmik > > This moves the dma irq handling functions up in the source file, so that > they are available before DMA preparation functions. It prepares the > conversion to DMA engine, where the descriptors are populated with these > functions as callbacks. > > Signed-off-by: Robert Jarzmik > --- > drivers/media/platform/soc_camera/pxa_camera.c | 40 ++++++++++++++------------ > 1 file changed, 22 insertions(+), 18 deletions(-) > > diff --git a/drivers/media/platform/soc_camera/pxa_camera.c b/drivers/media/platform/soc_camera/pxa_camera.c > index c0c0f0f..8b39f44 100644 > --- a/drivers/media/platform/soc_camera/pxa_camera.c > +++ b/drivers/media/platform/soc_camera/pxa_camera.c > @@ -311,6 +311,28 @@ static int calculate_dma_sglen(struct scatterlist *sglist, int sglen, > > BUG_ON(size != 0); > return i + 1; > +static void pxa_camera_dma_irq(struct pxa_camera_dev *pcdev, > + enum pxa_camera_active_dma act_dma); > + > +static void pxa_camera_dma_irq_y(void *data) Wait, how is this patch trivial? You change pxa_camera_dma_irq_?() prototypes, which are used as PXA DMA callbacks. Does this mean, that either before or after this patch compilation is broken? Thanks Guennadi > +{ > + struct pxa_camera_dev *pcdev = data; > + > + pxa_camera_dma_irq(pcdev, DMA_Y); > +} > + > +static void pxa_camera_dma_irq_u(void *data) > +{ > + struct pxa_camera_dev *pcdev = data; > + > + pxa_camera_dma_irq(pcdev, DMA_U); > +} > + > +static void pxa_camera_dma_irq_v(void *data) > +{ > + struct pxa_camera_dev *pcdev = data; > + > + pxa_camera_dma_irq(pcdev, DMA_V); > } > > /** > @@ -810,24 +832,6 @@ out: > spin_unlock_irqrestore(&pcdev->lock, flags); > } > > -static void pxa_camera_dma_irq_y(int channel, void *data) > -{ > - struct pxa_camera_dev *pcdev = data; > - pxa_camera_dma_irq(channel, pcdev, DMA_Y); > -} > - > -static void pxa_camera_dma_irq_u(int channel, void *data) > -{ > - struct pxa_camera_dev *pcdev = data; > - pxa_camera_dma_irq(channel, pcdev, DMA_U); > -} > - > -static void pxa_camera_dma_irq_v(int channel, void *data) > -{ > - struct pxa_camera_dev *pcdev = data; > - pxa_camera_dma_irq(channel, pcdev, DMA_V); > -} > - > static struct videobuf_queue_ops pxa_videobuf_ops = { > .buf_setup = pxa_videobuf_setup, > .buf_prepare = pxa_videobuf_prepare, > -- > 2.1.4 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in Please read the FAQ at http://www.tux.org/lkml/