]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] ipr: fix resource type update and add sdev and shost attributes
authorWayne Boyer <wayneb@linux.vnet.ibm.com>
Wed, 14 Jul 2010 17:50:14 +0000 (10:50 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 28 Jul 2010 14:05:40 +0000 (09:05 -0500)
commit54e88c78534d63daf383fd9e3a235132d6afa5e4
tree3923b4c3604edcc37589bd140ea2ffc6afa5b1ca
parenteb3b85cbb79fab6033c70151fcb817b332376390
[SCSI] ipr: fix resource type update and add sdev and shost attributes

Setting the resource type in the ipr_update_res_entry function was incorrect in
that the top 4 bits were masked off.  The assignment has been updated to no
longer mask those bits.

Then, two new attributes were added to allow the user space utilities to more
easily get information.  The resource_type sdev attribute is set for all devices
in the adapter's configuration table and indicates the type of device.  The
fw_type shost attribute indicates the firmware type supported by the adapter.

Finally, the resource_path attribute was changed to be mode S_IRUGO.

Signed-off-by: Wayne Boyer <wayneb@linux.vnet.ibm.com>
Acked-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/ipr.c