Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1654984

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

From John Garry <john.garry@huawei.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 13/23] scsi: hisi_sas: add phy up/down/bcast and channel ISR
Date 2017-06-01 12:20 +0200
Message-ID <tNvmV-1gl-1@gated-at.bofh.it> (permalink)
References <tNctY-5S4-19@gated-at.bofh.it> <tNctY-5S4-25@gated-at.bofh.it> <tNr9E-6Ua-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH v3 13/23] scsi: hisi_sas: add phy up/down/bcast and channel ISR John Garry <john.garry@huawei.com> - 2017-05-31 16:10 +0200
  Re: [PATCH v3 13/23] scsi: hisi_sas: add phy up/down/bcast and  channel ISR Christoph Hellwig <hch@infradead.org> - 2017-06-01 07:50 +0200
    Re: [PATCH v3 13/23] scsi: hisi_sas: add phy up/down/bcast and  channel ISR John Garry <john.garry@huawei.com> - 2017-06-01 12:20 +0200

csiph-web