Re: [PATCH] powerpc: enable access to HT Host-Bridge on Maple

2011-07-07 Thread Benjamin Herrenschmidt
On Fri, 2011-07-01 at 18:44 +0200, Segher Boessenkool wrote: > > CPC925/CPC945 use special window to access host bridge > > functionality of > > u3-ht. Provide a way to access this device. > > Why? Is anything going to use it? > > > +static int u3_ht_root_read_config(struct pci_controller *hos

Re: [PATCH] powerpc: enable access to HT Host-Bridge on Maple

2011-07-04 Thread Dmitry Eremin-Solenikov
Hello, On 03.07.2011 01:50, Segher Boessenkool wrote: +static int u3_ht_root_write_config(struct pci_controller *hose, u8 offset, + int len, u32 val) +{ + volatile void __iomem *addr; + + addr = hose->cfg_addr + ((offset & ~3) << 2) + (4 - len - (offset & 3)); + + if (offset >= PCI_BASE_ADDRESS_

Re: [PATCH] powerpc: enable access to HT Host-Bridge on Maple

2011-07-03 Thread Dmitry Eremin-Solenikov
On 7/3/11, Segher Boessenkool wrote: CPC925/CPC945 use special window to access host bridge functionality of u3-ht. Provide a way to access this device. >>> >>> Why? Is anything going to use it? >> >> Hmmm. Why not? > > Because if nothing uses it it is essentially dead code. 1) It

Re: [PATCH] powerpc: enable access to HT Host-Bridge on Maple

2011-07-02 Thread Segher Boessenkool
CPC925/CPC945 use special window to access host bridge functionality of u3-ht. Provide a way to access this device. Why? Is anything going to use it? Hmmm. Why not? Because if nothing uses it it is essentially dead code. Initially I stumbled upon the fact that powermac provides such acces

Re: [PATCH] powerpc: enable access to HT Host-Bridge on Maple

2011-07-01 Thread Dmitry Eremin-Solenikov
Hello, Thanks for the review. On 7/1/11, Segher Boessenkool wrote: >> CPC925/CPC945 use special window to access host bridge >> functionality of >> u3-ht. Provide a way to access this device. > > Why? Is anything going to use it? Hmmm. Why not? Initially I stumbled upon the fact that powermac

Re: [PATCH] powerpc: enable access to HT Host-Bridge on Maple

2011-07-01 Thread Segher Boessenkool
CPC925/CPC945 use special window to access host bridge functionality of u3-ht. Provide a way to access this device. Why? Is anything going to use it? +static int u3_ht_root_read_config(struct pci_controller *hose, u8 offset, + int len, u32 *val) +{ +

[PATCH] powerpc: enable access to HT Host-Bridge on Maple

2011-06-29 Thread Dmitry Eremin-Solenikov
CPC925/CPC945 use special window to access host bridge functionality of u3-ht. Provide a way to access this device. Signed-off-by: Dmitry Eremin-Solenikov --- arch/powerpc/platforms/maple/pci.c | 55 1 files changed, 55 insertions(+), 0 deletions(-) diff -