From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752391Ab3KSSVk (ORCPT ); Tue, 19 Nov 2013 13:21:40 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:34739 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752103Ab3KSSVi (ORCPT ); Tue, 19 Nov 2013 13:21:38 -0500 Message-ID: <528BAC2E.4020601@ti.com> Date: Tue, 19 Nov 2013 13:21:34 -0500 From: Santosh Shilimkar User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Taras Kondratiuk CC: , , Victor Kamensky , Kevin Hilman , Linus Walleij , , Subject: Re: [RFC 01/23] gpio/omap: raw read and write endian fix References: <1384560086-11994-1-git-send-email-taras.kondratiuk@linaro.org> <1384560086-11994-2-git-send-email-taras.kondratiuk@linaro.org> In-Reply-To: <1384560086-11994-2-git-send-email-taras.kondratiuk@linaro.org> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Friday 15 November 2013 07:01 PM, Taras Kondratiuk wrote: > From: Victor Kamensky > > All OMAP IP blocks expect LE data, but CPU may operate in BE mode. > Need to use endian neutral functions to read/write h/w registers. > I.e instead of __raw_read[lw] and __raw_write[lw] functions code > need to use read[lw]_relaxed and write[lw]_relaxed functions. > If the first simply reads/writes register, the second will byteswap > it if host operates in BE mode. > > Changes are trivial sed like replacement of __raw_xxx functions > with xxx_relaxed variant. > > Signed-off-by: Victor Kamensky > Signed-off-by: Taras Kondratiuk > --- Acked-by: Santosh Shilimkar