mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> CC: Dan Williams <[email protected]> CC: Tejun Heo <[email protected]> Acked-by: Tejun Heo <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
c90a0bea4f
commit
b6240a4df0
4 changed files with 20 additions and 0 deletions
|
|
@ -5051,6 +5051,18 @@ int ata_sas_port_init(struct ata_port *ap)
|
|||
}
|
||||
EXPORT_SYMBOL_GPL(ata_sas_port_init);
|
||||
|
||||
int ata_sas_tport_add(struct device *parent, struct ata_port *ap)
|
||||
{
|
||||
return ata_tport_add(parent, ap);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ata_sas_tport_add);
|
||||
|
||||
void ata_sas_tport_delete(struct ata_port *ap)
|
||||
{
|
||||
ata_tport_delete(ap);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(ata_sas_tport_delete);
|
||||
|
||||
/**
|
||||
* ata_sas_port_destroy - Destroy a SATA port allocated by ata_sas_port_alloc
|
||||
* @ap: SATA port to destroy
|
||||
|
|
|
|||
Loading…
Reference in a new issue