From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lee Jones Subject: Re: [RFC 12/23] mfd: omap-usb-tll: raw read and write endian fix Date: Mon, 18 Nov 2013 10:35:59 +0000 Message-ID: <20131118103559.GE13640@lee--X1> References: <1384560086-11994-1-git-send-email-taras.kondratiuk@linaro.org> <1384560086-11994-13-git-send-email-taras.kondratiuk@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <1384560086-11994-13-git-send-email-taras.kondratiuk@linaro.org> Sender: linux-kernel-owner@vger.kernel.org To: Taras Kondratiuk Cc: linux-omap@vger.kernel.org, linaro-networking@linaro.org, Victor Kamensky , Samuel Ortiz , linux-kernel@vger.kernel.org List-Id: linux-omap@vger.kernel.org On Sat, 16 Nov 2013, Taras Kondratiuk wrote: > From: Victor Kamensky >=20 > 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. >=20 > Changes are trivial sed like replacement of __raw_xxx functions > with xxx_relaxed variant. >=20 > Signed-off-by: Victor Kamensky > Signed-off-by: Taras Kondratiuk > --- > drivers/mfd/omap-usb-tll.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) Applied, thanks. --=20 Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org =E2=94=82 Open source software for ARM SoCs =46ollow Linaro: Facebook | Twitter | Blog