android_kernel_xiaomi_sm8350/drivers/s390/scsi
Sven Schuetz 85a82392fe [SCSI] zfcp: Add port_state attribute to sysfs
The sysfs attribute /sys/class/fc_host/hostX/port_state was not set by
zfcp so far.

Now, the appropriate members of the fc_function_template struct are
set during its initialziation. The first is a boolean to show the port
state. The second is a function pointer to the function
zfcp_get_host_port_state, which reads the port state from our adapter
status bits and calls fc_host_port_state with the approriate port
state afterwards.

Signed-off-by: Sven Schuetz <sven@linux.vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
2008-07-12 08:22:26 -05:00
..
Makefile [SCSI] zfcp: Message cleanup 2008-07-12 08:22:26 -05:00
zfcp_aux.c [SCSI] zfcp: Message cleanup 2008-07-12 08:22:26 -05:00
zfcp_ccw.c [SCSI] zfcp: Cleanup code in zfcp_ccw 2008-07-12 08:22:25 -05:00
zfcp_cfdc.c [SCSI] zfcp: Move CFDC code to new file. 2008-07-12 08:22:25 -05:00
zfcp_dbf.c [SCSI] zfcp: Message cleanup 2008-07-12 08:22:26 -05:00
zfcp_dbf.h [SCSI] zfcp: remove some __attribute__ ((packed)) 2008-06-05 09:27:15 -05:00
zfcp_def.h [SCSI] zfcp: Message cleanup 2008-07-12 08:22:26 -05:00
zfcp_erp.c [SCSI] zfcp: Message cleanup 2008-07-12 08:22:26 -05:00
zfcp_ext.h [SCSI] zfcp: Message cleanup 2008-07-12 08:22:26 -05:00
zfcp_fc.c [SCSI] zfcp: Move FC code to new file 2008-07-12 08:22:25 -05:00
zfcp_fsf.c [SCSI] zfcp: Message cleanup 2008-07-12 08:22:26 -05:00
zfcp_fsf.h [SCSI] zfcp: Message cleanup 2008-07-12 08:22:26 -05:00
zfcp_qdio.c [SCSI] zfcp: Cleanup qdio code 2008-07-12 08:22:25 -05:00
zfcp_scsi.c [SCSI] zfcp: Add port_state attribute to sysfs 2008-07-12 08:22:26 -05:00
zfcp_sysfs_adapter.c [SCSI] zfcp: Message cleanup 2008-07-12 08:22:26 -05:00
zfcp_sysfs_port.c [SCSI] zfcp: Message cleanup 2008-07-12 08:22:26 -05:00
zfcp_sysfs_unit.c [SCSI] zfcp: Message cleanup 2008-07-12 08:22:26 -05:00