Re: [PATCH 10/11] ARM: tegra: pcie: Add MSI support |
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH 10/11] ARM: tegra: pcie: Add MSI support
- From: Stephen Warren <swarren@xxxxxxxxxxxxx>
- Date: Mon, 12 Mar 2012 10:57:10 -0600
- Cc: linux-tegra@xxxxxxxxxxxxxxx, Liam Girdwood <lrg@xxxxxx>, Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx>, Jesse Barnes <jbarnes@xxxxxxxxxxxxxxxx>, linux-pci@xxxxxxxxxxxxxxx, Grant Likely <grant.likely@xxxxxxxxxxxx>, Rob Herring <rob.herring@xxxxxxxxxxx>, devicetree-discuss@xxxxxxxxxxxxxxxx, Russell King <linux@xxxxxxxxxxxxxxxx>, linux-arm-kernel@xxxxxxxxxxxxxxxxxxx, Colin Cross <ccross@xxxxxxxxxxx>, Olof Johansson <olof@xxxxxxxxx>, Thomas Gleixner <tglx@xxxxxxxxxxxxx>
- In-reply-to: <20120312080023.GA13788@avionic-0098.mockup.avionic-design.de>
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.23) Gecko/20110921 Thunderbird/3.1.15
On 03/12/2012 02:00 AM, Thierry Reding wrote:
> * Stephen Warren wrote:
>> On 03/08/2012 07:51 AM, Thierry Reding wrote:
>>> diff --git a/arch/arm/mach-tegra/pcie.c b/arch/arm/mach-tegra/pcie.c
...
>> Free the IRQ descriptors in the error paths?
...
>>> + for (msi = 0; msi < INT_PCI_MSI_NR; msi++) {
>>> + unsigned int irq = irq_find_mapping(pcie->msi_domain, msi);
>>> +
>>> + irq_set_chip_data(irq, pcie);
>>> + irq_set_chip_and_handler(irq, &pcie->msi_chip,
>>> + handle_simple_irq);
>>> + set_irq_flags(irq, IRQF_VALID);
>>> + }
>>> +
>>> + err = platform_get_irq(pdev, 1);
>>> + if (err < 0) {
>>> + dev_err(&pdev->dev, "failed to get IRQ: %d\n", err);
>>
>> Same here, and undo setting IRQF_VALID?
>
> Does it make sense to explicitly unset the IRQF_VALID flag when the IRQ
> descriptors are free'd afterwards anyway?
Good point. Probably not per my gut instinct.
...
> I'm also Cc'ing Thomas
> Gleixner as maintainer of the IRQ subsystem, he probably knows best how
> dynamically allocated interrupts should be cleaned up.
But yes, best to check with someone more familiar with interrupts.
--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[ARM Kernel]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]