mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
lscss shows device number as 'None' if the corresponding device in the subchannel is non-operational or not connected. Instead, show the device-no derived from the new dev_busid attribute which provides the value of device_id irrespective of the device availability. i.e the current lscss shows Device Subchan. DevType CU Type Use PIM PAM POM CHPIDs ---------------------------------------------------------------------- 0.0.0000 0.0.0000 3390/0c 3990/e9 f0 a0 ff 32333435 00000000 none 0.0.00c7 f0 a0 5f 32333435 00000000 none 0.0.00c8 f0 a0 5f 32333435 00000000 here the subchannels 0.0.00c7 and 0.0.00c8 do not have an operational device on them. Hence the device is shown as none. With this patch, Device Subchan. DevType CU Type Use PIM PAM POM CHPIDs ---------------------------------------------------------------------- 0.0.0000 0.0.0000 3390/0c 3990/e9 f0 a0 ff 32333435 00000000 0.0.74c8 0.0.00c7 f0 a0 5f 32333435 00000000 0.0.74c9 0.0.00c8 f0 a0 5f 32333435 00000000 The device-no is shown as 0.0.74c8; Where the DevType field still indicates that the device is not present. Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com> Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>