From: Ian Campbell Subject: Re: [PATCH 2/8] xen/arm: replace io{read, write}{l, b} with {read, write}{l, b} Date: Fri, 20 Sep 2013 16:51:37 +0100 Message-ID: <1379692297.8994.27.camel@hastur.hellion.org.uk> References: <1379088118.19256.95.camel@kazak.uk.xensource.com> <1379088247-29325-2-git-send-email-ian.campbell@citrix.com> <52333E52.5060308@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <52333E52.5060308@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: keir@xen.org, stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org, jbeulich@suse.com, Josh Zhao List-Id: xen-devel@lists.xenproject.org On Fri, 2013-09-13 at 17:33 +0100, Julien Grall wrote: > > read/write are used in common driver code (specifically ns16550) so instead of > > keeping our own variant around lets replace it with the more standard ones. > > > > At the same time resync with Linux making the "based on" comment in both setsof > s/setsof/sets of/ > > Can you precise the linux commit for the future? It's v3.11, I've mentioned that in the updated version. > > -static inline void iowritel(const volatile void __iomem *addr, uint32_t val) > > +static inline void __raw_writeq(u64 val, volatile void __iomem *addr) > > { > > - dsb(); > > - asm volatile("str %w0, [%1]" : : "r" (val), "r" (addr)); > > + asm volatile("str %0, [%1]" : : "r" (val), "r" (addr)); > > The indentation seems wrong here and some other places. I deliberately retained the Linux style of indentation for these functions which came direct from Linux. Makes a visual check that they are the same much easier. Ian.