Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3650702ybg; Mon, 28 Oct 2019 16:36:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVT0gCEnwyZqYADh8xLFJnkpkdS5zH4aHXXT6OnTZydcx9Ong/GkXoA+O2dCiARYoJO6hU X-Received: by 2002:a17:906:8155:: with SMTP id z21mr479201ejw.180.1572305799362; Mon, 28 Oct 2019 16:36:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572305799; cv=none; d=google.com; s=arc-20160816; b=QbA78GA1zSsJLOj8OGaI8Fm4oQg6IM8UBHonFcXkSfL0KzOIztRNZ5mDIVfb3z4R06 q6LeUW4IuFusPM+oBgClHkWNH0uS2+XXYhbk+K9UgX4jW2kRKUdh84EaaEqP9MQ0DzO7 I61LHwrhu94gC/dCw0qUrx5LH4Bq1PNegyyPCP37HmtR7m9+FMS4sCp4RTpThQDktRgL sjzvDZwZhQkBGd0hskYe4TNGsPygcJ/0SJLxjBEOV3R7pag3UVAvWzF/2LHrfL7uGMJS zceKWW7qVzLLgIzj19A3M8EKUM0UOVjofEe+CNwrzDJCwB0L4Dbm6iaF7uKYPR53lva+ PyZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=xRA+ZayUEB5Ai9t3FclnQgm7EE0p3dxkTXlo258aMFw=; b=ttyTFWuG6htPR1naoF5YjE8nb9LIqJqNMRXTOBYDIKQLh6FcYgQd1fNJlsId8o4PNF dcE9yPmnWTL0EM4RBzYpuCaColsISjsmVg4pn+SDZwK8uB1x1316Hi3WdD+GFCQ+jYuO y4G2Wu00LdjH3KBVIfA3dFkD5zraufKPEBcw5AHhJWgGFQ3pyz5M43AEoJ7RUCHMZuQ+ MIokvbORmSHtH+Q4v4HZ/mxOypdXs2lNI+dxU7jOLi4speeMw+QHmgEdTf+CA2D+iMii Jx0ijyAMlWC8j6wIdOd2IETENZOJhMPI1QYBdWK7r7apH8Ut2UkLnZ2IbjaGTpuUFbm5 nWMg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h4si8750843edd.189.2019.10.28.16.36.16; Mon, 28 Oct 2019 16:36:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730990AbfJ1Vur (ORCPT + 99 others); Mon, 28 Oct 2019 17:50:47 -0400 Received: from smtp09.smtpout.orange.fr ([80.12.242.131]:55922 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729738AbfJ1Vur (ORCPT ); Mon, 28 Oct 2019 17:50:47 -0400 Received: from belgarion ([90.55.204.252]) by mwinf5d17 with ME id K9qk2100a5TFNlm039qlNT; Mon, 28 Oct 2019 22:50:45 +0100 X-ME-Helo: belgarion X-ME-Auth: amFyem1pay5yb2JlcnRAb3JhbmdlLmZy X-ME-Date: Mon, 28 Oct 2019 22:50:45 +0100 X-ME-IP: 90.55.204.252 From: Robert Jarzmik To: Arnd Bergmann Cc: Daniel Mack , Haojian Zhuang , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Linus Walleij , Mark Brown , alsa-devel@alsa-project.org Subject: Re: [PATCH 32/46] ASoC: pxa: i2s: use normal MMIO accessors References: <20191018154052.1276506-1-arnd@arndb.de> <20191018154201.1276638-32-arnd@arndb.de> X-URL: http://belgarath.falguerolles.org/ Date: Mon, 28 Oct 2019 22:50:44 +0100 In-Reply-To: <20191018154201.1276638-32-arnd@arndb.de> (Arnd Bergmann's message of "Fri, 18 Oct 2019 17:41:47 +0200") Message-ID: <87h83sk097.fsf@belgarion.home> User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/26 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Arnd Bergmann writes: > To avoid dereferencing hardwired constant pointers from a global header > file, change the driver to use devm_platform_ioremap_resource for getting > an __iomem pointer, and then using readl/writel on that. > > Each pointer dereference gets changed by a search&replace, which leads > to a few overlong lines, but seems less risky than trying to clean up > the code at the same time. > > Cc: Mark Brown > Cc: alsa-devel@alsa-project.org > Signed-off-by: Arnd Bergmann Acked-by: Robert Jarzmik Cheers. -- Robert