diff options
| author | Kashyap, Desai <[email protected]> | 2009-12-16 13:25:26 +0000 |
|---|---|---|
| committer | James Bottomley <[email protected]> | 2010-02-09 00:19:42 +0000 |
| commit | 50d5c60634673a79f8d88564e10345b50fca7378 (patch) | |
| tree | 837ce67b8dad98caddfc9469acecaca124ceea1d /drivers/scsi/mpt2sas/mpi/mpi2_init.h | |
| parent | [SCSI] mpt2sas: Added raid transport support (diff) | |
| download | kernel-50d5c60634673a79f8d88564e10345b50fca7378.tar.gz kernel-50d5c60634673a79f8d88564e10345b50fca7378.zip | |
[SCSI] mpt2sas: Added phy_enable and set_phy_speed sysfs callback support.
Added new callbacks phy_enable and set_phy_speed in the
mpt2sas_transport_functions template. This will allow end user to
enable/disable phys and change links rates using the SysFS interface.
Current implementation only supports direct attached phys, but we
could in the future add support for expander based phys.
A new subroutine mpt2sas_config_set_sas_iounit_pg1 was added;
this wrapper function used to send request to controller firmware to modify
the phys and link rates. A new subroutine _transport_find_local_phy was added;
a function for easly obtaining the local phy object for direct attached.
Example to disable a phy
echo 0 > /sys/class/phy3:0/enable
Example to enable the same phy
echo 1 > /sys/class/phy3:0/enable
Example to change the link rate to 1.5
#echo "1.5 Gbit" > /sys/class/phy3:0/maximum_linkrate
#cat /sys/class/phy3:0/negotiated_linkrate
1.5 Gbit
Example to change the link rate to 3.0
#echo "3.0 Gbit" > /sys/class/phy3:0/maximum_linkrate
#cat /sys/class/phy3:0/negotiated_linkrate
3.0 Gbit
Example to change the link rate to 6.0
#echo "6.0 Gbit" > /sys/class/phy3:0/maximum_linkrate
#cat /sys/class/phy3:0/negotiated_linkrate
6.0 Gbit
Signed-off-by: Kashyap Desai <[email protected]>
Reviewed-by: Eric Moore <[email protected]>
Signed-off-by: James Bottomley <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_init.h')
0 files changed, 0 insertions, 0 deletions
