]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Perform proper max_bus_speed detection
authorKleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Fri, 3 May 2013 12:43:12 +0000 (12:43 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 5 May 2013 23:25:38 +0000 (09:25 +1000)
commitbc3c8802fc6037c2a06e21fad08816c3175b1628
tree29a92372ff460db1008565aa027a7fc60f2277e9
parenta83b89631f10aae0847dc38d8590b4021b5e4b13
powerpc/pseries: Perform proper max_bus_speed detection

On pseries machines the detection for max_bus_speed should be done
through an OpenFirmware property. This patch adds a function to perform
this detection and a hook to perform dynamic adding of the function only
for pseries. This is done by overwriting the weak
pcibios_root_bridge_prepare function which is called by
pci_create_root_bus().

From: Lucas Kannebley Tavares <lucaskt@linux.vnet.ibm.com>
Signed-off-by: Kleber Sacilotto de Souza <klebers@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/machdep.h
arch/powerpc/kernel/pci-common.c
arch/powerpc/platforms/pseries/pci.c
arch/powerpc/platforms/pseries/pseries.h
arch/powerpc/platforms/pseries/setup.c