scsi: stex: Support Pegasus 3 product
authorCharles <charles.chiou@tw.promise.com>
Fri, 17 Feb 2017 02:51:34 +0000 (10:51 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 15 Mar 2017 23:20:13 +0000 (19:20 -0400)
commitd65702272c8d35afc8d7e85fa8100a914f0b787f
tree717799483429581d9b867b51abb2b213f34b90d1
parent6dc618cdd6b896791313926becb1f86ede0e046a
scsi: stex: Support Pegasus 3 product

Pegasus series is a RAID support product using Thunderbolt technology.
The newest product, Pegasus 3(P3) supports Thunderbolt 3 technology with
a different chip.

1. Change driver version.

2. Add P3 VID, DID and define it's device address.

3. P3 use msi interrupt, so stex_request_irq P3 type enable msi.

4. For hibernation, use msi_lock in stex_ss_handshake to prevent msi
   register write again when handshaking.

5. P3 doesn't need read() as flush.

6. In stex_ss_intr & stex_abort, P3 only clear interrupt register when
   getting vendor defined interrupt.

Signed-off-by: Charles.Chiou <charles.chiou@tw.promise.com>
Signed-off-by: Paul.Lyu <paul.lyu@tw.promise.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/stex.c