From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756434Ab1KNVBi (ORCPT ); Mon, 14 Nov 2011 16:01:38 -0500 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:37919 "EHLO mho-02-ewr.mailhop.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756385Ab1KNVBh (ORCPT ); Mon, 14 Nov 2011 16:01:37 -0500 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 98.234.237.12 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/mailhop/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1+i1ZyUvsW65OO253qTxkYt Date: Mon, 14 Nov 2011 13:01:35 -0800 From: Tony Lindgren To: Laurent Pinchart Cc: Ohad Ben-Cohen , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Hiroshi DOYU , Joerg Roedel , iommu@lists.linux-foundation.org, Arnd Bergmann , linux-kernel@vger.kernel.org, Cousson Benoit , Kevin Hilman , Grant Likely Subject: Re: [RFC 4/5] ARM: OMAP3: bind omap3isp_device to its iommu device Message-ID: <20111114210134.GN31337@atomide.com> References: <1316948337-7924-1-git-send-email-ohad@wizery.com> <1316948337-7924-5-git-send-email-ohad@wizery.com> <201111091017.18860.laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201111091017.18860.laurent.pinchart@ideasonboard.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Laurent Pinchart [111109 00:42]: > Hi Ohad, > > On Sunday 25 September 2011 12:58:56 Ohad Ben-Cohen wrote: > > Bind OMAP3's isp device to the isp's dedicated iommu, by setting > > the device's archdata iommu member. > > > > This way omap3isp will be able to use the generic IOMMU API without > > having to call any omap-specific binding method. > > > > Signed-off-by: Ohad Ben-Cohen > > Cc: Tony Lindgren > > Cc: Laurent Pinchart > > Acked-by: Laurent Pinchart Acked-by: Tony Lindgren > > --- > > arch/arm/mach-omap2/devices.c | 7 +++++++ > > 1 files changed, 7 insertions(+), 0 deletions(-) > > > > diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c > > index 1077ad6..44122f7 100644 > > --- a/arch/arm/mach-omap2/devices.c > > +++ b/arch/arm/mach-omap2/devices.c > > @@ -28,6 +28,7 @@ > > #include > > #include > > #include > > +#include > > #include > > #include > > #include > > @@ -207,9 +208,15 @@ static struct platform_device omap3isp_device = { > > .resource = omap3isp_resources, > > }; > > > > +static struct omap_iommu_arch_data omap3_isp_iommu = { > > + .name = "isp", > > +}; > > + > > int omap3_init_camera(struct isp_platform_data *pdata) > > { > > omap3isp_device.dev.platform_data = pdata; > > + omap3isp_device.dev.archdata.iommu = &omap3_isp_iommu; > > + > > return platform_device_register(&omap3isp_device); > > } > > -- > Regards, > > Laurent Pinchart From mboxrd@z Thu Jan 1 00:00:00 1970 From: tony@atomide.com (Tony Lindgren) Date: Mon, 14 Nov 2011 13:01:35 -0800 Subject: [RFC 4/5] ARM: OMAP3: bind omap3isp_device to its iommu device In-Reply-To: <201111091017.18860.laurent.pinchart@ideasonboard.com> References: <1316948337-7924-1-git-send-email-ohad@wizery.com> <1316948337-7924-5-git-send-email-ohad@wizery.com> <201111091017.18860.laurent.pinchart@ideasonboard.com> Message-ID: <20111114210134.GN31337@atomide.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org * Laurent Pinchart [111109 00:42]: > Hi Ohad, > > On Sunday 25 September 2011 12:58:56 Ohad Ben-Cohen wrote: > > Bind OMAP3's isp device to the isp's dedicated iommu, by setting > > the device's archdata iommu member. > > > > This way omap3isp will be able to use the generic IOMMU API without > > having to call any omap-specific binding method. > > > > Signed-off-by: Ohad Ben-Cohen > > Cc: Tony Lindgren > > Cc: Laurent Pinchart > > Acked-by: Laurent Pinchart Acked-by: Tony Lindgren > > --- > > arch/arm/mach-omap2/devices.c | 7 +++++++ > > 1 files changed, 7 insertions(+), 0 deletions(-) > > > > diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c > > index 1077ad6..44122f7 100644 > > --- a/arch/arm/mach-omap2/devices.c > > +++ b/arch/arm/mach-omap2/devices.c > > @@ -28,6 +28,7 @@ > > #include > > #include > > #include > > +#include > > #include > > #include > > #include > > @@ -207,9 +208,15 @@ static struct platform_device omap3isp_device = { > > .resource = omap3isp_resources, > > }; > > > > +static struct omap_iommu_arch_data omap3_isp_iommu = { > > + .name = "isp", > > +}; > > + > > int omap3_init_camera(struct isp_platform_data *pdata) > > { > > omap3isp_device.dev.platform_data = pdata; > > + omap3isp_device.dev.archdata.iommu = &omap3_isp_iommu; > > + > > return platform_device_register(&omap3isp_device); > > } > > -- > Regards, > > Laurent Pinchart