Re: [PATCH v3 13/23] scsi: hisi_sas: add phy up/down/bcast and channel ISR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 01/06/2017 06:41, Christoph Hellwig wrote:
> +static int interrupt_init_v3_hw(struct hisi_hba *hisi_hba)
> +{
> +	struct device *dev = hisi_hba->dev;
> +	struct pci_dev *pdev = hisi_hba->pci_dev;
> +	int vectors, i, irq, rc;
> +	int max_msi = HISI_SAS_MSI_COUNT_V3_HW;
> +	int msi_vectors[HISI_SAS_MSI_COUNT_V3_HW];
> +
> +	if (pdev->msi_enabled)
> +		pci_disable_msi(pdev);
How could MSIs be enabled at init time?  Even if so you should use
pci_free_irq_vectors.

Right, I don't think it could, so this can be removed.


> +	for (i = 0; i < vectors; i++)
> +		msi_vectors[i] = pdev->irq + i;
You should not need this array, just use pci_irq_vectors().


That should be ok.

.


Thanks,
John




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux