mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
rapidio: add definitions of Component Tag fields
Add definition of the unique device identifier field in the component tag. RIO_CTAG_UDEVID does not take all 32 bits of the component tag value to allow future extensions to the component tag use. Selected size of the RIO_CTAG_UDEVID field (17 bits) is sufficient to accommodate maximum number of endpoints in large RIO network (16-bit id) plus switches. Signed-off-by: Alexandre Bounine <[email protected]> Cc: Kumar Gala <[email protected]> Cc: Matt Porter <[email protected]> Cc: Li Yang <[email protected]> Cc: Thomas Moll <[email protected]> Cc: Micha Nelissen <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ded0578271
commit
e6536927e6
2 changed files with 11 additions and 1 deletions
|
|
@ -710,7 +710,7 @@ int rio_inb_pwrite_handler(union rio_pw_msg *pw_msg)
|
|||
u32 err_status, em_perrdet, em_ltlerrdet;
|
||||
int rc, portnum;
|
||||
|
||||
rdev = rio_get_comptag(pw_msg->em.comptag, NULL);
|
||||
rdev = rio_get_comptag((pw_msg->em.comptag & RIO_CTAG_UDEVID), NULL);
|
||||
if (rdev == NULL) {
|
||||
/* Device removed or enumeration error */
|
||||
pr_debug("RIO: %s No matching device for CTag 0x%08x\n",
|
||||
|
|
|
|||
Loading…
Reference in a new issue