mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
rapidio: use device lists handling on per-net basis
Modify handling of device lists to resolve issues caused by using single global list of RIO devices during enumeration/discovery. The most common sign of existing issue is incorrect contents of switch routing tables in systems with multiple mport controllers while single-port configuration performs as expected. Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com> Cc: Matt Porter <mporter@kernel.crashing.org> Cc: Li Yang <leoli@freescale.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
fa3dbaa010
commit
a7071efc20
2 changed files with 32 additions and 29 deletions
|
@ -275,6 +275,7 @@ struct rio_mport {
|
|||
struct rio_net {
|
||||
struct list_head node; /* node in list of networks */
|
||||
struct list_head devices; /* list of devices in this net */
|
||||
struct list_head switches; /* list of switches in this net */
|
||||
struct list_head mports; /* list of ports accessing net */
|
||||
struct rio_mport *hport; /* primary port for accessing net */
|
||||
unsigned char id; /* RIO network ID */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue