Skip to content

Commit

Permalink
rapidio: fix RapidIO sysfs hierarchy
Browse files Browse the repository at this point in the history
This set of RapidIO patches extends support for standard error recovery
mechanism and adds new IDT Gen2 sRIO switch devices - CPS-1848 and
CPS-1616.  Implementation of the standard error-stopped state recovery
mechanism (as defined by the RapidIO specification) is required for the
new switches.

Version 2 of this set of patches addresses received comments and fixes an
error notification setup issue found in the idt_gen2.c after the first
version was released.

This patch:

Make RapidIO devices appear in /sys/devices/rapidio directory instead of
top of /sys/devices directory.

Signed-off-by: Alexandre Bounine <[email protected]>
Cc: Thomas Moll <[email protected]>
Cc: Matt Porter <[email protected]>
Cc: Li Yang <[email protected]>
Cc: Kumar Gala <[email protected]>
Cc: Micha Nelissen <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Alexandre Bounine authored and torvalds committed Oct 28, 2010
1 parent e89d67c commit 2c70f02
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rapidio/rio-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ static int rio_match_bus(struct device *dev, struct device_driver *drv)
out:return 0;
}

static struct device rio_bus = {
struct device rio_bus = {
.init_name = "rapidio",
};

Expand Down
1 change: 1 addition & 0 deletions drivers/rapidio/rio-scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ static struct rio_dev __devinit *rio_setup_device(struct rio_net *net,
}

rdev->dev.bus = &rio_bus_type;
rdev->dev.parent = &rio_bus;

device_initialize(&rdev->dev);
rdev->dev.release = rio_release_dev;
Expand Down
1 change: 1 addition & 0 deletions include/linux/rio.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
#define RIO_PW_MSG_SIZE 64

extern struct bus_type rio_bus_type;
extern struct device rio_bus;
extern struct list_head rio_devices; /* list of all devices */

struct rio_mport;
Expand Down

0 comments on commit 2c70f02

Please sign in to comment.