aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>2021-09-01 14:16:00 +0900
committerManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>2022-02-26 13:47:22 +0530
commit96ce8c4f4feadc35679be6b6711f091a905ecde6 (patch)
tree9ac390cdcb59ea16b5a72dee0cf97afec046fa3d
parentb29bbc536612f036a07d2270feebb5237bbe143a (diff)
PCI: endpoint: pci-epf-test: register notifier if only core_init_notifier is enabled
Need to register pci_epf_test_notifier function even if only core_init_notifier is enabled. Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> Acked-by: Om Prakash Singh <omp@nvidia.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
-rw-r--r--drivers/pci/endpoint/functions/pci-epf-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/endpoint/functions/pci-epf-test.c b/drivers/pci/endpoint/functions/pci-epf-test.c
index 90d84d3bc868..80456ad16170 100644
--- a/drivers/pci/endpoint/functions/pci-epf-test.c
+++ b/drivers/pci/endpoint/functions/pci-epf-test.c
@@ -874,7 +874,7 @@ static int pci_epf_test_bind(struct pci_epf *epf)
if (ret)
epf_test->dma_supported = false;
- if (linkup_notifier) {
+ if (linkup_notifier || core_init_notifier) {
epf->nb.notifier_call = pci_epf_test_notifier;
pci_epc_register_notifier(epc, &epf->nb);
} else {