From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp-out-233.synserver.de (smtp-out-233.synserver.de [212.40.185.233]) by ozlabs.org (Postfix) with ESMTP id 5AB132C00B1 for ; Fri, 18 Oct 2013 00:49:50 +1100 (EST) Message-ID: <525FEB7A.5040406@metafoo.de> Date: Thu, 17 Oct 2013 15:51:54 +0200 From: Lars-Peter Clausen MIME-Version: 1.0 To: Timur Tabi Subject: Re: [alsa-devel] [PATCHv1 1/8] ALSA: Add SAI SoC Digital Audio Interface driver. References: <1382000477-17304-1-git-send-email-Li.Xiubo@freescale.com> <1382000477-17304-2-git-send-email-Li.Xiubo@freescale.com> <525FD4C7.3050806@tabi.org> <525FD65B.3040004@metafoo.de> <525FE48B.7020709@tabi.org> <525FE728.90403@metafoo.de> <525FE815.1040300@tabi.org> In-Reply-To: <525FE815.1040300@tabi.org> Content-Type: text/plain; charset=ISO-8859-1 Cc: mark.rutland@arm.com, alsa-devel@alsa-project.org, linux-doc@vger.kernel.org, tiwai@suse.de, b18965@freescale.com, linux-kernel@vger.kernel.org, r65073@freescale.com, LW@KARO-electronics.de, linux@arm.linux.org.uk, b42378@freescale.com, Xiubo Li , oskar@scara.com, grant.likely@linaro.org, devicetree@vger.kernel.org, ian.campbell@citrix.com, pawel.moll@arm.com, swarren@wwwdotorg.org, rob.herring@calxeda.com, broonie@kernel.org, linux-arm-kernel@lists.infradead.org, fabio.estevam@freescale.com, lgirdwood@gmail.com, rob@landley.net, r64188@freescale.com, shawn.guo@linaro.org, linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 10/17/2013 03:37 PM, Timur Tabi wrote: > Lars-Peter Clausen wrote: >>> >Maybe I've been out of the loop for too long, but why is that a particular >>> >problem with this driver? > >> It is usually something you'd want to check in general to make sure that you >> don't have multiple device that access the same iomem region at the same >> time. > > I understand that, but I'm trying to figure out why of_iomap() is okay for > hundreds of other drivers, but not this one. I've used it dozens of times > myself, without ever worrying about overlapping regions. The driver would work fine with just of_iomap(). But the resource range check comes basically for free and it does help to catch errors, so I'd recommend on using it rather than not using it. - Lars