]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: endpoint: Use notification chain mechanism to notify EPC events to EPF
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 24 Feb 2020 09:53:34 +0000 (15:23 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 24 Feb 2020 10:07:06 +0000 (10:07 +0000)
commit2a6e12581bdaef72b1010a74948f6126e1b068b8
treed3e6f62c7820f882ba2cd3d006153185592e7628
parent9f9285b96014e47599924b03ab0c07fa1549e04b
PCI: endpoint: Use notification chain mechanism to notify EPC events to EPF

Use atomic_notifier_call_chain() to notify EPC events like linkup to EPF
driver instead of using linkup ops in EPF driver. This is in preparation
for adding proper locking mechanism to EPF ops. This will also enable to
add more events (in addition to linkup) in the future.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tested-by: Vidya Sagar <vidyas@nvidia.com>
drivers/pci/endpoint/functions/pci-epf-test.c
drivers/pci/endpoint/pci-epc-core.c
drivers/pci/endpoint/pci-epf-core.c
include/linux/pci-epc.h
include/linux/pci-epf.h