From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751598Ab3KRKgI (ORCPT ); Mon, 18 Nov 2013 05:36:08 -0500 Received: from mail-oa0-f50.google.com ([209.85.219.50]:44903 "EHLO mail-oa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751141Ab3KRKgE (ORCPT ); Mon, 18 Nov 2013 05:36:04 -0500 Date: Mon, 18 Nov 2013 10:35:59 +0000 From: Lee Jones To: Taras Kondratiuk Cc: linux-omap@vger.kernel.org, linaro-networking@linaro.org, Victor Kamensky , Samuel Ortiz , linux-kernel@vger.kernel.org Subject: Re: [RFC 12/23] mfd: omap-usb-tll: raw read and write endian fix 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1384560086-11994-13-git-send-email-taras.kondratiuk@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 16 Nov 2013, 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 > --- > drivers/mfd/omap-usb-tll.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) Applied, thanks. -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog