Skip to content

Commit 6acd25c

Browse files
khayash1Lorenzo Pieralisi
authored andcommitted
PCI: pci-epf-test: Register notifier if only core_init_notifier is enabled
The pci_epf_test_notifier function should be installed also if only core_init_notifier is enabled. Fix the current logic. Link: https://lore.kernel.org/r/20220825090101.20474-1-hayashi.kunihiko@socionext.com Fixes: 5e50ee2 ("PCI: pci-epf-test: Add support to defer core initialization") Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com> Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org> Acked-by: Om Prakash Singh <omp@nvidia.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
1 parent 9abf231 commit 6acd25c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pci/endpoint/functions/pci-epf-test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ static int pci_epf_test_bind(struct pci_epf *epf)
979979
if (ret)
980980
epf_test->dma_supported = false;
981981

982-
if (linkup_notifier) {
982+
if (linkup_notifier || core_init_notifier) {
983983
epf->nb.notifier_call = pci_epf_test_notifier;
984984
pci_epc_register_notifier(epc, &epf->nb);
985985
} else {

0 commit comments

Comments
 (0)