Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ab063cf
powerpc: Add MSI operations to pci_controller_ops struct
daxtens Apr 14, 2015
4c22ddc
powerpc/powernv: Move MSI-related ops to pci_controller_ops
daxtens Apr 14, 2015
8c0c018
powerpc/cell: Move MSI-related ops to pci_controller_ops
daxtens Apr 14, 2015
8c93327
powerpc/pseries: Move MSI-related ops to pci_controller_ops
daxtens Apr 14, 2015
c07e8f0
powerpc/fsl_msi: Move MSI-related ops to pci_controller_ops
daxtens Apr 14, 2015
d72ded8
powerpc/ppc4xx_msi: Move MSI-related ops to pci_controller_ops
daxtens Apr 14, 2015
a65a8ae
powerpc/ppc4xx_hsta_msi: Move MSI-related ops to pci_controller_ops
daxtens Apr 14, 2015
bc83830
powerpc/pasemi: Move MSI-related ops to pci_controller_ops
daxtens Apr 14, 2015
248d8b6
powerpc/mpic_u3msi: Move MSI-related ops to pci_controller_ops
daxtens Apr 14, 2015
9c186e0
powerpc: Remove MSI-related PCI controller ops from ppc_md
daxtens Apr 14, 2015
8220eeb
powerpc/powernv: Specialise pci_controller_ops for each controller type
daxtens Apr 28, 2015
2a5b688
powerpc/pci: add dma_set_mask to pci_controller_ops
daxtens Apr 28, 2015
25b36d0
powerpc/powernv: Move dma_set_mask() from pnv_phb to pci_controller_ops
daxtens Apr 28, 2015
4838158
cxl: Use call_rcu to reduce latency when releasing the afu fd
May 8, 2015
c3d5d91
powerpc/copro: Fix faulting kernel segments
mikey May 19, 2015
0972590
powerpc/pci: Export symbols for CXL
daxtens May 19, 2015
6405380
powerpc/pci: Add release_device() hook to phb ops
mikey May 19, 2015
814ec73
powerpc: Add cxl context to device archdata
mikey May 19, 2015
94645f2
cxl: Document external user of existing API
mikey May 19, 2015
7532aa0
cxl: Add shutdown hook
mikey May 19, 2015
9b83899
cxl: Re-order card init to check the VSEC earlier
mikey May 19, 2015
f4d2c43
cxl: Dump debug info on the AFU configuration record
mikey May 19, 2015
5e91ccb
cxl: Add cookie parameter to afu_release_irqs()
mikey May 19, 2015
5e8ecd9
cxl: Rework detach context functions
mikey May 19, 2015
67278e7
cxl: cxl_afu_reset() -> __cxl_afu_reset()
mikey May 19, 2015
c8ccf21
cxl: Export some symbols
mikey May 19, 2015
9843f03
cxl: Only check pid for userspace contexts
mikey May 19, 2015
680e78d
cxl: Split afu_register_irqs() function
mikey May 19, 2015
a083f06
cxl: Configure PSL for kernel contexts
mikey May 19, 2015
17e1c51
cxl: Cleanup Makefile
mikey May 19, 2015
5af30b1
cxl: Move include file cxl.h -> cxl-base.h
mikey May 19, 2015
ce3de26
cxl: Export file ops for use by API
mikey May 19, 2015
8013edc
cxl: Add AFU virtual PHB and kernel API
mikey May 19, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
powerpc/pasemi: Move MSI-related ops to pci_controller_ops
Move the PaSemi MPIC msi subsystem to use the pci_controller_ops
structure rather than ppc_md for MSI related PCI controller
operations.

As with fsl_msi, operations are plugged in at the subsys level, after
controller creation. Again, we iterate over all controllers and
populate them with the MSI ops.

Signed-off-by: Michael Ellerman <[email protected]>
  • Loading branch information
daxtens authored and mpe committed May 20, 2015
commit bc83830b19005c4e458f2e460990994bd88a6456
9 changes: 6 additions & 3 deletions arch/powerpc/platforms/pasemi/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ static int pasemi_msi_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type)
int mpic_pasemi_msi_init(struct mpic *mpic)
{
int rc;
struct pci_controller *phb;

if (!mpic->irqhost->of_node ||
!of_device_is_compatible(mpic->irqhost->of_node,
Expand All @@ -157,9 +158,11 @@ int mpic_pasemi_msi_init(struct mpic *mpic)
pr_debug("pasemi_msi: Registering PA Semi MPIC MSI callbacks\n");

msi_mpic = mpic;
WARN_ON(ppc_md.setup_msi_irqs);
ppc_md.setup_msi_irqs = pasemi_msi_setup_msi_irqs;
ppc_md.teardown_msi_irqs = pasemi_msi_teardown_msi_irqs;
list_for_each_entry(phb, &hose_list, list_node) {
WARN_ON(phb->controller_ops.setup_msi_irqs);
phb->controller_ops.setup_msi_irqs = pasemi_msi_setup_msi_irqs;
phb->controller_ops.teardown_msi_irqs = pasemi_msi_teardown_msi_irqs;
}

return 0;
}