From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Walmsley Subject: RE: how to specify dma_mask and coherent_dma_mask in hwmod Date: Thu, 28 Jun 2012 09:52:54 -0600 (MDT) Message-ID: References: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: Received: from utopia.booyaka.com ([72.9.107.138]:36430 "EHLO utopia.booyaka.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753220Ab2F1Pwz (ORCPT ); Thu, 28 Jun 2012 11:52:55 -0400 In-Reply-To: Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: "N, Mugunthan V" Cc: "Bedia, Vaibhav" , "linux-omap@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "Cousson, Benoit" , "Hilman, Kevin" Hi On Thu, 28 Jun 2012, Bedia, Vaibhav wrote: > On Wed, Jun 27, 2012 at 11:11:32, N, Mugunthan V wrote: > > > -----Original Message----- > > > From: N, Mugunthan V > > > Sent: Thursday, June 07, 2012 9:52 PM > > > To: 'linux-omap@vger.kernel.org' > > > Cc: 'linux-arm-kernel@lists.infradead.org' > > > Subject: how to specify dma_mask and coherent_dma_mask in hwmod > > > > > > While converting platform device registry to Hwmod for CPSW Ethernet > > > driver which is present in AM335X (OMAP2+), I am not finding a way to > > > specify > > > dma_mask and coherent_dma_mask. > > > Is there a way to specify dma_mask and coherent_dma_mask in hwmod? > > > > Ping, any one has comment on this? > > Right now there's no way of doing this in hwmod. But is omap_hwmod > the right place for this? It would help if you could describe why > the hwmod conversion is causing trouble for you. dma_mask and coherent_dma_mask can be specified during device creation. See usb_musb_init() in arch/arm/mach-omap2/usb-musb.c for an example. I take it that you're just planning to set both of those to 0xffffffff? - Paul From mboxrd@z Thu Jan 1 00:00:00 1970 From: paul@pwsan.com (Paul Walmsley) Date: Thu, 28 Jun 2012 09:52:54 -0600 (MDT) Subject: how to specify dma_mask and coherent_dma_mask in hwmod In-Reply-To: References: Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi On Thu, 28 Jun 2012, Bedia, Vaibhav wrote: > On Wed, Jun 27, 2012 at 11:11:32, N, Mugunthan V wrote: > > > -----Original Message----- > > > From: N, Mugunthan V > > > Sent: Thursday, June 07, 2012 9:52 PM > > > To: 'linux-omap at vger.kernel.org' > > > Cc: 'linux-arm-kernel at lists.infradead.org' > > > Subject: how to specify dma_mask and coherent_dma_mask in hwmod > > > > > > While converting platform device registry to Hwmod for CPSW Ethernet > > > driver which is present in AM335X (OMAP2+), I am not finding a way to > > > specify > > > dma_mask and coherent_dma_mask. > > > Is there a way to specify dma_mask and coherent_dma_mask in hwmod? > > > > Ping, any one has comment on this? > > Right now there's no way of doing this in hwmod. But is omap_hwmod > the right place for this? It would help if you could describe why > the hwmod conversion is causing trouble for you. dma_mask and coherent_dma_mask can be specified during device creation. See usb_musb_init() in arch/arm/mach-omap2/usb-musb.c for an example. I take it that you're just planning to set both of those to 0xffffffff? - Paul