~ubuntu-branches/ubuntu/trusty/linux-lts-vivid/trusty-proposed

« back to all changes in this revision

Viewing changes to arch/powerpc/platforms/powernv/pci.c

  • Committer: Package Import Robot
  • Author(s): Luis Henriques, Kamal Mostafa, K. Y. Srinivasan
  • Date: 2015-11-23 13:24:32 UTC
  • Revision ID: package-import@ubuntu.com-20151123132432-903xk653el60bfun
[ Kamal Mostafa ]

* Release Tracking Bug
  - LP: #1518519

[ K. Y. Srinivasan ]

* SAUCE: Drivers: hv: vmbus: Fix a Host signaling bug
  - LP: #1508706

Show diffs side-by-side

added added

removed removed

Lines of Context:
99
99
        struct pci_controller *hose = pci_bus_to_host(pdev->bus);
100
100
        struct pnv_phb *phb = hose->private_data;
101
101
        struct msi_desc *entry;
 
102
        irq_hw_number_t hwirq;
102
103
 
103
104
        if (WARN_ON(!phb))
104
105
                return;
106
107
        list_for_each_entry(entry, &pdev->msi_list, list) {
107
108
                if (entry->irq == NO_IRQ)
108
109
                        continue;
 
110
                hwirq = virq_to_hw(entry->irq);
109
111
                irq_set_msi_desc(entry->irq, NULL);
110
 
                msi_bitmap_free_hwirqs(&phb->msi_bmp,
111
 
                        virq_to_hw(entry->irq) - phb->msi_base, 1);
112
112
                irq_dispose_mapping(entry->irq);
 
113
                msi_bitmap_free_hwirqs(&phb->msi_bmp, hwirq - phb->msi_base, 1);
113
114
        }
114
115
}
115
116
#endif /* CONFIG_PCI_MSI */