diff options
author | Jag Raman <jag.raman@oracle.com> | 2017-06-23 20:58:40 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-06-25 22:43:15 +0200 |
commit | 15c35e4ebbe16a205856e033627e50936ab7cd99 (patch) | |
tree | d2c7d9fc830045155d19dc458d17dee9d7c1c2d6 /arch/sparc/kernel/vio.c | |
parent | sparc64: Enhance search for VIO device in MDESC (diff) | |
download | linux-15c35e4ebbe16a205856e033627e50936ab7cd99.tar.xz linux-15c35e4ebbe16a205856e033627e50936ab7cd99.zip |
sparc64: add port_id to VIO device metadata
Add port_id field to VIO device metadata to identify the port of
VIO device.
Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/kernel/vio.c')
-rw-r--r-- | arch/sparc/kernel/vio.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sparc/kernel/vio.c b/arch/sparc/kernel/vio.c index 624f0a98edfe..6715fc36e0e9 100644 --- a/arch/sparc/kernel/vio.c +++ b/arch/sparc/kernel/vio.c @@ -334,6 +334,7 @@ static struct vio_dev *vio_create_one(struct mdesc_handle *hp, u64 mp, memset(vdev->compat, 0, sizeof(vdev->compat)); vdev->compat_len = clen; + vdev->port_id = ~0UL; vdev->tx_irq = 0; vdev->rx_irq = 0; @@ -349,6 +350,7 @@ static struct vio_dev *vio_create_one(struct mdesc_handle *hp, u64 mp, dev_set_name(&vdev->dev, "%s-%llu-%llu", type, *cfg_handle, *id); vdev->dev_no = *cfg_handle; + vdev->port_id = *id; } vdev->dev.parent = parent; |