rapidio-convert-switch-drivers-to-modules.patch removed from -mm tree
Subsystems (2)
Subject: [merged] rapidio-convert-switch-drivers-to-modules.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Mon, 08 Jul 2013 12:36:35 -0700
The patch titled
Subject: rapidio: convert switch drivers to modules
has been removed from the -mm tree. Its filename was
rapidio-convert-switch-drivers-to-modules.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: Alexandre Bounine <[email protected]>
Subject: rapidio: convert switch drivers to modules
Rework RapidIO switch drivers to add an option to build them as loadable kernel modules.
This patch removes RapidIO-specific vmlinux section and converts switch drivers to be compatible with LDM driver registration method. To simplify registration of device-specific callback routines this patch introduces rio_switch_ops data structure. The sw_sysfs() callback is removed from the list of device-specific operations because under the new structure its functions can be handled by switch driver's probe() and remove() routines.
If a specific switch device driver is not loaded the RapidIO subsystem core will use default standard-based operations to configure a switch. Because the current implementation of RapidIO enumeration/discovery method relies on availability of device-specific operations for error management, switch device drivers must be loaded before the RapidIO enumeration/discovery starts.
This patch also moves several common routines from enumeration/discovery module into the RapidIO core code to make switch-specific operations accessible to all components of RapidIO subsystem.
---
drivers/rapidio/Kconfig | 5 drivers/rapidio/rio-scan.c | 171 --------------- drivers/rapidio/rio-sysfs.c | 4 drivers/rapidio/rio.c | 286 +++++++++++++++++++++----- drivers/rapidio/rio.h | 41 --- drivers/rapidio/switches/Kconfig | 12 - drivers/rapidio/switches/idt_gen2.c | 96 +++++++- drivers/rapidio/switches/idtcps.c | 84 ++++++- drivers/rapidio/switches/tsi568.c | 71 +++++- drivers/rapidio/switches/tsi57x.c | 79 ++++++- include/asm-generic/vmlinux.lds.h | 7 include/linux/rio.h | 51 ++-- 12 files changed, 565 insertions(+), 342 deletions(-)
drivers/rapidio/Kconfig renamed from drivers/rapidio/Kconfig~rapidio-convert-switch-drivers-to-modules +5 -0
@@ -67,4 +67,9 @@ config RAPIDIO_ENUM_BASIC endchoice +menu "RapidIO Switch drivers" + depends on RAPIDIO + source "drivers/rapidio/switches/Kconfig" + +endmenu
drivers/rapidio/rio-scan.c renamed from drivers/rapidio/rio-scan.c~rapidio-convert-switch-drivers-to-modules +9 -162
208 lines not on this page · raw message
drivers/rapidio/rio-sysfs.c renamed from drivers/rapidio/rio-sysfs.c~rapidio-convert-switch-drivers-to-modules +0 -4
@@ -257,8 +257,6 @@ int rio_create_sysfs_dev_files(struct ri err |=device_create_file (&rdev->dev, &dev_attr_routes); err |=device_create_file (&rdev->dev, &dev_attr_lnext); err |=device_create_file (&rdev->dev, &dev_attr_hopcount); -if (!err && rdev->rswitch->sw_sysfs) - err = rdev->rswitch->sw_sysfs (rdev,RIO_SW_SYSFS_CREATE ); }if (err)
@@ -281,8 +279,6 @@ void rio_remove_sysfs_dev_files(struct rdevice_remove_file (&rdev->dev, &dev_attr_routes);device_remove_file (&rdev->dev, &dev_attr_lnext);device_remove_file (&rdev->dev, &dev_attr_hopcount); -if (rdev->rswitch->sw_sysfs) - rdev->rswitch->sw_sysfs (rdev,RIO_SW_SYSFS_REMOVE ); } }
drivers/rapidio/rio.c renamed from drivers/rapidio/rio.c~rapidio-convert-switch-drivers-to-modules +239 -47
328 lines not on this page · raw message
drivers/rapidio/rio.h renamed from drivers/rapidio/rio.h~rapidio-convert-switch-drivers-to-modules +8 -33
55 lines not on this page · raw message
drivers/rapidio/switches/Kconfig renamed from drivers/rapidio/switches/Kconfig~rapidio-convert-switch-drivers-to-modules +4 -8
@@ -2,27 +2,23 @@ # RapidIO switches configuration # config RAPIDIO_TSI57X - bool "IDT Tsi57x SRIO switches support" - depends on RAPIDIO + tristate "IDT Tsi57x SRIO switches support" ---help--- Includes support for IDT Tsi57x family of serial RapidIO switches. config RAPIDIO_CPS_XX - bool "IDT CPS-xx SRIO switches support" - depends on RAPIDIO + tristate "IDT CPS-xx SRIO switches support" ---help--- Includes support for IDT CPS-16/12/10/8 serial RapidIO switches. config RAPIDIO_TSI568 - bool "Tsi568 SRIO switch support" - depends on RAPIDIO + tristate "Tsi568 SRIO switch support" default n ---help--- Includes support for IDT Tsi568 serial RapidIO switch. config RAPIDIO_CPS_GEN2 - bool "IDT CPS Gen.2 SRIO switch support" - depends on RAPIDIO + tristate "IDT CPS Gen.2 SRIO switch support" default n ---help--- Includes support for ITD CPS Gen.2 serial RapidIO switches.
drivers/rapidio/switches/idt_gen2.c renamed from drivers/rapidio/switches/idt_gen2.c~rapidio-convert-switch-drivers-to-modules +79 -17
126 lines not on this page · raw message
drivers/rapidio/switches/idtcps.c renamed from drivers/rapidio/switches/idtcps.c~rapidio-convert-switch-drivers-to-modules +69 -15
105 lines not on this page · raw message
drivers/rapidio/switches/tsi568.c renamed from drivers/rapidio/switches/tsi568.c~rapidio-convert-switch-drivers-to-modules +62 -9
86 lines not on this page · raw message
drivers/rapidio/switches/tsi57x.c renamed from drivers/rapidio/switches/tsi57x.c~rapidio-convert-switch-drivers-to-modules +66 -13
99 lines not on this page · raw message
include/asm-generic/vmlinux.lds.h renamed from include/asm-generic/vmlinux.lds.h~rapidio-convert-switch-drivers-to-modules +0 -7
@@ -275,13 +275,6 @@ VMLINUX_SYMBOL(__end_builtin_fw) = .; \ } \ \ -/* RapidIO route ops */ \ - .rio_ops : AT(ADDR(.rio_ops) - LOAD_OFFSET) { \ - VMLINUX_SYMBOL(__start_rio_switch_ops) = .; \ - *(.rio_switch_ops) \ - VMLINUX_SYMBOL(__end_rio_switch_ops) = .; \ - } \ - \TRACEDATA \ \/* Kernel symbol table: Normal symbols */ \
include/linux/rio.h renamed from include/linux/rio.h~rapidio-convert-switch-drivers-to-modules +24 -26
90 lines not on this page · raw message