From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: Query on I/O accessors used by Xilinx SystemACE Driver Date: Tue, 22 Jan 2013 09:09:30 +1100 Message-ID: <1358806170.6868.0.camel@pasglop> References: <50FD40B3.804@synopsys.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Return-path: Received: from gate.crashing.org ([63.228.1.57]:51479 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751287Ab3AUWJy (ORCPT ); Mon, 21 Jan 2013 17:09:54 -0500 In-Reply-To: <50FD40B3.804@synopsys.com> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Vineet Gupta Cc: Grant Likely , Alexey Brodkin , "linux-arch@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Michal Simek , Geert Uytterhoeven On Mon, 2013-01-21 at 18:50 +0530, Vineet Gupta wrote: > I'm not an expert in that driver or the specific needs of those accessors on > respective arches, but was wondering, if it would be possible to convert the > driver to use the vanilla IO accessors (read{b,w,l}. Microblaze at least, seem to > be defining them as straight wrappers over the standard raw accessors. > > Ben, Geert could you please comment ? If your HW is little-endian, then by all means use the standard accessors, either readb,w,l or the iomap.h ones (ioread*) Cheers, Ben.