~ubuntu-branches/ubuntu/trusty/linux-lts-wily/trusty-security

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Kamal Mostafa, Kamal Mostafa
  • Date: 2016-02-25 17:47:15 UTC
  • Revision ID: package-import@ubuntu.com-20160225174715-k7zfimvf5qx3bgd9
Tags: 4.2.0-32.37~14.04.1
[ Kamal Mostafa ]

* Release Tracking Bug
  - LP: #1550463

[ Kamal Mostafa ]

* Merged back Ubuntu-4.2.0-31.36

Show diffs side-by-side

added added

removed removed

Lines of Context:
762
762
                phb->dma_dev_setup(phb, pdev);
763
763
}
764
764
 
 
765
void pnv_pci_dma_bus_setup(struct pci_bus *bus)
 
766
{
 
767
        struct pci_controller *hose = bus->sysdata;
 
768
        struct pnv_phb *phb = hose->private_data;
 
769
        struct pnv_ioda_pe *pe;
 
770
 
 
771
        list_for_each_entry(pe, &phb->ioda.pe_list, list) {
 
772
                if (!(pe->flags & (PNV_IODA_PE_BUS | PNV_IODA_PE_BUS_ALL)))
 
773
                        continue;
 
774
 
 
775
                if (!pe->pbus)
 
776
                        continue;
 
777
 
 
778
                if (bus->number == ((pe->rid >> 8) & 0xFF)) {
 
779
                        pe->pbus = bus;
 
780
                        break;
 
781
                }
 
782
        }
 
783
}
 
784
 
765
785
void pnv_pci_shutdown(void)
766
786
{
767
787
        struct pci_controller *hose;