diff options
-rw-r--r-- | arch/mips/Kconfig | 10 | ||||
-rw-r--r-- | arch/powerpc/Kconfig | 10 | ||||
-rw-r--r-- | arch/powerpc/kernel/cpu_setup_fsl_booke.S | 2 | ||||
-rw-r--r-- | arch/powerpc/sysdev/Makefile | 2 | ||||
-rw-r--r-- | arch/x86/Kconfig | 10 | ||||
-rw-r--r-- | drivers/net/rionet.c | 4 | ||||
-rw-r--r-- | drivers/rapidio/rio-sysfs.c | 1 |
7 files changed, 34 insertions, 5 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig index 6e9811d40c9f..9905e2e85de4 100644 --- a/arch/mips/Kconfig +++ b/arch/mips/Kconfig | |||
@@ -2344,6 +2344,16 @@ source "drivers/pcmcia/Kconfig" | |||
2344 | 2344 | ||
2345 | source "drivers/pci/hotplug/Kconfig" | 2345 | source "drivers/pci/hotplug/Kconfig" |
2346 | 2346 | ||
2347 | config RAPIDIO | ||
2348 | bool "RapidIO support" | ||
2349 | depends on PCI | ||
2350 | default n | ||
2351 | help | ||
2352 | If you say Y here, the kernel will include drivers and | ||
2353 | infrastructure code to support RapidIO interconnect devices. | ||
2354 | |||
2355 | source "drivers/rapidio/Kconfig" | ||
2356 | |||
2347 | endmenu | 2357 | endmenu |
2348 | 2358 | ||
2349 | menu "Executable file formats" | 2359 | menu "Executable file formats" |
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig index ce9ff55e1026..3584e4d4a4ad 100644 --- a/arch/powerpc/Kconfig +++ b/arch/powerpc/Kconfig | |||
@@ -772,11 +772,19 @@ config HAS_RAPIDIO | |||
772 | 772 | ||
773 | config RAPIDIO | 773 | config RAPIDIO |
774 | bool "RapidIO support" | 774 | bool "RapidIO support" |
775 | depends on HAS_RAPIDIO | 775 | depends on HAS_RAPIDIO || PCI |
776 | help | 776 | help |
777 | If you say Y here, the kernel will include drivers and | 777 | If you say Y here, the kernel will include drivers and |
778 | infrastructure code to support RapidIO interconnect devices. | 778 | infrastructure code to support RapidIO interconnect devices. |
779 | 779 | ||
780 | config FSL_RIO | ||
781 | bool "Freescale Embedded SRIO Controller support" | ||
782 | depends on RAPIDIO && HAS_RAPIDIO | ||
783 | default "n" | ||
784 | ---help--- | ||
785 | Include support for RapidIO controller on Freescale embedded | ||
786 | processors (MPC8548, MPC8641, etc). | ||
787 | |||
780 | source "drivers/rapidio/Kconfig" | 788 | source "drivers/rapidio/Kconfig" |
781 | 789 | ||
782 | endmenu | 790 | endmenu |
diff --git a/arch/powerpc/kernel/cpu_setup_fsl_booke.S b/arch/powerpc/kernel/cpu_setup_fsl_booke.S index 5c518ad3445c..913611105c1f 100644 --- a/arch/powerpc/kernel/cpu_setup_fsl_booke.S +++ b/arch/powerpc/kernel/cpu_setup_fsl_booke.S | |||
@@ -64,7 +64,7 @@ _GLOBAL(__setup_cpu_e500v2) | |||
64 | bl __e500_icache_setup | 64 | bl __e500_icache_setup |
65 | bl __e500_dcache_setup | 65 | bl __e500_dcache_setup |
66 | bl __setup_e500_ivors | 66 | bl __setup_e500_ivors |
67 | #ifdef CONFIG_RAPIDIO | 67 | #ifdef CONFIG_FSL_RIO |
68 | /* Ensure that RFXE is set */ | 68 | /* Ensure that RFXE is set */ |
69 | mfspr r3,SPRN_HID1 | 69 | mfspr r3,SPRN_HID1 |
70 | oris r3,r3,HID1_RFXE@h | 70 | oris r3,r3,HID1_RFXE@h |
diff --git a/arch/powerpc/sysdev/Makefile b/arch/powerpc/sysdev/Makefile index 9c2973479142..1e0c933ef772 100644 --- a/arch/powerpc/sysdev/Makefile +++ b/arch/powerpc/sysdev/Makefile | |||
@@ -20,7 +20,7 @@ obj-$(CONFIG_FSL_GTM) += fsl_gtm.o | |||
20 | obj-$(CONFIG_MPC8xxx_GPIO) += mpc8xxx_gpio.o | 20 | obj-$(CONFIG_MPC8xxx_GPIO) += mpc8xxx_gpio.o |
21 | obj-$(CONFIG_FSL_85XX_CACHE_SRAM) += fsl_85xx_l2ctlr.o fsl_85xx_cache_sram.o | 21 | obj-$(CONFIG_FSL_85XX_CACHE_SRAM) += fsl_85xx_l2ctlr.o fsl_85xx_cache_sram.o |
22 | obj-$(CONFIG_SIMPLE_GPIO) += simple_gpio.o | 22 | obj-$(CONFIG_SIMPLE_GPIO) += simple_gpio.o |
23 | obj-$(CONFIG_RAPIDIO) += fsl_rio.o | 23 | obj-$(CONFIG_FSL_RIO) += fsl_rio.o |
24 | obj-$(CONFIG_TSI108_BRIDGE) += tsi108_pci.o tsi108_dev.o | 24 | obj-$(CONFIG_TSI108_BRIDGE) += tsi108_pci.o tsi108_dev.o |
25 | obj-$(CONFIG_QUICC_ENGINE) += qe_lib/ | 25 | obj-$(CONFIG_QUICC_ENGINE) += qe_lib/ |
26 | obj-$(CONFIG_PPC_BESTCOMM) += bestcomm/ | 26 | obj-$(CONFIG_PPC_BESTCOMM) += bestcomm/ |
diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index d57ddd7573cc..140e254fe546 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig | |||
@@ -2096,6 +2096,16 @@ source "drivers/pcmcia/Kconfig" | |||
2096 | 2096 | ||
2097 | source "drivers/pci/hotplug/Kconfig" | 2097 | source "drivers/pci/hotplug/Kconfig" |
2098 | 2098 | ||
2099 | config RAPIDIO | ||
2100 | bool "RapidIO support" | ||
2101 | depends on PCI | ||
2102 | default n | ||
2103 | help | ||
2104 | If you say Y here, the kernel will include drivers and | ||
2105 | infrastructure code to support RapidIO interconnect devices. | ||
2106 | |||
2107 | source "drivers/rapidio/Kconfig" | ||
2108 | |||
2099 | endmenu | 2109 | endmenu |
2100 | 2110 | ||
2101 | 2111 | ||
diff --git a/drivers/net/rionet.c b/drivers/net/rionet.c index 44150f2f7bfd..678e5777da81 100644 --- a/drivers/net/rionet.c +++ b/drivers/net/rionet.c | |||
@@ -382,7 +382,7 @@ static void rionet_remove(struct rio_dev *rdev) | |||
382 | struct rionet_peer *peer, *tmp; | 382 | struct rionet_peer *peer, *tmp; |
383 | 383 | ||
384 | free_pages((unsigned long)rionet_active, rdev->net->hport->sys_size ? | 384 | free_pages((unsigned long)rionet_active, rdev->net->hport->sys_size ? |
385 | __ilog2(sizeof(void *)) + 4 : 0); | 385 | __fls(sizeof(void *)) + 4 : 0); |
386 | unregister_netdev(ndev); | 386 | unregister_netdev(ndev); |
387 | free_netdev(ndev); | 387 | free_netdev(ndev); |
388 | 388 | ||
@@ -450,7 +450,7 @@ static int rionet_setup_netdev(struct rio_mport *mport) | |||
450 | } | 450 | } |
451 | 451 | ||
452 | rionet_active = (struct rio_dev **)__get_free_pages(GFP_KERNEL, | 452 | rionet_active = (struct rio_dev **)__get_free_pages(GFP_KERNEL, |
453 | mport->sys_size ? __ilog2(sizeof(void *)) + 4 : 0); | 453 | mport->sys_size ? __fls(sizeof(void *)) + 4 : 0); |
454 | if (!rionet_active) { | 454 | if (!rionet_active) { |
455 | rc = -ENOMEM; | 455 | rc = -ENOMEM; |
456 | goto out; | 456 | goto out; |
diff --git a/drivers/rapidio/rio-sysfs.c b/drivers/rapidio/rio-sysfs.c index 0d894320e227..4dbe360989be 100644 --- a/drivers/rapidio/rio-sysfs.c +++ b/drivers/rapidio/rio-sysfs.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/rio.h> | 14 | #include <linux/rio.h> |
15 | #include <linux/rio_drv.h> | 15 | #include <linux/rio_drv.h> |
16 | #include <linux/stat.h> | 16 | #include <linux/stat.h> |
17 | #include <linux/capability.h> | ||
17 | 18 | ||
18 | #include "rio.h" | 19 | #include "rio.h" |
19 | 20 | ||