[RAPIDIO] Auto-probe the RapidIO system size
The RapidIO system size will auto probe in RIO setup. The route table and rionet_active in rionet.c are changed to be allocated dynamically according to the size of the system. Signed-off-by: Zhang Wei <wei.zhang@freescale.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:

committed by
Paul Mackerras

parent
cc2bb6968a
commit
e042323607
@@ -43,7 +43,7 @@ u16 rio_local_get_device_id(struct rio_mport *port)
|
||||
|
||||
rio_local_read_config_32(port, RIO_DID_CSR, &result);
|
||||
|
||||
return (RIO_GET_DID(result));
|
||||
return (RIO_GET_DID(port->sys_size, result));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user