diff options
| author | Darrick J. Wong <[email protected]> | 2007-01-11 22:14:57 +0000 |
|---|---|---|
| committer | James Bottomley <[email protected]> | 2007-01-13 22:13:00 +0000 |
| commit | acbf167d4ad8c27f9743a4b539d51ae9535bf21c (patch) | |
| tree | e53f8330f60acaef42d74a745b3dd5131b424e49 /include/scsi/libsas.h | |
| parent | [SCSI] libsas: Don't give scsi_cmnds to the EH if they never made it to the S... (diff) | |
| download | kernel-acbf167d4ad8c27f9743a4b539d51ae9535bf21c.tar.gz kernel-acbf167d4ad8c27f9743a4b539d51ae9535bf21c.zip | |
[SCSI] libsas: Add a sysfs knob to enable/disable a phy
This patch lets a user arbitrarily enable or disable a phy via sysfs.
Potential applications include shutting down a phy to replace one
lane of wide port, and (more importantly) providing a method for the
libata SATL to control the phy.
Signed-off-by: Darrick J. Wong <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'include/scsi/libsas.h')
| -rw-r--r-- | include/scsi/libsas.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index da96bcfb9e46..0689d6682aa3 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h @@ -614,6 +614,9 @@ struct sas_domain_function_template { extern int sas_register_ha(struct sas_ha_struct *); extern int sas_unregister_ha(struct sas_ha_struct *); +int sas_set_phy_speed(struct sas_phy *phy, + struct sas_phy_linkrates *rates); +int sas_phy_enable(struct sas_phy *phy, int enabled); int sas_phy_reset(struct sas_phy *phy, int hard_reset); extern int sas_queuecommand(struct scsi_cmnd *, void (*scsi_done)(struct scsi_cmnd *)); |
