Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi

Pull misc SCSI fixes from James Bottomley:
"Five small patches, all in drivers or doc, which missed the initial
pull request.

The qla2xxx and megaraid_sas are actual fixes and the rest are
spelling and doc changes"

* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
scsi: ufs: fix spelling mistake "initilized" -> "initialized"
scsi: pm80xx: fix spelling mistake "to" -> "too"
scsi: MAINTAINERS: ufs: remove pedrom.sousa@synopsys.com
scsi: megaraid_sas: fixup MSIx interrupt setup during resume
scsi: qla2xxx: Fix unbound NVME response length

+28 -19
-1
MAINTAINERS
··· 17138 17138 UNIVERSAL FLASH STORAGE HOST CONTROLLER DRIVER 17139 17139 R: Alim Akhtar <alim.akhtar@samsung.com> 17140 17140 R: Avri Altman <avri.altman@wdc.com> 17141 - R: Pedro Sousa <pedrom.sousa@synopsys.com> 17142 17141 L: linux-scsi@vger.kernel.org 17143 17142 S: Supported 17144 17143 F: Documentation/scsi/ufs.txt
+8 -10
drivers/scsi/megaraid/megaraid_sas_base.c
··· 7604 7604 int rval; 7605 7605 struct Scsi_Host *host; 7606 7606 struct megasas_instance *instance; 7607 - int irq_flags = PCI_IRQ_LEGACY; 7608 7607 u32 status_reg; 7609 7608 7610 7609 instance = pci_get_drvdata(pdev); ··· 7672 7673 atomic_set(&instance->ldio_outstanding, 0); 7673 7674 7674 7675 /* Now re-enable MSI-X */ 7675 - if (instance->msix_vectors) { 7676 - irq_flags = PCI_IRQ_MSIX; 7677 - if (instance->smp_affinity_enable) 7678 - irq_flags |= PCI_IRQ_AFFINITY; 7676 + if (instance->msix_vectors) 7677 + megasas_alloc_irq_vectors(instance); 7678 + 7679 + if (!instance->msix_vectors) { 7680 + rval = pci_alloc_irq_vectors(instance->pdev, 1, 1, 7681 + PCI_IRQ_LEGACY); 7682 + if (rval < 0) 7683 + goto fail_reenable_msix; 7679 7684 } 7680 - rval = pci_alloc_irq_vectors(instance->pdev, 1, 7681 - instance->msix_vectors ? 7682 - instance->msix_vectors : 1, irq_flags); 7683 - if (rval < 0) 7684 - goto fail_reenable_msix; 7685 7685 7686 7686 megasas_setup_reply_map(instance); 7687 7687
+1 -1
drivers/scsi/pm8001/pm80xx_hwi.c
··· 2377 2377 ts->buf_valid_size = sizeof(*resp); 2378 2378 } else 2379 2379 PM8001_IO_DBG(pm8001_ha, 2380 - pm8001_printk("response to large\n")); 2380 + pm8001_printk("response too large\n")); 2381 2381 } 2382 2382 if (pm8001_dev) 2383 2383 pm8001_dev->running_req--;
-6
drivers/scsi/qla2xxx/qla_dbg.c
··· 2519 2519 /* Driver Debug Functions. */ 2520 2520 /****************************************************************************/ 2521 2521 2522 - static inline int 2523 - ql_mask_match(uint level) 2524 - { 2525 - return (level & ql2xextended_error_logging) == level; 2526 - } 2527 - 2528 2522 /* 2529 2523 * This function is for formatting and logging debug information. 2530 2524 * It is to be used when vha is available. It formats the message
+6
drivers/scsi/qla2xxx/qla_dbg.h
··· 374 374 extern void qla24xx_pause_risc(struct device_reg_24xx __iomem *, 375 375 struct qla_hw_data *); 376 376 extern int qla24xx_soft_reset(struct qla_hw_data *); 377 + 378 + static inline int 379 + ql_mask_match(uint level) 380 + { 381 + return (level & ql2xextended_error_logging) == level; 382 + }
+12
drivers/scsi/qla2xxx/qla_isr.c
··· 1939 1939 inbuf = (uint32_t *)&sts->nvme_ersp_data; 1940 1940 outbuf = (uint32_t *)fd->rspaddr; 1941 1941 iocb->u.nvme.rsp_pyld_len = le16_to_cpu(sts->nvme_rsp_pyld_len); 1942 + if (unlikely(iocb->u.nvme.rsp_pyld_len > 1943 + sizeof(struct nvme_fc_ersp_iu))) { 1944 + if (ql_mask_match(ql_dbg_io)) { 1945 + WARN_ONCE(1, "Unexpected response payload length %u.\n", 1946 + iocb->u.nvme.rsp_pyld_len); 1947 + ql_log(ql_log_warn, fcport->vha, 0x5100, 1948 + "Unexpected response payload length %u.\n", 1949 + iocb->u.nvme.rsp_pyld_len); 1950 + } 1951 + iocb->u.nvme.rsp_pyld_len = 1952 + sizeof(struct nvme_fc_ersp_iu); 1953 + } 1942 1954 iter = iocb->u.nvme.rsp_pyld_len >> 2; 1943 1955 for (; iter; iter--) 1944 1956 *outbuf++ = swab32(*inbuf++);
+1 -1
drivers/scsi/ufs/ufs.h
··· 546 546 u8 lun) 547 547 { 548 548 if (!dev_info || !dev_info->max_lu_supported) { 549 - pr_err("Max General LU supported by UFS isn't initilized\n"); 549 + pr_err("Max General LU supported by UFS isn't initialized\n"); 550 550 return false; 551 551 } 552 552