diff options
Diffstat (limited to 'drivers/message')
-rw-r--r-- | drivers/message/fusion/Makefile | 2 | ||||
-rw-r--r-- | drivers/message/fusion/lsi/mpi_cnfg.h | 1 | ||||
-rw-r--r-- | drivers/message/fusion/lsi/mpi_ioc.h | 1 | ||||
-rw-r--r-- | drivers/message/fusion/mptbase.c | 7 | ||||
-rw-r--r-- | drivers/message/fusion/mptctl.c | 4 | ||||
-rw-r--r-- | drivers/message/fusion/mptsas.c | 7 | ||||
-rw-r--r-- | drivers/message/i2o/driver.c | 3 | ||||
-rw-r--r-- | drivers/message/i2o/i2o_config.c | 3 |
8 files changed, 20 insertions, 8 deletions
diff --git a/drivers/message/fusion/Makefile b/drivers/message/fusion/Makefile index 95c9532cb07c..d182a24b3195 100644 --- a/drivers/message/fusion/Makefile +++ b/drivers/message/fusion/Makefile | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | # enable verbose logging | 3 | # enable verbose logging |
4 | # CONFIG_FUSION_LOGGING needs to be enabled in Kconfig | 4 | # CONFIG_FUSION_LOGGING needs to be enabled in Kconfig |
5 | #EXTRA_CFLAGS += -DMPT_DEBUG_VERBOSE | 5 | #ccflags-y := -DMPT_DEBUG_VERBOSE |
6 | 6 | ||
7 | 7 | ||
8 | #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-} LSI_LOGIC | 8 | #=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-} LSI_LOGIC |
diff --git a/drivers/message/fusion/lsi/mpi_cnfg.h b/drivers/message/fusion/lsi/mpi_cnfg.h index 013c7d881948..22027e7946f7 100644 --- a/drivers/message/fusion/lsi/mpi_cnfg.h +++ b/drivers/message/fusion/lsi/mpi_cnfg.h | |||
@@ -2593,6 +2593,7 @@ typedef struct _CONFIG_PAGE_SAS_IO_UNIT_0 | |||
2593 | #define MPI_SAS_IOUNIT0_RATE_SATA_OOB_COMPLETE (0x03) | 2593 | #define MPI_SAS_IOUNIT0_RATE_SATA_OOB_COMPLETE (0x03) |
2594 | #define MPI_SAS_IOUNIT0_RATE_1_5 (0x08) | 2594 | #define MPI_SAS_IOUNIT0_RATE_1_5 (0x08) |
2595 | #define MPI_SAS_IOUNIT0_RATE_3_0 (0x09) | 2595 | #define MPI_SAS_IOUNIT0_RATE_3_0 (0x09) |
2596 | #define MPI_SAS_IOUNIT0_RATE_6_0 (0x0A) | ||
2596 | 2597 | ||
2597 | /* see mpi_sas.h for values for SAS IO Unit Page 0 ControllerPhyDeviceInfo values */ | 2598 | /* see mpi_sas.h for values for SAS IO Unit Page 0 ControllerPhyDeviceInfo values */ |
2598 | 2599 | ||
diff --git a/drivers/message/fusion/lsi/mpi_ioc.h b/drivers/message/fusion/lsi/mpi_ioc.h index 8faa4fab7b89..fd6222882a0e 100644 --- a/drivers/message/fusion/lsi/mpi_ioc.h +++ b/drivers/message/fusion/lsi/mpi_ioc.h | |||
@@ -841,6 +841,7 @@ typedef struct _EVENT_DATA_SAS_PHY_LINK_STATUS | |||
841 | #define MPI_EVENT_SAS_PLS_LR_RATE_SATA_OOB_COMPLETE (0x03) | 841 | #define MPI_EVENT_SAS_PLS_LR_RATE_SATA_OOB_COMPLETE (0x03) |
842 | #define MPI_EVENT_SAS_PLS_LR_RATE_1_5 (0x08) | 842 | #define MPI_EVENT_SAS_PLS_LR_RATE_1_5 (0x08) |
843 | #define MPI_EVENT_SAS_PLS_LR_RATE_3_0 (0x09) | 843 | #define MPI_EVENT_SAS_PLS_LR_RATE_3_0 (0x09) |
844 | #define MPI_EVENT_SAS_PLS_LR_RATE_6_0 (0x0A) | ||
844 | 845 | ||
845 | /* SAS Discovery Event data */ | 846 | /* SAS Discovery Event data */ |
846 | 847 | ||
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index 3358c0af3466..ec8080c98081 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -7418,7 +7418,12 @@ mpt_display_event_info(MPT_ADAPTER *ioc, EventNotificationReply_t *pEventReply) | |||
7418 | case MPI_EVENT_SAS_PLS_LR_RATE_3_0: | 7418 | case MPI_EVENT_SAS_PLS_LR_RATE_3_0: |
7419 | snprintf(evStr, EVENT_DESCR_STR_SZ, | 7419 | snprintf(evStr, EVENT_DESCR_STR_SZ, |
7420 | "SAS PHY Link Status: Phy=%d:" | 7420 | "SAS PHY Link Status: Phy=%d:" |
7421 | " Rate 3.0 Gpbs",PhyNumber); | 7421 | " Rate 3.0 Gbps", PhyNumber); |
7422 | break; | ||
7423 | case MPI_EVENT_SAS_PLS_LR_RATE_6_0: | ||
7424 | snprintf(evStr, EVENT_DESCR_STR_SZ, | ||
7425 | "SAS PHY Link Status: Phy=%d:" | ||
7426 | " Rate 6.0 Gbps", PhyNumber); | ||
7422 | break; | 7427 | break; |
7423 | default: | 7428 | default: |
7424 | snprintf(evStr, EVENT_DESCR_STR_SZ, | 7429 | snprintf(evStr, EVENT_DESCR_STR_SZ, |
diff --git a/drivers/message/fusion/mptctl.c b/drivers/message/fusion/mptctl.c index e8deb8ed0499..878bda0cce70 100644 --- a/drivers/message/fusion/mptctl.c +++ b/drivers/message/fusion/mptctl.c | |||
@@ -1314,8 +1314,10 @@ mptctl_getiocinfo (unsigned long arg, unsigned int data_size) | |||
1314 | else | 1314 | else |
1315 | karg->adapterType = MPT_IOCTL_INTERFACE_SCSI; | 1315 | karg->adapterType = MPT_IOCTL_INTERFACE_SCSI; |
1316 | 1316 | ||
1317 | if (karg->hdr.port > 1) | 1317 | if (karg->hdr.port > 1) { |
1318 | kfree(karg); | ||
1318 | return -EINVAL; | 1319 | return -EINVAL; |
1320 | } | ||
1319 | port = karg->hdr.port; | 1321 | port = karg->hdr.port; |
1320 | 1322 | ||
1321 | karg->port = port; | 1323 | karg->port = port; |
diff --git a/drivers/message/fusion/mptsas.c b/drivers/message/fusion/mptsas.c index 8aefb1829fcd..f5a14afad2cd 100644 --- a/drivers/message/fusion/mptsas.c +++ b/drivers/message/fusion/mptsas.c | |||
@@ -1973,7 +1973,6 @@ static struct scsi_host_template mptsas_driver_template = { | |||
1973 | .change_queue_depth = mptscsih_change_queue_depth, | 1973 | .change_queue_depth = mptscsih_change_queue_depth, |
1974 | .eh_abort_handler = mptscsih_abort, | 1974 | .eh_abort_handler = mptscsih_abort, |
1975 | .eh_device_reset_handler = mptscsih_dev_reset, | 1975 | .eh_device_reset_handler = mptscsih_dev_reset, |
1976 | .eh_bus_reset_handler = mptscsih_bus_reset, | ||
1977 | .eh_host_reset_handler = mptscsih_host_reset, | 1976 | .eh_host_reset_handler = mptscsih_host_reset, |
1978 | .bios_param = mptscsih_bios_param, | 1977 | .bios_param = mptscsih_bios_param, |
1979 | .can_queue = MPT_SAS_CAN_QUEUE, | 1978 | .can_queue = MPT_SAS_CAN_QUEUE, |
@@ -3063,6 +3062,9 @@ static int mptsas_probe_one_phy(struct device *dev, | |||
3063 | case MPI_SAS_IOUNIT0_RATE_3_0: | 3062 | case MPI_SAS_IOUNIT0_RATE_3_0: |
3064 | phy->negotiated_linkrate = SAS_LINK_RATE_3_0_GBPS; | 3063 | phy->negotiated_linkrate = SAS_LINK_RATE_3_0_GBPS; |
3065 | break; | 3064 | break; |
3065 | case MPI_SAS_IOUNIT0_RATE_6_0: | ||
3066 | phy->negotiated_linkrate = SAS_LINK_RATE_6_0_GBPS; | ||
3067 | break; | ||
3066 | case MPI_SAS_IOUNIT0_RATE_SATA_OOB_COMPLETE: | 3068 | case MPI_SAS_IOUNIT0_RATE_SATA_OOB_COMPLETE: |
3067 | case MPI_SAS_IOUNIT0_RATE_UNKNOWN: | 3069 | case MPI_SAS_IOUNIT0_RATE_UNKNOWN: |
3068 | default: | 3070 | default: |
@@ -3691,7 +3693,8 @@ mptsas_send_link_status_event(struct fw_event_work *fw_event) | |||
3691 | } | 3693 | } |
3692 | 3694 | ||
3693 | if (link_rate == MPI_SAS_IOUNIT0_RATE_1_5 || | 3695 | if (link_rate == MPI_SAS_IOUNIT0_RATE_1_5 || |
3694 | link_rate == MPI_SAS_IOUNIT0_RATE_3_0) { | 3696 | link_rate == MPI_SAS_IOUNIT0_RATE_3_0 || |
3697 | link_rate == MPI_SAS_IOUNIT0_RATE_6_0) { | ||
3695 | 3698 | ||
3696 | if (!port_info) { | 3699 | if (!port_info) { |
3697 | if (ioc->old_sas_discovery_protocal) { | 3700 | if (ioc->old_sas_discovery_protocal) { |
diff --git a/drivers/message/i2o/driver.c b/drivers/message/i2o/driver.c index a0421efe04ca..8a5b2d8f4daf 100644 --- a/drivers/message/i2o/driver.c +++ b/drivers/message/i2o/driver.c | |||
@@ -84,7 +84,8 @@ int i2o_driver_register(struct i2o_driver *drv) | |||
84 | osm_debug("Register driver %s\n", drv->name); | 84 | osm_debug("Register driver %s\n", drv->name); |
85 | 85 | ||
86 | if (drv->event) { | 86 | if (drv->event) { |
87 | drv->event_queue = create_workqueue(drv->name); | 87 | drv->event_queue = alloc_workqueue(drv->name, |
88 | WQ_MEM_RECLAIM, 1); | ||
88 | if (!drv->event_queue) { | 89 | if (!drv->event_queue) { |
89 | osm_err("Could not initialize event queue for driver " | 90 | osm_err("Could not initialize event queue for driver " |
90 | "%s\n", drv->name); | 91 | "%s\n", drv->name); |
diff --git a/drivers/message/i2o/i2o_config.c b/drivers/message/i2o/i2o_config.c index 7d3cc575c361..098de2b35784 100644 --- a/drivers/message/i2o/i2o_config.c +++ b/drivers/message/i2o/i2o_config.c | |||
@@ -1044,8 +1044,7 @@ static long i2o_cfg_ioctl(struct file *fp, unsigned int cmd, unsigned long arg) | |||
1044 | 1044 | ||
1045 | static int cfg_open(struct inode *inode, struct file *file) | 1045 | static int cfg_open(struct inode *inode, struct file *file) |
1046 | { | 1046 | { |
1047 | struct i2o_cfg_info *tmp = | 1047 | struct i2o_cfg_info *tmp = kmalloc(sizeof(struct i2o_cfg_info), |
1048 | (struct i2o_cfg_info *)kmalloc(sizeof(struct i2o_cfg_info), | ||
1049 | GFP_KERNEL); | 1048 | GFP_KERNEL); |
1050 | unsigned long flags; | 1049 | unsigned long flags; |
1051 | 1050 | ||