linux-stable/drivers/scsi/libsas
Jason Yan b6240a4df0 scsi: libsas: add transport class for ATA devices
Now ata devices attached with sas controller do not have transport
class, so that we can not see any information of these ata devices in
/sys/class/ata_port(or ata_link or ata_device).

Add transport class for the ata devices attached with sas controller.
The /sys/class directory will show the infomation of the ata devices
as follows:

localhost:/sys/class # ls ata*
ata_device:
dev1.0  dev2.0

ata_link:
link1  link2

ata_port:
ata1  ata2

No functional change of the device scanning and io path. The ata
transport class was deleted when destroying the sas devices.

Signed-off-by: Jason Yan <yanaijie@huawei.com>
CC: Dan Williams <dan.j.williams@intel.com>
CC: Tejun Heo <tj@kernel.org>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2018-04-18 19:32:51 -04:00
..
Kconfig scsi: scsi_transport_sas: switch to bsg-lib for SMP passthrough 2017-08-29 21:51:45 -04:00
Makefile
sas_ata.c scsi: libsas: add transport class for ATA devices 2018-04-18 19:32:51 -04:00
sas_discover.c scsi: libsas: add transport class for ATA devices 2018-04-18 19:32:51 -04:00
sas_dump.c scsi: libsas: kill useless ha_event and do some cleanup 2017-09-15 21:32:58 -04:00
sas_dump.h scsi: libsas: kill useless ha_event and do some cleanup 2017-09-15 21:32:58 -04:00
sas_event.c scsi: libsas: notify event PORTE_BROADCAST_RCVD in sas_enable_revalidation() 2018-01-10 23:24:54 -05:00
sas_expander.c scsi: libsas: Fix kernel-doc headers 2018-02-27 21:15:16 -05:00
sas_host_smp.c scsi: scsi_transport_sas: switch to bsg-lib for SMP passthrough 2017-08-29 21:51:45 -04:00
sas_init.c scsi: libsas: Fix kernel-doc headers 2018-02-27 21:15:16 -05:00
sas_internal.h scsi: libsas: direct call probe and destruct 2018-01-10 23:24:02 -05:00
sas_phy.c scsi: libsas: shut down the PHY if events reached the threshold 2018-01-08 21:59:28 -05:00
sas_port.c scsi: libsas: Fix kernel-doc headers 2018-02-27 21:15:16 -05:00
sas_scsi_host.c Merge branch 'fixes' into misc 2018-04-03 17:38:39 -07:00
sas_task.c