Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757375Ab1CBULZ (ORCPT ); Wed, 2 Mar 2011 15:11:25 -0500 Received: from www.hansjkoch.de ([178.63.77.200]:57540 "EHLO www.hansjkoch.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755982Ab1CBULY (ORCPT ); Wed, 2 Mar 2011 15:11:24 -0500 Date: Wed, 2 Mar 2011 21:09:56 +0100 From: "Hans J. Koch" To: Pratheesh Gangadhar Cc: linux-kernel@vger.kernel.org, hjk@hansjkoch.de, gregkh@suse.de, tglx@linutronix.de, sshtylyov@mvista.com, arnd@arndb.de, amit.chatterjee@ti.com, davinci-linux-open-source@linux.davincidsp.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v8 1/1] PRUSS UIO driver support Message-ID: <20110302200956.GB23818@local> References: <1299065886-30099-1-git-send-email-pratheesh@ti.com> <1299065886-30099-2-git-send-email-pratheesh@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1299065886-30099-2-git-send-email-pratheesh@ti.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 Content-Length: 1872 Lines: 44 On Wed, Mar 02, 2011 at 05:08:06PM +0530, Pratheesh Gangadhar wrote: > This patch implements PRUSS (Programmable Real-time Unit Sub System) > UIO driver which exports SOC resources associated with PRUSS like > I/O, memories and IRQs to user space. PRUSS is dual 32-bit RISC > processors which is efficient in performing embedded tasks that > require manipulation of packed memory mapped data structures and > handling system events that have tight real time constraints. This > driver is currently supported on Texas Instruments DA850, AM18xx and > OMAP-L138 devices. > For example, PRUSS runs firmware for real-time critical industrial > communication data link layer and communicates with application stack > running in user space via shared memory and IRQs. > > Signed-off-by: Pratheesh Gangadhar > Reviewed-by: Thomas Gleixner > --- > drivers/uio/Kconfig | 17 ++++ > drivers/uio/Makefile | 1 + > drivers/uio/uio_pruss.c | 226 +++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 244 insertions(+), 0 deletions(-) > create mode 100644 drivers/uio/uio_pruss.c That looks good now, I don't see any further issues. But you should address Arnd's comment about that __iomem stuff. It's a bit nit-picking, but he's right, ioremap() returns void __iomem *, and uio_mem.internal_addr also has that type. > +static struct uio_info *info; > +static dma_addr_t sram_paddr, ddr_paddr; > +static void *prussio_vaddr, *sram_vaddr, *ddr_vaddr; So the correct thing would be static void __iomem *prussio_vaddr; static void *sram_vaddr, *ddr_vaddr; Thanks, Hans -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/