[PATCH 4/4] scsi:stex.c Add S3/S4 support

2014-11-07 Thread Charles Chiou - PTT
1. Add S3/S4 support, add .suspend and .resume function in pci_driver. 2. Pegasus take some to init, I create one thread to finish handshake to make OS can start faster. 3. According to (2), OS might send command to driver before handshake. Return SCSI_MLQUEUE_HOST_BUSY. --- drivers/scsi/s

[PATCH 3/4] scsi:stex.c Add reboot support

2014-11-07 Thread Charles Chiou - PTT
1. Add reboot support, Pegasus devices should be notified that the host is going to shutdown/reboot. I register reboot callback function to distinct host is going to shutdown or to reboot. 2. Pegasus FW shutdown flow is sensitive to host behavior (host is going to S3/S4/shutdown/reboot).

[PATCH 2/4] scsi:stex.c Add hotplut support

2014-11-07 Thread Charles Chiou - PTT
1. Add hotplug support. Pegasus support surprise removable. To this, I use return_abnormal_state function to return DID_NO_CONNECT for all commands which sent to driver. 2. Remove stex_hba_stop in stex_remove because we cannot send command to device after hotplug. 3. Add new device statu

[PATCH 1/4] scsi:stex.c Support to Pegasus series.

2014-11-06 Thread Charles Chiou - PTT
Pegasus is a high performance hardware RAID solution designed to unleash the raw power of Thunderbolt technology. I add code to distinct SuperTrack and Pegasus series by subID. It's needed for backward compatibility. Change the driver version. --- drivers/scsi/stex.c | 24 +++

[PATCH 1/4] scsi:stex.c Support to Pegasus series.

2014-11-06 Thread Charles Chiou - PTT
Pegasus is a high performance hardware RAID solution designed to unleash the raw power of Thunderbolt technology. I add code to distinct SuperTrack and Pegasus series by subID. It's needed for backward compatibility. Change the driver version. Signed-off-by: Charles Chiou --- drivers/scsi/st