From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752431Ab3A2WHE (ORCPT ); Tue, 29 Jan 2013 17:07:04 -0500 Received: from mail.kernel.org ([198.145.19.201]:59383 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752131Ab3A2WHB (ORCPT ); Tue, 29 Jan 2013 17:07:01 -0500 Date: Tue, 29 Jan 2013 14:08:48 -0800 From: Greg KH To: Russell King - ARM Linux Cc: Alan Stern , Roger Quadros , tony@atomide.com, sameo@linux.intel.com, balbi@ti.com, eballetbo@gmail.com, javier@dowhile0.org, sshtylyov@mvista.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 09/30] USB: ehci-omap: Use devm_request_and_ioremap() Message-ID: <20130129220848.GA11524@kroah.com> References: <20130128152010.GN23505@n2100.arm.linux.org.uk> <20130129160134.GC23505@n2100.arm.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130129160134.GC23505@n2100.arm.linux.org.uk> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 29, 2013 at 04:01:34PM +0000, Russell King - ARM Linux wrote: > On Tue, Jan 29, 2013 at 10:34:53AM -0500, Alan Stern wrote: > > On Mon, 28 Jan 2013, Russell King - ARM Linux wrote: > > > > > On Mon, Jan 28, 2013 at 10:17:33AM -0500, Alan Stern wrote: > > > > On Mon, 28 Jan 2013, Roger Quadros wrote: > > > > > > > > > Make use of devm_request_and_ioremap() and correct comment. > > > > > > > > Didn't a big patch come through recently converting all usages of > > > > devm_request_and_ioremap() to another function (I forget the name) that > > > > does its own error reporting and returns an ERR_PTR value? > > > > > > > > (Checks the mailing list archive...) Ah, here it is: > > > > > > > > http://marc.info/?l=linux-usb&m=135876311801537&w=2 > > > > > > > > And the new function is devm_ioremap_resource(). We should avoid > > > > adding new usages of an old interface. > > > > > > Maybe... if devm_ioremap_resource() was already in the kernel. The > > > problem at the moment is it isn't, and it'll probably be rather > > > horrid for everyone to deal with especially when it comes to testing. > > > > Not in the kernel yet? I didn't realize that. Looks like Thierry > > Reding will have some clean-up work to do when it does get in. > > It may be in linux-next, but it isn't in Linus' yet... (of course, it's > probably scheduled for the upcoming merge window). Certainly: > > $ grep -r devm_ioremap_resource include > > against Linus' tree (6abb7c2) still turns up nothing. It's in my driver-core-next tree and will be going to Linus for 3.9-rc1. thanks, greg k-h