Skip to content

Commit 6c22376

Browse files
Kevin Barnettmartinkpetersen
authored andcommitted
smartpqi: initial commit of Microsemi smartpqi driver
This initial commit contains Microsemi's smartpqi module. [mkp: Minor tweaks to apply to 4.9/scsi-queue] Reviewed-by: Scott Benesh <scott.benesh@microsemi.com> Reviewed-by: Kevin Barnett <kevin.barnett@microsemi.com> Signed-off-by: Kevin Barnett <kevin.barnett@microsemi.com> Signed-off-by: Don Brace <don.brace@microsemi.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Ewan D. Milne <emilne@redhat.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 1d48390 commit 6c22376

10 files changed

Lines changed: 8281 additions & 0 deletions

File tree

‎MAINTAINERS‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7819,6 +7819,17 @@ W: http://www.melexis.com
78197819
S: Supported
78207820
F: drivers/iio/temperature/mlx90614.c
78217821

7822+
MICROSEMI SMART ARRAY SMARTPQI DRIVER (smartpqi)
7823+
M: Don Brace <don.brace@microsemi.com>
7824+
L: esc.storagedev@microsemi.com
7825+
L: linux-scsi@vger.kernel.org
7826+
S: Supported
7827+
F: drivers/scsi/smartpqi/smartpqi*.[ch]
7828+
F: drivers/scsi/smartpqi/Kconfig
7829+
F: drivers/scsi/smartpqi/Makefile
7830+
F: include/linux/cciss*.h
7831+
F: include/uapi/linux/cciss*.h
7832+
78227833
MN88472 MEDIA DRIVER
78237834
M: Antti Palosaari <crope@iki.fi>
78247835
L: linux-media@vger.kernel.org

‎drivers/scsi/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,7 @@ config SCSI_ARCMSR
540540
source "drivers/scsi/esas2r/Kconfig"
541541
source "drivers/scsi/megaraid/Kconfig.megaraid"
542542
source "drivers/scsi/mpt3sas/Kconfig"
543+
source "drivers/scsi/smartpqi/Kconfig"
543544
source "drivers/scsi/ufs/Kconfig"
544545

545546
config SCSI_HPTIOP

‎drivers/scsi/Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ obj-$(CONFIG_SCSI_PAS16) += pas16.o
9494
obj-$(CONFIG_SCSI_T128) += t128.o
9595
obj-$(CONFIG_SCSI_DMX3191D) += dmx3191d.o
9696
obj-$(CONFIG_SCSI_HPSA) += hpsa.o
97+
obj-$(CONFIG_SCSI_SMARTPQI) += smartpqi/
9798
obj-$(CONFIG_SCSI_DTC3280) += dtc.o
9899
obj-$(CONFIG_SCSI_SYM53C8XX_2) += sym53c8xx_2/
99100
obj-$(CONFIG_SCSI_ZALON) += zalon7xx.o

‎drivers/scsi/smartpqi/Kconfig‎

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
#
2+
# Kernel configuration file for the SMARTPQI
3+
#
4+
# Copyright (c) 2016 Microsemi Corporation
5+
# Copyright (c) 2016 PMC-Sierra, Inc.
6+
# (mailto:esc.storagedev@microsemi.com)
7+
8+
# This program is free software; you can redistribute it and/or
9+
# modify it under the terms of the GNU General Public License
10+
# as published by the Free Software Foundation; version 2
11+
# of the License.
12+
13+
# This program is distributed in the hope that it will be useful,
14+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
# GNU General Public License for more details.
17+
18+
# NO WARRANTY
19+
# THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR
20+
# CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT
21+
# LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
22+
# MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is
23+
# solely responsible for determining the appropriateness of using and
24+
# distributing the Program and assumes all risks associated with its
25+
# exercise of rights under this Agreement, including but not limited to
26+
# the risks and costs of program errors, damage to or loss of data,
27+
# programs or equipment, and unavailability or interruption of operations.
28+
29+
# DISCLAIMER OF LIABILITY
30+
# NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY
31+
# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32+
# DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND
33+
# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
34+
# TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
35+
# USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
36+
# HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES
37+
38+
config SCSI_SMARTPQI
39+
tristate "Microsemi PQI Driver"
40+
default n
41+
depends on PCI && SCSI && !S390
42+
select SCSI_SAS_ATTRS
43+
select RAID_ATTRS
44+
---help---
45+
This driver supports Microsemi PQI controllers.
46+
47+
<http://www.microsemi.com>
48+
49+
To compile this driver as a module, choose M here: the
50+
module will be called smartpqi

‎drivers/scsi/smartpqi/Makefile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ccflags-y += -I.
2+
obj-m += smartpqi.o
3+
smartpqi-objs := smartpqi_init.o smartpqi_sis.o smartpqi_sas_transport.o

0 commit comments

Comments
 (0)