]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: pci-epf-test: Register notifier if only core_init_notifier is enabled
authorKunihiko Hayashi <hayashi.kunihiko@socionext.com>
Thu, 25 Aug 2022 09:01:01 +0000 (18:01 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:30 +0000 (13:32 +0100)
commit0ea2ba0d5b4ff04905c8afabc147d0ad5b2e019f
treed50cfd0d838ef87edb1d87daccae76c922081607
parent7123963c57eedd3b121b25e8edf3c4bf2be876fc
PCI: pci-epf-test: Register notifier if only core_init_notifier is enabled

[ Upstream commit 6acd25cc98ce0c9ee4fefdaf44fc8bca534b26e5 ]

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: 5e50ee27d4a5 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pci/endpoint/functions/pci-epf-test.c