]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libsas: set attached device type and target protocols for local phys
authorDan Williams <dan.j.williams@intel.com>
Sun, 29 Jan 2012 01:24:40 +0000 (17:24 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 29 Feb 2012 21:40:33 +0000 (15:40 -0600)
commitbd61dab3bc27d741b324b0f14a1ea77f52b0e051
tree2983a14444ca62958e50e2fdbd4dc945d7a38849
parent1e0698b9e51fcb7fae5f04d61771a010edc97695
[SCSI] libsas: set attached device type and target protocols for local phys

Before:
$ cat /sys/class/sas_phy/phy-6\:3/device_type
none
$ cat /sys/class/sas_phy/phy-6\:3/target_port_protocols
none

After:
$ cat /sys/class/sas_phy/phy-6\:3/device_type
end device
$ cat /sys/class/sas_phy/phy-6\:3/target_port_protocols
sata

Also downgrade the phy_list_lock to _irq instead of _irqsave since
libsas will never call sas_get_port_device with interrupts disbled.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libsas/sas_discover.c
drivers/scsi/libsas/sas_internal.h
drivers/scsi/libsas/sas_port.c