[SCSI] isci: initial sgpio write support
authorDan Williams <dan.j.williams@intel.com>
Fri, 2 Sep 2011 04:18:31 +0000 (21:18 -0700)
committerJames Bottomley <JBottomley@Parallels.com>
Thu, 22 Sep 2011 11:01:56 +0000 (15:01 +0400)
commitad4f4c1de80abdda5d55315289505598aa78e355
tree268882b3dff78ee8fb9977a5f5aa209f7f171fb5
parent13257cfbc57e9cf84fd9fe0cb7a909b3fb4f7482
[SCSI] isci: initial sgpio write support

Basic support to initialize the gpio unit, accept an incomming
SAS_GPIO_REG_TX_GP bitstream, and translate it to the ODx.n fields in
the hardware registers.  If register indexes outside the supported range
are specified in the SMP frame we simply accept the write and return how
many registers (SFF-8485) were written (libsas reports this as residue
in the request).

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/isci/host.c
drivers/scsi/isci/host.h
drivers/scsi/isci/init.c