diff options
author | Kishon Vijay Abraham I <[email protected]> | 2021-02-02 01:28:04 +0530 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-02-23 14:12:18 -0600 |
commit | a62074a9ba856082a60ff60693abd79f4b55177d (patch) | |
tree | 915ef9d3d729d2c0af4009060dbf772baacbd35e /lib/test_overflow.c | |
parent | dbcc542f36086abcaec28a858b17f2c358d57973 (diff) |
PCI: cadence: Configure LM_EP_FUNC_CFG based on epc->function_num_map
The number of functions supported by the endpoint controller is configured
in LM_EP_FUNC_CFG based on func_no member of struct pci_epf. Now that an
endpoint function can be associated with two endpoint controllers (primary
and secondary), just using func_no will not suffice as that will take into
account only if the endpoint controller is associated with the primary
interface of endpoint function. Instead use epc->function_num_map which
will already have the configured functions information (irrespective of
whether the endpoint controller is associated with primary or secondary
interface).
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kishon Vijay Abraham I <[email protected]>
Signed-off-by: Lorenzo Pieralisi <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Tom Joseph <[email protected]>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions