diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-09-02 08:18:31 +0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-09-22 15:01:56 +0400 |
commit | ad4f4c1de80abdda5d55315289505598aa78e355 (patch) | |
tree | 268882b3dff78ee8fb9977a5f5aa209f7f171fb5 /drivers/scsi/isci/init.c | |
parent | 13257cfbc57e9cf84fd9fe0cb7a909b3fb4f7482 (diff) | |
download | linux-ad4f4c1de80abdda5d55315289505598aa78e355.tar.xz |
[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>
Diffstat (limited to 'drivers/scsi/isci/init.c')
-rw-r--r-- | drivers/scsi/isci/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/isci/init.c b/drivers/scsi/isci/init.c index 29aa34efb0f5..43fe840fbe9c 100644 --- a/drivers/scsi/isci/init.c +++ b/drivers/scsi/isci/init.c @@ -192,6 +192,9 @@ static struct sas_domain_function_template isci_transport_ops = { /* Phy management */ .lldd_control_phy = isci_phy_control, + + /* GPIO support */ + .lldd_write_gpio = isci_gpio_write, }; |