mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
rapidio: move rio_local_set_device_id function to the common core
Make function rio_local_set_device_id() common for all components of RapidIO subsystem. Signed-off-by: Alexandre Bounine <[email protected]> Cc: Matt Porter <[email protected]> Cc: Aurelien Jacquiot <[email protected]> Cc: Andre van Herk <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a7b4c636d8
commit
5024622f58
3 changed files with 15 additions and 13 deletions
|
|
@ -193,19 +193,6 @@ static void rio_set_device_id(struct rio_mport *port, u16 destid, u8 hopcount, u
|
|||
RIO_SET_DID(port->sys_size, did));
|
||||
}
|
||||
|
||||
/**
|
||||
* rio_local_set_device_id - Set the base/extended device id for a port
|
||||
* @port: RIO master port
|
||||
* @did: Device ID value to be written
|
||||
*
|
||||
* Writes the base/extended device id from a device.
|
||||
*/
|
||||
static void rio_local_set_device_id(struct rio_mport *port, u16 did)
|
||||
{
|
||||
rio_local_write_config_32(port, RIO_DID_CSR, RIO_SET_DID(port->sys_size,
|
||||
did));
|
||||
}
|
||||
|
||||
/**
|
||||
* rio_clear_locks- Release all host locks and signal enumeration complete
|
||||
* @net: RIO network to run on
|
||||
|
|
|
|||
|
|
@ -137,6 +137,20 @@ void rio_free_net(struct rio_net *net)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(rio_free_net);
|
||||
|
||||
/**
|
||||
* rio_local_set_device_id - Set the base/extended device id for a port
|
||||
* @port: RIO master port
|
||||
* @did: Device ID value to be written
|
||||
*
|
||||
* Writes the base/extended device id from a device.
|
||||
*/
|
||||
void rio_local_set_device_id(struct rio_mport *port, u16 did)
|
||||
{
|
||||
rio_local_write_config_32(port, RIO_DID_CSR,
|
||||
RIO_SET_DID(port->sys_size, did));
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(rio_local_set_device_id);
|
||||
|
||||
/**
|
||||
* rio_add_device- Adds a RIO device to the device model
|
||||
* @rdev: RIO device
|
||||
|
|
|
|||
Loading…
Reference in a new issue