[ewg] Re: [PATCH 2/14] nes: device structures and defines
    Michael Buesch 
    mb at bu3sch.de
       
    Wed Aug  8 09:30:19 PDT 2007
    
    
  
On Wednesday 08 August 2007 18:18:31 Roland Dreier wrote:
>  > But there are indeed a few cases that look wrong.
> 
> yes...
> 
>  > arch/x86_64/kernel/pci-calgary.c:       writel(cpu_to_be32(val), target);
> 
> eg this almost certainly wants to be
> 
> 	writel(swab32(val), target);
> 
> or something equivalent like
> 
> 	__raw_writel(cpu_to_be32(val), target);
> 	/* plus some suffficent memory ordering */
> 
>  - R.
> 
> 
certainly, yes.
Most likely the __raw_writel variant is portable, but I am not
sure. Anybody sure?
-- 
Greetings Michael.
    
    
More information about the ewg
mailing list