Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752002AbdFZV0I (ORCPT ); Mon, 26 Jun 2017 17:26:08 -0400 Received: from ale.deltatee.com ([207.54.116.67]:39376 "EHLO ale.deltatee.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751381AbdFZV0F (ORCPT ); Mon, 26 Jun 2017 17:26:05 -0400 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 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 172.16.1.111 X-SA-Exim-Rcpt-To: npiggin@gmail.com, warrier@linux.vnet.ibm.com, mpe@ellerman.id.au, paulus@samba.org, benh@kernel.crashing.org, sbates@raithlin.com, gregkh@linuxfoundation.org, dri-devel@lists.freedesktop.org, linux-crypto@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-alpha@vger.kernel.org, linux-ntb@googlegroups.com, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de X-SA-Exim-Mail-From: logang@deltatee.com Subject: Re: [PATCH 2/7] iomap: implement ioread64 and iowrite64 X-SA-Exim-Version: 4.2.1 (built Mon, 26 Dec 2011 16:24:06 +0000) X-SA-Exim-Scanned: Yes (on ale.deltatee.com) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 651 Lines: 15 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