s390/pci: Expose new port attribute for PCIe functions

Add SysFS attribute that provides the port number for PCI functions
representing a single port of a multi-port device.

Signed-off-by: Alexander Schmidt <alexs@linux.ibm.com>
Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
This commit is contained in:
Alexander Schmidt
2020-02-28 10:31:13 -05:00
committed by Vasily Gorbik
parent ae83d0b416
commit e6ab7490ff
4 changed files with 6 additions and 1 deletions

View File

@@ -108,6 +108,7 @@ struct zpci_dev {
u8 pfgid; /* function group ID */
u8 pft; /* pci function type */
u16 domain;
u8 port;
struct mutex lock;
u8 pfip[CLP_PFIP_NR_SEGMENTS]; /* pci function internal path */