From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ale.deltatee.com (ale.deltatee.com [207.54.116.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wxMYR4dDyzDr13 for ; Tue, 27 Jun 2017 07:26:03 +1000 (AEST) To: Arnd Bergmann References: <20170622164817.25515-1-logang@deltatee.com> <20170622164817.25515-3-logang@deltatee.com> Cc: Linux Kernel Mailing List , linux-arch , linux-ntb@googlegroups.com, linux-alpha@vger.kernel.org, linuxppc-dev , linux-crypto@vger.kernel.org, dri-devel , Greg Kroah-Hartman , Stephen Bates , Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Suresh Warrier , Nicholas Piggin From: Logan Gunthorpe Message-ID: <0746dbb0-9fc1-d24c-89c0-b079a3cd0c7b@deltatee.com> Date: Mon, 26 Jun 2017 15:25:41 -0600 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Subject: Re: [PATCH 2/7] iomap: implement ioread64 and iowrite64 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 6/26/2017 2:43 PM, Arnd Bergmann wrote: > This hardcodes the behavior of include/linux/io-64-nonatomic-hi-lo.h, which > I find rather confusing, as only about one in five drivers wants this > behavior. > > I'd suggest you don't add it in lib/iomap.c at all for 32-bit architectures, > but rather use the same logic that we have for readq/writeq in > io-64-nonatomic-hi-lo.h and io-64-nonatomic-lo-hi.h, adding > {lo_hi,hi_lo}_{ioread,iowrite}{,be} to the same files, and provide > the {ioread,iowrite}{,be} macros only if they have not been defined > at that point. Thanks Arnd. Yes, I'm already reworking this patchset to do exactly that. Logan