linux/drivers/pci/endpoint
Niklas Cassel 0c47cd7a9b PCI: endpoint: Populate func_no before calling pci_epc_add_epf()
func_no is a member of struct pci_epf.

Since struct pci_epf is used as an argument to pci_epc_add_epf() (to
bind an endpoint function to a controller), struct pci_epf.func_no
should be populated before calling pci_epc_add_epf().

Initialize the struct pci_epf.func_no member before calling
pci_epc_add_epf(), to fix the endpoint function binding to
an endpoint controller.

Fixes: d746799116 ("PCI: endpoint: Introduce configfs entry for configuring EP functions")
Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
[lorenzo.pieralisi@arm.com: rewrote the commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Suggested-by: Kishon Vijay Abraham I <kishon@ti.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
2017-12-19 11:05:44 +00:00
..
functions PCI: endpoint: Use correct "end of test" interrupt 2017-09-20 13:56:06 -05:00
Kconfig PCI: endpoint: Make PCI_ENDPOINT depend on HAS_DMA 2017-05-22 16:23:59 -05:00
Makefile PCI: endpoint: functions: Add an EP function to test PCI 2017-04-11 14:18:37 -05:00
pci-ep-cfs.c PCI: endpoint: Populate func_no before calling pci_epc_add_epf() 2017-12-19 11:05:44 +00:00
pci-epc-core.c PCI: endpoint: Use of_dma_configure() to set initial DMA mask 2017-08-18 10:41:20 -05:00
pci-epc-mem.c PCI: endpoint: Add support for configurable page size 2017-08-29 16:00:37 -05:00
pci-epf-core.c Merge branch 'pci/misc' into next 2017-09-07 13:24:16 -05:00