From: "Jan Beulich" Subject: Re: [PATCH RFC 3/8] ns16550: make usable on ARM Date: Tue, 10 Sep 2013 16:18:32 +0100 Message-ID: <522F546802000078000F20DD@nat28.tlf.novell.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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VJPi8-0004og-P5 for xen-devel@lists.xenproject.org; Tue, 10 Sep 2013 15:18:36 +0000 In-Reply-To: <1378825911.10928.21.camel@kazak.uk.xensource.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell 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 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. Jan