From: Wolfgang Denk Date: Thu, 28 Apr 2011 00:56:28 +0200 Subject: [U-Boot] [PATCH] [v2] powerpc: fix implementation of out_8 to match the other out_XX functions In-Reply-To: <1301952064-1418-1-git-send-email-timur@freescale.com> References: <1301952064-1418-1-git-send-email-timur@freescale.com> Message-ID: <20110427225628.12B9FD52707@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Timur Tabi, In message <1301952064-1418-1-git-send-email-timur@freescale.com> you wrote: > For some reason, the implementation of out_8() does not match the other > output accessors, nor does it match equivalent Linux accessor. This can > cause a problem in a situation like this: > > __raw_readb(p1); > out_8(p2, x); > > In this case, there is no barrier between the read and the write. > If the out_8() is changed to out_be16(), then there is a barrier. > > Signed-off-by: Timur Tabi > --- > arch/powerpc/include/asm/io.h | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You don't need a weatherman to know which way the wind blows. - Bob Dylan