]> git.karo-electronics.de Git - karo-tx-linux.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)
commit899fcf40f3177697ccfb029d0484cb8ec09a51ca
tree2983a14444ca62958e50e2fdbd4dc945d7a38849
parent9a10b33caf78f897356ac006c455e6060a40af15
[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