Skip to content

Commit bcccaa0

Browse files
committed
Merge branch 'remotes/lorenzo/pci/misc'
- Register notifier if core_init_notifier is enabled in pci-epf-test (Kunihiko Hayashi) - Fixup Kconfig indentation (Shunsuke Mie) * remotes/lorenzo/pci/misc: PCI: endpoint: Fix Kconfig indent style PCI: pci-epf-test: Register notifier if only core_init_notifier is enabled
2 parents ba7deaa + 2759ddf commit bcccaa0

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

drivers/pci/endpoint/functions/Kconfig

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ config PCI_EPF_NTB
2727
If in doubt, say "N" to disable Endpoint NTB driver.
2828

2929
config PCI_EPF_VNTB
30-
tristate "PCI Endpoint NTB driver"
31-
depends on PCI_ENDPOINT
32-
depends on NTB
33-
select CONFIGFS_FS
34-
help
35-
Select this configuration option to enable the Non-Transparent
36-
Bridge (NTB) driver for PCIe Endpoint. NTB driver implements NTB
37-
between PCI Root Port and PCIe Endpoint.
30+
tristate "PCI Endpoint NTB driver"
31+
depends on PCI_ENDPOINT
32+
depends on NTB
33+
select CONFIGFS_FS
34+
help
35+
Select this configuration option to enable the Non-Transparent
36+
Bridge (NTB) driver for PCIe Endpoint. NTB driver implements NTB
37+
between PCI Root Port and PCIe Endpoint.
3838

39-
If in doubt, say "N" to disable Endpoint NTB driver.
39+
If in doubt, say "N" to disable Endpoint NTB driver.

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)