mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 21:21:09 +00:00
rapidio: use stored ingress port number instead of register read
The switch port information is obtained and stored during RIO device setup. Therefore repeated reads from Switch Port Information CAR may be removed. Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com> Cc: Thomas Moll <thomas.moll@sysgo.com> Cc: Matt Porter <mporter@kernel.crashing.org> Cc: Li Yang <leoli@freescale.com> Cc: Kumar Gala <galak@kernel.crashing.org> Cc: Micha Nelissen <micha@neli.hopto.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
93e2cbd24e
commit
ae05cbd5ad
3 changed files with 14 additions and 28 deletions
|
@ -112,7 +112,7 @@ struct rio_dev {
|
|||
u16 asm_rev;
|
||||
u16 efptr;
|
||||
u32 pef;
|
||||
u32 swpinfo; /* Only used for switches */
|
||||
u32 swpinfo;
|
||||
u32 src_ops;
|
||||
u32 dst_ops;
|
||||
u32 comp_tag;
|
||||
|
@ -219,6 +219,7 @@ struct rio_net {
|
|||
/**
|
||||
* struct rio_switch - RIO switch info
|
||||
* @node: Node in global list of switches
|
||||
* @rdev: Associated RIO device structure
|
||||
* @switchid: Switch ID that is unique across a network
|
||||
* @hopcount: Hopcount to this switch
|
||||
* @destid: Associated destid in the path
|
||||
|
@ -234,6 +235,7 @@ struct rio_net {
|
|||
*/
|
||||
struct rio_switch {
|
||||
struct list_head node;
|
||||
struct rio_dev *rdev;
|
||||
u16 switchid;
|
||||
u16 hopcount;
|
||||
u16 destid;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue