From: Ian Campbell Subject: Re: [PATCH RFC 3/8] ns16550: make usable on ARM Date: Tue, 10 Sep 2013 16:21:41 +0100 Message-ID: <1378826501.10928.27.camel@kazak.uk.xensource.com> References: <1378822681.10928.8.camel@kazak.uk.xensource.com> <1378822705-19310-3-git-send-email-ian.campbell@citrix.com> <522F504202000078000F2061@nat28.tlf.novell.com> <1378825911.10928.21.camel@kazak.uk.xensource.com> <522F546802000078000F20DD@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VJPlY-00076r-Vp for xen-devel@lists.xenproject.org; Tue, 10 Sep 2013 15:22:09 +0000 In-Reply-To: <522F546802000078000F20DD@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: keir@xen.org, stefano.stabellini@eu.citrix.com, julien.grall@linaro.org, tim@xen.org, Josh Zhao , xen-devel List-Id: xen-devel@lists.xenproject.org On Tue, 2013-09-10 at 16:18 +0100, Jan Beulich wrote: > >>> On 10.09.13 at 17:11, Ian Campbell wrote: > > On Tue, 2013-09-10 at 16:00 +0100, Jan Beulich wrote: > >> >>> On 10.09.13 at 16:18, Ian Campbell wrote: > >> > + case 1: > >> > + return readb(addr); > >> > + case 4: > >> > + return readl(addr); > >> > >> This won't work without changing the return type of the function. > >> Or is this just mandating the access width, without the upper 24 > >> bits carrying meaningful data? > > > > The latter, the registers are still 8 bytes, it's just the accesses. > > Maybe I should mask. > > No need to as long as the function return type is only 8 bits anyway. True. I think it is worth at least a comment, I'll add one. Ian.